alipay / container-observability-service

Simplify Kubernetes applications operation with one-stop observability services, including resource delivery SLO,root cause diagnoses and container lifecycle tracing and more.
Apache License 2.0
89 stars 16 forks source link

Some elasticsearch index could have incorrect index type during elasticsearch upgrate from 6.x to 7.x #125

Open d3c3mber opened 4 months ago

d3c3mber commented 4 months ago

There's no existing/similar bug report.

Describe the bug:

Some elasticsearch index could have incorrect index type during elasticsearch upgrate from 6.x to 7.x

Expected behavior:

The upgrade processure is smooth and the type for all indices rename correct.

Additional

No response

Lunettes version

No response

Kubernetes version

No response

linuzb commented 4 months ago

Can you give some examples?

As far as I know, elasticsearch 7.x no longer needs mapping type, so we don't need to fix the mapping type. I think we don't need to correct the mapping type, but delete the meaningless mapping type. Here is a discussion on mapping type.

d3c3mber commented 4 months ago

Thanks @linuzb, some indices (slo_data, slo_trace_data_daily) get inconsistent doc type from _doc to data during upgrade from es6 to es7, not sure if this happens every time.