[ https://issues.apache.org/jira/browse/RATIS-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839438#comment-16839438 ]
Lokesh Jain commented on RATIS-515: ----------------------------------- [~szetszwo] Thanks for the contribution! [~msingh] [~hanishakoneru] Thanks for the reviews! I have committed the patch to master branch. > IllegalStateException while updating matchIndex > ----------------------------------------------- > > Key: RATIS-515 > URL: https://issues.apache.org/jira/browse/RATIS-515 > Project: Ratis > Issue Type: Bug > Components: server > Affects Versions: 0.4.0 > Reporter: Mukul Kumar Singh > Assignee: Tsz Wo Nicholas Sze > Priority: Critical > Labels: MiniOzoneChaosCluster > Attachments: miniozonelog.txt, r515_20190506.patch, > r515_20190507.patch, r515_20190510.patch > > > Match index is not updated increasingly as noted in the following stack trace. > {code} > java.lang.IllegalStateException: Failed to updateIncreasingly for matchIndex: > 393 -> 0 > at > org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:72) > at > org.apache.ratis.server.storage.RaftLogIndex.updateIncreasingly(RaftLogIndex.java:60) > at > org.apache.ratis.server.impl.FollowerInfo.updateMatchIndex(FollowerInfo.java:66) > at > org.apache.ratis.grpc.server.GrpcLogAppender.onSuccess(GrpcLogAppender.java:309) > at > org.apache.ratis.grpc.server.GrpcLogAppender$AppendLogResponseHandler.onNextImpl(GrpcLogAppender.java:239) > at > org.apache.ratis.grpc.server.GrpcLogAppender$AppendLogResponseHandler.onNext(GrpcLogAppender.java:224) > at > org.apache.ratis.grpc.server.GrpcLogAppender$AppendLogResponseHandler.onNext(GrpcLogAppender.java:206) > at > org.apache.ratis.thirdparty.io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:421) > at > org.apache.ratis.thirdparty.io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) > at > org.apache.ratis.thirdparty.io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) > at > org.apache.ratis.thirdparty.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:519) > at > org.apache.ratis.thirdparty.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) > at > org.apache.ratis.thirdparty.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)