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

Import tool is not restoring multiple DeleteFamily markers of a row

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.98.2
    • Fix Version/s: 0.98.7, 0.99.1, 0.94.25
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When a row has more than one DeleteFamily markers, Import tool is not restoring all DeleteFamily markers.

      Scenario: Insert entries into hbase in below order

      Put Row1 with Value-A
      Delete Row1 with DeleteFamily Marker
      Put Row1 with Value-B
      Delete Row1 with DeleteFamily Marker

      Using Export tool export this data and Import it into another table, you will see below entries

      Delete Row1 with DeleteFamily Marker
      Put Row1 with Value-B
      Put Row1 with Value-A

      One DeleteFamily marker is missing here... In Import tool, Importer.writeResult() method we are batching all deletes into a single Delete request and pushing into hbase. Here we are pushing only one delete family marker into hbase table.

      I tried same with normal HTable.delete command also.
      If you pass multiple DeleteFamily markers of a row in a single Delete request to hbase then table is maintaining only one.

      If that is the expected behavior of hbase then we should change logic in Import tool to push DeleteFamily markers individually one by one.

        Attachments

        1. HBASE-12065.patch
          5 kB
          Andrew Kyle Purtell
        2. HBASE-12065-0.94.patch
          6 kB
          Andrew Kyle Purtell
        3. hbase-12065-fix.patch
          2 kB
          Maddineni Sukumar
        4. hbase-12065-fix-2.patch
          2 kB
          Maddineni Sukumar
        5. hbase-12065-unit-test.patch
          3 kB
          Maddineni Sukumar

          Activity

            People

            • Assignee:
              sukunaidu@gmail.com Maddineni Sukumar
              Reporter:
              sukunaidu@gmail.com Maddineni Sukumar
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: