Skip to content

Commit

Permalink
Fix RepositoriesService Cluster State Application
Browse files Browse the repository at this point in the history
The current forwarding of the state is disabled if the repo metadata
did not change, so it's somewhat useless.
Relates elastic#49639
  • Loading branch information
original-brownbear committed Nov 29, 2019
1 parent 0464e57 commit 6e28073
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ public void applyClusterState(ClusterChangedEvent event) {

// Check if repositories got changed
if ((oldMetaData == null && newMetaData == null) || (oldMetaData != null && oldMetaData.equals(newMetaData))) {
for (Repository repo : repositories.values()) {
repo.updateState(state);
}
return;
}

Expand Down

0 comments on commit 6e28073

Please sign in to comment.