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

Deletion of a cell deletes the previous versions too

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.3.1, 1.2.6, 2.0.0-alpha-1
    • 1.4.0, 1.3.2, 2.0.0, 1.2.7
    • API, shell
    • Incompatible change, Reviewed
    • Now, delete.rb won't delete all versions of the specified column. It only delete the specified version (if user assigns a timestamp) or the latest version (default behavior)

    Description

      When I tried to delete a cell using it's timestamp in the Hbase Shell, the previous versions of the same cell also got deleted. But when I tried the same using the Java API, then the previous versions are not deleted and I can retrive the previous values.

      https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Delete.java

      see this file to fix the issue. This method (public Delete addColumn(final byte [] family, final byte [] qualifier, final long timestamp)) only deletes the current version of the cell. The previous versions are not deleted.

      Attachments

        1. HBASE-18142.master.v0.patch
          0.8 kB
          Chun-Hao Tang
        2. HBASE-18142.master.v1.patch
          5 kB
          Chun-Hao Tang
        3. HBASE-18142.master.v2.patch
          8 kB
          Chun-Hao Tang
        4. HBASE-18142.master.v3.patch
          9 kB
          Chun-Hao Tang
        5. HBASE-18142.master.v4.patch
          9 kB
          Chun-Hao Tang
        6. HBASE-18142.master.v5.patch
          9 kB
          Chun-Hao Tang
        7. HBASE-18142.master.v6.patch
          10 kB
          Chun-Hao Tang
        8. HBASE-18142.master.v7.patch
          10 kB
          Chun-Hao Tang
        9. HBASE-18142.master.v8.patch
          10 kB
          Chun-Hao Tang
        10. HBASE-18142.branch-1.v0.patch
          43 kB
          Chun-Hao Tang
        11. HBASE-18142.branch-1.v1.patch
          8 kB
          Chun-Hao Tang

        Issue Links

          Activity

            People

              chunhao Chun-Hao Tang
              KarthickRam Karthick
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: