Skip to content

Commit 4e9148b

Browse files
committed
Make isPublicationEnabled volatile
Signed-off-by: Sooraj Sinha <soosinha@amazon.com>
1 parent 6044b89 commit 4e9148b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public static RemoteClusterStateValidationMode parseString(String mode) {
235235
private final String METADATA_UPDATE_LOG_STRING = "wrote metadata for [{}] indices and skipped [{}] unchanged "
236236
+ "indices, coordination metadata updated : [{}], settings metadata updated : [{}], templates metadata "
237237
+ "updated : [{}], custom metadata updated : [{}], indices routing updated : [{}]";
238-
private AtomicBoolean isPublicationEnabled;
238+
private volatile AtomicBoolean isPublicationEnabled;
239239
private final String remotePathPrefix;
240240

241241
private final RemoteClusterStateCache remoteClusterStateCache;

0 commit comments

Comments
 (0)