signalPublish with not STANDALONE_MODE

This commit is contained in:
luoxn28 2019-02-21 20:47:35 +08:00
parent 1043f855c7
commit 2c1d95d95c

View File

@ -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 // only majority servers return success can we consider this update success
Loggers.RAFT.info("data publish failed, caused failed to notify majority, key={}", key); 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); throw new IllegalStateException("data publish failed, caused failed to notify majority, key=" + key);