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

Node state incorrectly set to NORMAL after nodetool disablegossip and enablegossip during bootstrap

    XMLWordPrintableJSON

Details

    Description

      At high level, StorageService#setGossipTokens set the gossip state to NORMAL blindly. Therefore, re-enabling gossip (stop and start gossip) overrides the actual gossip state.
       
      It could happen in the below scenario.

      1. Bootstrap failed. The gossip state remains in BOOT / JOINING and code execution exits StorageService#initServer.
      2. Operator runs nodetool to stop and re-start gossip. The gossip state gets flipped to NORMAL

      Attachments

        Activity

          People

            yifanc Yifan Cai
            yifanc Yifan Cai
            Yifan Cai
            Blake Eggleston, Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m