hello, tried to upgrade in place from 1.3.6 to 2.4.0, it complained about old indices indexed by ES 6.8.11:
The index [[gl-events_22/06X3HOBYSLqduZ7Ee7_y3g]] was created with version [6.8.11] but the minimum compatible version is OpenSearch 1.0.0 (or Elasticsearch 7.0.0). It should be re-indexed in OpenSearch 1.x (or Elasticsearch 7.x) before upgrading to 2.4.0.
so i went back to 1.3.6, cleaned up and deleted some old ones (I’m not proficient with jq
to check via json/rest api and those were old closed indices), tried again, it complained again, so went back to 1.3.6 again but now 1.3.6 says:
java.lang.IllegalArgumentException: indexCreatedVersionMajor is in the future: 9
guessing my indices are in some kind of limbo between 1.3 and 2.0 which makes them unreadable by both, any idea on how can i recover those data?
EDIT: i found out which indices prevented opensearch 2.* from starting, deleted corresponding dirs now getting following errors:
[2022-12-09T12:59:03,009][INFO ][o.o.c.c.JoinHelper ] [4473a4e919fb] failed to join {4473a4e919fb}{BZsKa72CQim7i76BsbaGsg}{HHn_WmZcS12iKWvbWsMYYQ}{172.22.0.3}{172.22.0.3:9300}{dimr}{shard_indexing_pressure_enabled=true} with JoinRequest{sourceNode={4473a4e919fb}{BZsKa72CQim7i76BsbaGsg}{HHn_WmZcS12iKWvbWsMYYQ}{172.22.0.3}{172.22.0.3:9300}{dimr}{shard_indexing_pressure_enabled=true}, minimumTerm=18384, optionalJoin=Optional[Join{term=18385, lastAcceptedTerm=61, lastAcceptedVersion=51599, sourceNode={4473a4e919fb}{BZsKa72CQim7i76BsbaGsg}{HHn_WmZcS12iKWvbWsMYYQ}{172.22.0.3}{172.22.0.3:9300}{dimr}{shard_indexing_pressure_enabled=true}, targetNode={4473a4e919fb}{BZsKa72CQim7i76BsbaGsg}{HHn_WmZcS12iKWvbWsMYYQ}{172.22.0.3}{172.22.0.3:9300}{dimr}{shard_indexing_pressure_enabled=true}}]}
org.opensearch.transport.RemoteTransportException: [4473a4e919fb][172.22.0.3:9300][internal:cluster/coordination/join]
Caused by: org.opensearch.cluster.coordination.FailedToCommitClusterStateException: publication failed
at org.opensearch.cluster.coordination.Coordinator$CoordinatorPublication$4.onFailure(Coordinator.java:1722) ~[opensearch-2.4.0.jar:2.4.0]
[...]
Caused by: java.lang.IllegalStateException: index [graylog_1616/2z-1n4NrTx6e9DznxWWDrA] version not supported: 6.8.11 minimum compatible index version is: 7.0.0
[...]
it still complains about old inexistent indices, i know i shouldn’t delete them offline but i had no other choice, is there any way to make opensearch just ignore them at startup?