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

nodetool resetlocalschema does not sync schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 3.0.x, 3.11.x
    • Cluster/Schema
    • None
    • Degradation - Performance Bug/Regression
    • Normal
    • Normal
    • User Report
    • All
    • None
    • Hide

      backported test from newer branches

      Show
      backported test from newer branches

    Description

      Steps to reproduce:

      $ ccm create -n 2 -v 3.11.13 -s resettest
      $ ccm node1 cqlsh -e "CREATE KEYSPACE test WITH replication = {'class':'NetworkTopologyStrategy', 'datacenter1': 2}"
      $ ccm node1 cqlsh -e "CREATE TABLE test.messages(id int primary key, message text)"
      $ ccm node1 nodetool describecluster
      
      Cluster Information:
              Name: resettest
              Snitch: org.apache.cassandra.locator.SimpleSnitch
              DynamicEndPointSnitch: enabled
              Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
              Schema versions:
                      5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1, 127.0.0.2]
      
      $ ccm node2 nodetool resetlocalschema
      $ ccm node2 cqlsh -e 'describe full schema'
      
      $ find ~/.ccm/resettest/node2/data0/system_schema/ -maxdepth 2 -type f
      $ ccm node2 nodetool describecluster
      
      Cluster Information:
              Name: resettest
              Snitch: org.apache.cassandra.locator.SimpleSnitch
              DynamicEndPointSnitch: enabled
              Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
              Schema versions:
                      5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1]
      
                      59adb24e-f3cd-3e02-97f0-5b395827453f: [127.0.0.2]
      
      $ ccm node2 stop
      $ ccm node2 start
      $ ccm node2 nodetool describecluster
      
      Cluster Information:
              Name: jpmctest
              Snitch: org.apache.cassandra.locator.SimpleSnitch
              DynamicEndPointSnitch: enabled
              Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
              Schema versions:
                      5172094b-dee2-3967-b5f0-dfd81d572a74: [127.0.0.1, 127.0.0.2]
      
      

      Its not resyncing the schema until after restarting the node.

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              cam1982 Cameron Zemek
              Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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