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

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

    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

            People

              Unassigned Unassigned
              dcapwell David Capwell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: