You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sz...@apache.org on 2018/07/20 20:43:27 UTC
incubator-ratis git commit: RATIS-263. Deadlock in ratis because of
leader election. Contributed by Rajeshbabu Chintaguntla
Repository: incubator-ratis
Updated Branches:
refs/heads/master 67bb9fcd4 -> 4d00b24dd
RATIS-263. Deadlock in ratis because of leader election. Contributed by Rajeshbabu Chintaguntla
Project: http://git-wip-us.apache.org/repos/asf/incubator-ratis/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ratis/commit/4d00b24d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ratis/tree/4d00b24d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ratis/diff/4d00b24d
Branch: refs/heads/master
Commit: 4d00b24ddf9be560679dbe2ec6d6e0a36f4adc13
Parents: 67bb9fc
Author: Tsz Wo Nicholas Sze <sz...@apache.org>
Authored: Fri Jul 20 13:42:21 2018 -0700
Committer: Tsz Wo Nicholas Sze <sz...@apache.org>
Committed: Fri Jul 20 13:42:21 2018 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/4d00b24d/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
----------------------------------------------------------------------
diff --git a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
index dc85d6b..bbfbb02 100644
--- a/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
+++ b/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java
@@ -1031,7 +1031,7 @@ public class RaftServerImpl implements RaftServerProtocol, RaftServerAsynchronou
return null;
}
- public synchronized long[] getFollowerNextIndices() {
+ public long[] getFollowerNextIndices() {
LeaderState s = this.leaderState;
if (s == null || !isLeader()) {
return null;