Skip to content

Commit

Permalink
Ignoring update of final type settings in updateSettings function (#1304
Browse files Browse the repository at this point in the history
) (#1306)

Signed-off-by: Nishant Goel <[email protected]>
(cherry picked from commit e509da4)

Co-authored-by: Nishant Goel <[email protected]>
  • Loading branch information
1 parent 34a1d6e commit 86d3f67
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ open class IndexReplicationTask(id: Long, type: String, action: String, descript
continue
}
val setting = indexScopedSettings[key]
if (!setting.isPrivateIndex) {
if (!setting.isPrivateIndex && !setting.isFinal) {
desiredSettingsBuilder.copy(key, settings);
}
}
Expand All @@ -473,7 +473,7 @@ open class IndexReplicationTask(id: Long, type: String, action: String, descript
if (desiredSettings.get(key) != followerSettings.get(key)) {
//Not intended setting on follower side.
val setting = indexScopedSettings[key]
if (indexScopedSettings.isPrivateSetting(key)) {
if (indexScopedSettings.isPrivateSetting(key) || setting.isFinal) {
continue
}
if (!setting.isDynamic()) {
Expand All @@ -486,7 +486,7 @@ open class IndexReplicationTask(id: Long, type: String, action: String, descript

for (key in followerSettings.keySet()) {
val setting = indexScopedSettings[key]
if (setting == null || setting.isPrivateIndex) {
if (setting == null || setting.isPrivateIndex || setting.isFinal) {
continue
}

Expand Down

0 comments on commit 86d3f67

Please sign in to comment.