Aliases should be processed when index routing changes

This commit is contained in:
Igor Motov 2011-10-31 22:05:25 -04:00 committed by Shay Banon
parent ca7247e1b1
commit 3c2dd959cb
1 changed files with 2 additions and 1 deletions

View File

@ -406,7 +406,8 @@ public class IndicesClusterStateService extends AbstractLifecycleComponent<Indic
}
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) {