Skip to content

Commit

Permalink
FakeClusterManager nodeId should be volatile
Browse files Browse the repository at this point in the history
Fixes #4411

To avoid visibility issues

Signed-off-by: Thomas Segismont <[email protected]>
  • Loading branch information
tsegismont committed Jul 4, 2022
1 parent c269273 commit a4ecba8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class FakeClusterManager implements ClusterManager {
private static LocalAsyncLocks localAsyncLocks = new LocalAsyncLocks();
private static final ConcurrentMap<String, AtomicLong> counters = new ConcurrentHashMap<>();

private String nodeID;
private volatile String nodeID;
private NodeListener nodeListener;
private VertxInternal vertx;
private NodeSelector nodeSelector;
Expand Down

0 comments on commit a4ecba8

Please sign in to comment.