JiangHua Zhu created RATIS-2288:
-----------------------------------

             Summary: Add some assertions to RaftServerImpl to improve 
robustness
                 Key: RATIS-2288
                 URL: https://issues.apache.org/jira/browse/RATIS-2288
             Project: Ratis
          Issue Type: Improvement
          Components: server
    Affects Versions: 3.1.2, 3.1.1
            Reporter: JiangHua Zhu


When executing RaftServerImpl#getTransactionContext(), it may return null. We 
should add some assertions.

{code:java}
TransactionContext getTransactionContext(LogEntryProto entry, Boolean 
createNew) {
    if (!entry.hasStateMachineLogEntry()) {
      return null;
    }
    ......
}
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to