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

Add keyspace and table name in schema validation exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 4.0-alpha1, 4.0
    • None

    Description

      We're seeing the following exception from time to time, it would be better to include keyspace table name, so we know which table update is causing the issue:

      ERROR [InternalResponseStage:391] 2017-09-06 00:29:05,361 MigrationTask.java:96 - Configuration exception merging remote schema
      org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found af1f4650-9279-11e7-9df0-399587d0a542; expected a094fe70-89e3-11e7-b4d5-eb8faf28be34)
          at org.apache.cassandra.config.CFMetaData.validateCompatibility(CFMetaData.java:785) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.config.CFMetaData.apply(CFMetaData.java:747) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.config.Schema.updateTable(Schema.java:661) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.schema.SchemaKeyspace.updateKeyspace(SchemaKeyspace.java:1391) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.schema.SchemaKeyspace.mergeSchema(SchemaKeyspace.java:1347) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.schema.SchemaKeyspace.mergeSchemaAndAnnounceVersion(SchemaKeyspace.java:1297) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.service.MigrationTask$1.response(MigrationTask.java:92) ~[apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:53) [apache-cassandra-3.0.14.jar:3.0.14]
          at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:67) [apache-cassandra-3.0.14.jar:3.0.14]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
          at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
          at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79) [apache-cassandra-3.0.14.jar:3.0.14]
          at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_121]
      

      Attachments

        Activity

          People

            jay.zhuang Jay Zhuang
            jay.zhuang Jay Zhuang
            Jay Zhuang
            Jaydeepkumar Chovatia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: