Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6059

Replaying recovered edits would make deleted data exist again

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.95.0
    • regionserver
    • None
    • Reviewed

    Description

      When we replay recovered edits, we used the minSeqId of Store, It may cause deleted data appeared again.

      Let's see how it happens. Suppose the region with two families(cf1,cf2)

      1.put one data to the region (put r1,cf1:q1,v1)

      2.move the region from server A to server B.

      3.delete the data put by step 1(delete r1)

      4.flush this region.

      5.make major compaction for this region

      6.move the region from server B to server A.

      7.Abort server A

      8.After the region is online, we could get the deleted data(r1,cf1:q1,v1)
      (When we replay recovered edits, we used the minSeqId of Store, because cf2 has no store files, so its seqId is 0, so the edit log of put data will be replayed to the region)

      Attachments

        1. HBASE-6059-testcase.patch
          6 kB
          Chunhui Shen
        2. HBASE-6059.patch
          16 kB
          Chunhui Shen
        3. HBASE-6059v2.patch
          17 kB
          Chunhui Shen
        4. HBASE-6059v3.patch
          16 kB
          Chunhui Shen
        5. HBASE-6059v4.patch
          18 kB
          Chunhui Shen
        6. HBASE-6059v5.patch
          19 kB
          Chunhui Shen
        7. 6059v6.txt
          19 kB
          Ted Yu
        8. 6059v7.txt
          19 kB
          Michael Stack
        9. 6059v7.txt
          19 kB
          Ted Yu
        10. 6059v7-94.patch
          19 kB
          Chunhui Shen

        Issue Links

          Activity

            People

              zjushch Chunhui Shen
              zjushch Chunhui Shen
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: