From 2c1d95d95cdabf8a9e375e00eb30dcb7446b47df Mon Sep 17 00:00:00 2001 From: luoxn28 Date: Thu, 21 Feb 2019 20:47:35 +0800 Subject: [PATCH] signalPublish with not STANDALONE_MODE --- .../src/main/java/com/alibaba/nacos/naming/raft/RaftCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/raft/RaftCore.java b/naming/src/main/java/com/alibaba/nacos/naming/raft/RaftCore.java index 409580e15..9feba6bf9 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/raft/RaftCore.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/raft/RaftCore.java @@ -268,7 +268,7 @@ public class RaftCore { } - if (!latch.await(UtilsAndCommons.RAFT_PUBLISH_TIMEOUT, TimeUnit.MILLISECONDS)) { + if (!STANDALONE_MODE && !latch.await(UtilsAndCommons.RAFT_PUBLISH_TIMEOUT, TimeUnit.MILLISECONDS)) { // only majority servers return success can we consider this update success Loggers.RAFT.info("data publish failed, caused failed to notify majority, key={}", key); throw new IllegalStateException("data publish failed, caused failed to notify majority, key=" + key);