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

"Unknown keyspace system_traces" exception when using nodetool on a new cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Cannot Reproduce
    • None
    • Tool/nodetool
    • None
    • Low

    Description

      When creating a new cluster from scratch, nodetool status fails on system_traces as follow

      $ nodetool status
      
      error: Unknown keyspace system_traces
      -- StackTrace --
      java.lang.AssertionError: Unknown keyspace system_traces
      	at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:270)
      	at org.apache.cassandra.db.Keyspace.open(Keyspace.java:119)
      	at org.apache.cassandra.db.Keyspace.open(Keyspace.java:96)
      ...
      

      the problem disappear when creating an empty keyspace

      cqlsh> create keyspace temp WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 2 };
      

      My guess is system_traces initialization complete only after any data insertion.
      Before it does, any attempt to read from it either from nodetool, cqlsh or streaming to a new node will fail.

      Attachments

        Activity

          People

            carlyeks Carl Yeksigian
            tzach tzach
            Carl Yeksigian
            Ariel Weisberg
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: