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

NullPointerException in Gossiper.getHostId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • None
    • None
    • Normal

    Description

      We added some nodes into our cluster, for some of them, when they finish bootstrap, they are not shown in the `nodetool status` of other nodes.

      I checked the logs and found this:

      2015-12-29_05:06:23.89461 ERROR 05:06:23 Exception in thread Thread[GossipStage:9,5,main]
      2015-12-29_05:06:23.89463 java.lang.NullPointerException: null
      2015-12-29_05:06:23.89463       at org.apache.cassandra.gms.Gossiper.getHostId(Gossiper.java:811) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89464       at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:1664) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89464       at org.apache.cassandra.service.StorageService.onChange(StorageService.java:1485) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89464       at org.apache.cassandra.gms.Gossiper.doOnChangeNotifications(Gossiper.java:1156) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89465       at org.apache.cassandra.gms.Gossiper.applyNewStates(Gossiper.java:1138) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89465       at org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:1095) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89466       at org.apache.cassandra.gms.GossipDigestAckVerbHandler.doVerb(GossipDigestAckVerbHandler.java:58) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89466       at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:62) ~[apache-cassandra-2.1.8+git20151215.c8ed2ab16.jar:2.1.8+git20151215.c8ed2ab16]
      2015-12-29_05:06:23.89469       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_45]
      2015-12-29_05:06:23.89469       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_45]
      2015-12-29_05:06:23.89469       at java.lang.Thread.run(Thread.java:744) ~[na:1.7.0_45]
      

      This looks different than CASSANDRA-10089, so I create a new jira.

      Attachments

        Activity

          People

            jkni Joel Knighton
            dikanggu Dikang Gu
            Joel Knighton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: