signalPublish with not STANDALONE_MODE
This commit is contained in:
parent
1043f855c7
commit
2c1d95d95c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user