Merge pull request #810 from luoxn28/master
signalPublish with not STANDALONE_MODE
This commit is contained in:
commit
1e1e1beeb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user