diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java index 842ff76d8..cb97d9f27 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java @@ -1123,7 +1123,7 @@ private boolean initBallotBox() { ballotBoxOpts.setWaiter(this.fsmCaller); ballotBoxOpts.setClosureQueue(this.closureQueue); ballotBoxOpts.setNodeId(getNodeId()); - // Initialize the last commited index BallotBox in to be the last snapshot index. + // Try to initialize the last committed index in BallotBox to be the last snapshot index. long lastCommittedIndex = 0; if (this.snapshotExecutor != null) { lastCommittedIndex = this.snapshotExecutor.getLastSnapshotIndex(); @@ -1446,7 +1446,6 @@ private void executeApplyingTasks(final List tasks) { this.logManager.appendEntries(entries, new LeaderStableClosure(entries)); // update conf.first checkAndSetConfiguration(true); - return; } finally { this.writeLock.unlock(); }