mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
propagate cluster event to shard and meta states in local gateway even when state persistence is disabled, so they can act on it if needed
This commit is contained in:
parent
57e966e9d7
commit
877f2ffcd7
@ -200,10 +200,6 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void clusterChanged(final ClusterChangedEvent event) {
|
public void clusterChanged(final ClusterChangedEvent event) {
|
||||||
// nothing to do until we actually recover from the gateway or any other block indicates we need to disable persistency
|
|
||||||
if (event.state().blocks().disableStatePersistence()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// order is important, first metaState, and then shardsState
|
// order is important, first metaState, and then shardsState
|
||||||
// so dangling indices will be recorded
|
// so dangling indices will be recorded
|
||||||
metaState.clusterChanged(event);
|
metaState.clusterChanged(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user