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

removenode coordinator, and its hints data will be lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • None
    • None
    • cassandra version 3.11.3

    • Normal

    Description

      There are four nodes in cluster. assume them are node A, B, C, D. enabled hinted handoff.

      1) create a keyspace with RF=2, and create a table.

      2) make node B, C down(nodetool stopdaemon),

      3) login in node A with cqlsh,set CONSISTENCY ANY, insert into a row(assume the row will be stored in node B and C). The row was successfully inserted even though the node B,C was down, because the consistency level is ANY. the coordinator(node A) wrote hints.

      4) make node A down(nodetool stopdaemon), then remove node A(nodetool removenode ${nodeA_hostId})

      5) make node B, C come back(nodetool start)

      6) login in any node of B, C, D. and execute select statement with partition key of inserted row. But there is no any data that inserted row on step 3. 

       

      These steps lead to data(on step 3 was inserted row) lost.

      Is there any problem with the steps I performed above? 

      If yes, How to deal with this situation?

      look forward to your reply,  thanks.

       

      Attachments

        Activity

          People

            aweisberg Ariel Weisberg
            sunhaihong sunhaihong
            Ariel Weisberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: