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

Repair of empty keyspace hangs rather than ignoring the request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.3
    • None
    • None
    • Low

    Description

      Create a two node cluster, create a keyspace, don't create any tables. Initiate a repair:

      04:32 PM:~$ ccm create -v git:cassandra-2.1 test -n 2 -s
      Fetching Cassandra updates...
      Current cluster is now: test
      04:33 PM:~$ ccm node1 cqlsh
      Connected to test at 127.0.0.1:9042.
      [cqlsh 5.0.1 | Cassandra 2.1.2-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3]
      Use HELP for help.
      cqlsh> create KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 2};
      cqlsh> 
      04:34 PM:~$ ccm node1 nodetool -- repair
      [2015-01-27 16:34:11,741] Nothing to repair for keyspace 'system'
      [2015-01-27 16:34:11,748] Starting repair command #1, repairing 2 ranges for keyspace test (parallelism=SEQUENTIAL, full=true)
      

      The repair hangs.

      Do the same thing but add a table, and the repair completes very quickly.

      Attachments

        1. cass-8694.patch
          1 kB
          Jeff Jirsa

        Activity

          People

            jjirsa Jeff Jirsa
            enigmacurry Ryan McGuire
            Jeff Jirsa
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: