Skip to content

Commit

Permalink
Merge pull request alibaba#810 from luoxn28/master
Browse files Browse the repository at this point in the history
signalPublish with not STANDALONE_MODE
  • Loading branch information
Fury Zhu authored Feb 28, 2019
2 parents c1b7028 + 2c1d95d commit 1e1e1be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public STATE onContentWriteCompleted() {

}

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);
Expand Down

0 comments on commit 1e1e1be

Please sign in to comment.