Skip to content

Commit 0234193

Browse files
Fix a bug in the cluster state application
1 parent e040c9d commit 0234193

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/ProjectMetadata.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,9 @@ public boolean isIndexManagedByILM(IndexMetadata indexMetadata) {
11091109
}
11101110

11111111
static boolean isStateEquals(ProjectMetadata project1, ProjectMetadata project2) {
1112+
if (project1.settings().equals(project2.settings()) == false) {
1113+
return false;
1114+
}
11121115
if (project1.templates().equals(project2.templates()) == false) {
11131116
return false;
11141117
}
@@ -2389,7 +2392,7 @@ public ProjectMetadata apply(ProjectMetadata part) {
23892392
&& builder.dataStreamMetadata() == part.custom(DataStreamMetadata.TYPE, DataStreamMetadata.EMPTY)) {
23902393
builder.previousIndicesLookup = part.indicesLookup;
23912394
}
2392-
builder.settings = settingsDiff.apply(builder.settings);
2395+
builder.settings = settingsDiff.apply(part.settings);
23932396
return builder.build(true);
23942397
}
23952398

0 commit comments

Comments
 (0)