Aliases should be processed when index routing changes
This commit is contained in:
parent
ca7247e1b1
commit
3c2dd959cb
|
@ -406,7 +406,8 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent<Indic
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean aliasesChanged(ClusterChangedEvent event) {
|
private boolean aliasesChanged(ClusterChangedEvent event) {
|
||||||
return !event.state().metaData().aliases().equals(event.previousState().metaData().aliases());
|
return !event.state().metaData().aliases().equals(event.previousState().metaData().aliases()) ||
|
||||||
|
!event.state().routingTable().equals(event.previousState().routingTable());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void applyAliases(ClusterChangedEvent event) {
|
private void applyAliases(ClusterChangedEvent event) {
|
||||||
|
|
Loading…
Reference in New Issue