skydive-project / skydive

An open source real-time network topology and protocols analyzer
https://skydive.network
Apache License 2.0
2.65k stars 400 forks source link

ES: fix handling of aliases while starting #2406

Closed adrianlzt closed 2 years ago

adrianlzt commented 2 years ago

Skydive configured with ElasticSearch was deleting correct indices from the alias. This was also causing an error while trying to create the next archive index.

The error was considering all indices in the alias as incorrect. Now, only indices with an old schema version are considered old. If there is currently an index ponting to the alias, that one should be considered as the valid one.

Fixes #2404