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

HintedHandoff can begin before SS knows the hostID

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

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 beta 3
    • None
    • None
    • Normal

    Description

      Since HH fires from the FD, SS won't quite have the hostId yet:

       INFO 18:58:04,196 Started hinted handoff for host: null with IP: /10.179.65.102
       INFO 18:58:04,197 Node /10.179.65.102 state jump to normal
      ERROR 18:58:04,197 Exception in thread Thread[HintedHandoff:1,1,main]
      java.lang.NullPointerException
              at org.apache.cassandra.utils.UUIDGen.decompose(UUIDGen.java:120)
              at org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpointInternal(HintedHandOffManager.java:304)
              at org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:250)
              at org.apache.cassandra.db.HintedHandOffManager.access$400(HintedHandOffManager.java:87)
              at org.apache.cassandra.db.HintedHandOffManager$4.runMayThrow(HintedHandOffManager.java:433)
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:26)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      

      Simple solution seems to be getting the hostId from gossip instead.

      Attachments

        Activity

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

          People

            brandon.williams Brandon Williams Assign to me
            brandon.williams Brandon Williams
            Brandon Williams
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment