OpenSearch/qa
Nik Everett 0d45752e50
Fix IndexMetaData loads after rollover (#33394)
When we rollover and index we write the conditions of the rollover that
the old index met into the old index. Loading this index metadata
requires a working `NamedXContentRegistry` that has been populated with
parsers from the rollover infrastructure. We had a few loads that didn't
use a working `NamedXContentRegistry` and so would fail if they ever
encountered an index that had been rolled over. Here are the locations
of the loads and how I fixed them:

* IndexFolderUpgrader - removed entirely. It existed to support opening
indices made in Elasticsearch 2.x. Since we only need this change as far
back as 6.4.1 which will supports reading from indices created as far
back as 5.0.0 we should be good here.
* TransportNodesListGatewayStartedShards - wired the
`NamedXContentRegistry` into place.
* TransportNodesListShardStoreMetaData - wired the
`NamedXContentRegistry` into place.
* OldIndexUtils - removed entirely. It existed to support the zip based
index backwards compatibility tests which we've since replaced with code
that actually runs old versions of Elasticsearch.

In addition to fixing the actual problem I added full cluster restart
integration tests for rollover which would have caught this problem and
I added an extra assertion to IndexMetaData's deserialization code which
will trip if we try to deserialize and index's metadata without a fully
formed `NamedXContentRegistry`. It won't catch if use the *wrong*
`NamedXContentRegistry` but it is better than nothing.

Closes #33316
2018-09-06 17:55:24 -04:00
..
ccs-unavailable-clusters Generalize search.remote settings to cluster.remote (#33413) 2018-09-05 20:43:44 -04:00
die-with-dignity Refactor Netty4Utils#maybeDie (#33021) 2018-08-22 10:18:07 -04:00
evil-tests Core: Remove some logging constructors (#32513) 2018-08-09 16:11:48 -04:00
full-cluster-restart Fix IndexMetaData loads after rollover (#33394) 2018-09-06 17:55:24 -04:00
mixed-cluster Fix BwC Tests looking for UUID Pre 6.4 (#32158) 2018-07-18 15:32:36 +02:00
multi-cluster-search Generalize search.remote settings to cluster.remote (#33413) 2018-09-05 20:43:44 -04:00
no-bootstrap-tests Plugins: Remove meta plugins (#30670) 2018-05-18 10:56:08 -07:00
rolling-upgrade AwaitsFix RecoveryIT#testHistoryUUIDIsGenerated 2018-07-23 08:56:43 -04:00
smoke-test-client Revert upgrade to Netty 4.1.25.Final (#31282) 2018-06-12 19:26:18 -04:00
smoke-test-http Revert upgrade to Netty 4.1.25.Final (#31282) 2018-06-12 19:26:18 -04:00
smoke-test-ingest-disabled Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-ingest-with-all-dependencies INGEST: Add Configuration Except. Data to Metdata (#32322) 2018-08-15 19:02:19 +02:00
smoke-test-multinode QA: System property to override distribution (#30591) 2018-05-15 17:16:16 -04:00
smoke-test-plugins Move repository-s3 fixture tests to QA test project (#29372) 2018-04-27 16:49:06 +02:00
vagrant Run forbidden api checks with runtimeJavaVersion (#32947) 2018-08-22 09:05:22 +03:00
verify-version-constants Switch non-x-pack to new style requests (#32106) 2018-07-16 17:44:19 -04:00
wildfly Unmute WildFly tests in FIPS JVM (#32814) 2018-08-13 21:08:10 +03:00
build.gradle QA: Fix resolution of default distribution (#31351) 2018-06-14 18:25:47 -04:00