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

incorrect neighbor calculation in repair

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.6.1
    • None
    • None
    • CentOS 5.2

    • Normal

    Description

      With Replicationfactor=2, if a server is brought down and its data directory wiped out, it doesn't restore its data replica after restart and nodeprobe repair.
      Steps to reproduce:
      1) Bring up a cluster with three servers cs1,2,3, with their initial token set to 'foo3', 'foo6', and 'foo9', respectively. ReplicationFactor is set to 2 on all 3.
      2) Insert 9 columns with keys from 'foo1' to 'foo9', and flush. Now I have foo1,2,3,7,8,9 on cs1, foo1,2,3,4,5,6, on cs2, and foo4,5,6,7,8,9
      on cs3. So far so good
      3) Bring down cs3 and wipe out its data directory
      4) Bring up cs3
      5) run nodeprobe repair Keyspace1 on cs3, the flush
      At this point I expect to see cs3 getting its data back. But there's nothing in its data directory. I also tried getting all columns with
      ConsistencyLevel::ALL to see if that'll do a read pair. But still cs3's data directory is empty.

      Attachments

        1. storage-conf.xml
          3 kB
          Jianing hu
        2. error.log
          39 kB
          Jianing hu
        3. error.log
          46 kB
          Jianing hu
        4. error.log
          222 kB
          Jianing hu
        5. cs3.log
          44 kB
          Jianing hu
        6. cs3.log
          43 kB
          Jianing hu
        7. cs2.log
          34 kB
          Jianing hu
        8. cs2.log
          35 kB
          Jianing hu
        9. cs1.log
          39 kB
          Jianing hu
        10. cs1.log
          42 kB
          Jianing hu
        11. 0003-Unit-test-for-AEService-neighbor-calculation.patch
          5 kB
          Stu Hood
        12. 0002-Always-trigger-streaming-repairs.patch
          2 kB
          Stu Hood
        13. 0001-Calculate-neighbors-using-getRangeToEndpointMap.patch
          3 kB
          Stu Hood

        Activity

          People

            stuhood Stu Hood
            hujn Jianing hu
            Stu Hood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: