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

error in log when upgrading multi-node cluster to 1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.0.11
    • None
    • None
    • ccm, dtest. Ubuntu

    • Normal

    Description

      I upgraded a cluster from 1.0.9 to 1.1.0. The following message shows up in the logs for all but the first node.

      ERROR [GossipStage:1] 2012-04-30 07:37:06,986 AbstractCassandraDaemon.java (line 139) Fatal exception in thread Thread[GossipStage:1,5,main]
      java.lang.UnsupportedOperationException: Not a time-based UUID                  
          at java.util.UUID.timestamp(UUID.java:331)                                  
          at org.apache.cassandra.service.MigrationManager.updateHighestKnown(MigrationManager.java:121)
          at org.apache.cassandra.service.MigrationManager.rectify(MigrationManager.java:99)
          at org.apache.cassandra.service.MigrationManager.onAlive(MigrationManager.java:83)
          at org.apache.cassandra.gms.Gossiper.markAlive(Gossiper.java:806)           
          at org.apache.cassandra.gms.Gossiper.handleMajorStateChange(Gossiper.java:849)
          at org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:908)   
          at org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(GossipDigestAck2VerbHandler.java:62)
          at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:59)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
          at java.lang.Thread.run(Thread.java:679)
      

      this dtest demonstrates the issue. It was added to the cassandra-dtest repository as upgrade_to_11_test:

      from dtest import Tester, debug 
      from tools import * 
       
      class TestUpgradeTo1_1(Tester): 
       
          def upgrade_test(self): 
              self.num_rows = 0 
              cluster = self.cluster 
       
              # Forcing cluster version on purpose 
              cluster.set_cassandra_dir(cassandra_version='1.0.9') 
       
              cluster.populate(3).start() 
              time.sleep(1) 
       
              for node in cluster.nodelist():     
                  node.flush() 
                  time.sleep(.5) 
                  node.stop(wait_other_notice=True) 
                  node.set_cassandra_dir(cassandra_version='1.1.0') 
                  node.start(wait_other_notice=True) 
                  time.sleep(.5)
      

      Attachments

        1. CASSANDRA-4195.patch
          3 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            tpatterson Tyler Patterson
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: