alipay/container-observability-service

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

Opened this issue · 2 comments

There's no existing/similar bug report.

  • I have searched the existing issues

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

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.

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.