Description
Is your feature request related to a problem? Please describe
Now that we have released OpenSearch 3.0, we should probably start to clean up use of the LegacyESVersion
class.
Describe the solution you'd like
I started to do this, thinking it would be quick and easy. It turns out to be more work than I thought, and should probably be broken down into some sub-tasks:
- Remove the upgrade-cli module. Its description is "A CLI tool for upgrading to OpenSearch 1.x from a supported Elasticsearch version." There are no supported Elasticsearch versions for 3.x.
- Clean up uses of
LegacyESVersion.fromString
. This is where we have some very old versions being referenced. - Remove uses of constants from
LegacyESVersion
. InIndexMetadata
, we can justassert
unconditionally. The harder one isRemoteSnasphotDirectory
. I strongly disagree with the extended compatibility feature on principle. That said, if we're going to let users shoot themselves in the foot anyway, IMO we should only let them do it going back to OpenSearch 1.0. - Move
idToVersion
andstringToVersion
maps fromLegacyESVersion
toVersion
. - I think we can then remove
LegacyESVersion
.
Related component
Other
Describe alternatives you've considered
We could keep LegacyESVersion
around through the 3.x line and remove it in time for 4.0?
Additional context
No response