Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18376

CEP-15 (Accord) NPE in accord.topology.TopologyManager.localForEpoch

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Accord
    • None
    • Correctness - Unrecoverable Corruption / Loss
    • Normal
    • Normal
    • Fuzz Test
    • All
    • None

    Description

      java.lang.NullPointerException
      	at accord.topology.TopologyManager.localForEpoch(TopologyManager.java:402)
      	at accord.local.Node.trySelectProgressKey(Node.java:431)
      	at accord.messages.TxnRequest.progressKey(TxnRequest.java:151)
      	at accord.messages.TxnRequest.process(TxnRequest.java:143)
      	at org.apache.cassandra.service.accord.AccordVerbHandler.doVerb(AccordVerbHandler.java:46)
      

      accord.topology.TopologyManager.Epochs#get is able to return null, yet the callers do not handle

      private EpochState get(long epoch)
      {
          if (epoch > currentEpoch || epoch <= currentEpoch - epochs.length)
              return null;
      
          return epochs[(int) (currentEpoch - epoch)];
      }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            dcapwell David Capwell

            Dates

              Created:
              Updated:

              Slack

                Issue deployment