From a4ecba875828d1b069ef26afa783cb78cabffba3 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Mon, 4 Jul 2022 17:32:23 +0200 Subject: [PATCH] FakeClusterManager nodeId should be volatile Fixes #4411 To avoid visibility issues Signed-off-by: Thomas Segismont --- src/test/java/io/vertx/test/fakecluster/FakeClusterManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/io/vertx/test/fakecluster/FakeClusterManager.java b/src/test/java/io/vertx/test/fakecluster/FakeClusterManager.java index b7317a9cf72..771af60490b 100644 --- a/src/test/java/io/vertx/test/fakecluster/FakeClusterManager.java +++ b/src/test/java/io/vertx/test/fakecluster/FakeClusterManager.java @@ -45,7 +45,7 @@ public class FakeClusterManager implements ClusterManager { private static LocalAsyncLocks localAsyncLocks = new LocalAsyncLocks(); private static final ConcurrentMap counters = new ConcurrentHashMap<>(); - private String nodeID; + private volatile String nodeID; private NodeListener nodeListener; private VertxInternal vertx; private NodeSelector nodeSelector;