Reflect upstream changes to o.e.c.m.IndexMetaData
This commit reflects some upstream method removals from o.e.c.m.IndexMetaData. Original commit: elastic/x-pack-elasticsearch@74b25628dc
This commit is contained in:
parent
05befa5ebb
commit
a0b9d424e6
|
@ -239,10 +239,10 @@ public class DefaultIndicesAndAliasesResolver implements IndicesAndAliasesResolv
|
|||
//complicated to support those options with aliases pointing to multiple indices...
|
||||
return true;
|
||||
}
|
||||
if (indexMetaData.state() == IndexMetaData.State.CLOSE && indicesOptions.expandWildcardsClosed()) {
|
||||
if (indexMetaData.getState() == IndexMetaData.State.CLOSE && indicesOptions.expandWildcardsClosed()) {
|
||||
return true;
|
||||
}
|
||||
if (indexMetaData.state() == IndexMetaData.State.OPEN && indicesOptions.expandWildcardsOpen()) {
|
||||
if (indexMetaData.getState() == IndexMetaData.State.OPEN && indicesOptions.expandWildcardsOpen()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,7 +236,7 @@ public class TriggeredWatchStore extends AbstractComponent {
|
|||
if (!state.routingTable().index(INDEX_NAME).allPrimaryShardsActive()) {
|
||||
throw illegalState("not all primary shards of the [{}] index are started.", INDEX_NAME);
|
||||
} else {
|
||||
numPrimaryShards = indexMetaData.numberOfShards();
|
||||
numPrimaryShards = indexMetaData.getNumberOfShards();
|
||||
}
|
||||
RefreshResponse refreshResponse = client.refresh(new RefreshRequest(INDEX_NAME));
|
||||
if (refreshResponse.getSuccessfulShards() < numPrimaryShards) {
|
||||
|
|
|
@ -79,7 +79,7 @@ public class WatchStore extends AbstractComponent {
|
|||
IndexMetaData watchesIndexMetaData = state.getMetaData().index(INDEX);
|
||||
if (watchesIndexMetaData != null) {
|
||||
try {
|
||||
int count = loadWatches(watchesIndexMetaData.numberOfShards());
|
||||
int count = loadWatches(watchesIndexMetaData.getNumberOfShards());
|
||||
logger.debug("loaded [{}] watches from the watches index [{}]", count, INDEX);
|
||||
started.set(true);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue