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

Wrongly delete cells in some case which can not be deleted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.5, 0.95.0
    • 0.98.0, 0.95.2, 0.94.10
    • REST
    • None
    • CentOS 5.5/hadoop0.20.2/hbase0.94.5/zookeeper3.4.3

    • REST

    Description

      First, I put a cell using put interface, but I don't specify timestamp. Then I delete the the same row, specify a timestamp of 1L. Unfortunately, the former cell is

      deleted. We should know this cell can not be deleted in this case. (Using original Client API)

      Code like this;
      public static void main(String[] args) throws Exception

      { Cluster cluster = new Cluster(); cluster.add("10.28.171.38", 8080); Client client = new Client(cluster); RemoteHTable table = new RemoteHTable(client, "demotime"); Put put = new Put(Bytes.toBytes("row21")); put.add("info".getBytes(), "name".getBytes(), "huanggang".getBytes()); table.put(put); Delete delete = new Delete(Bytes.toBytes("row21")); delete.setTimestamp(1L); table.delete(delete); }

      Attachments

        1. HBASE-8678-v0-trunk.patch
          0.7 kB
          Jean-Marc Spaggiari
        2. HBASE-8678-v1-trunk.patch
          0.7 kB
          Jean-Marc Spaggiari
        3. HBASE-8678-v2-0.94.patch
          0.7 kB
          Jean-Marc Spaggiari
        4. HBASE-8678-v2-trunk.patch
          0.7 kB
          Jean-Marc Spaggiari
        5. HBASE-8678-v3-0.94.patch
          2 kB
          Jean-Marc Spaggiari
        6. HBASE-8678-v3-trunk.patch
          2 kB
          Jean-Marc Spaggiari

        Activity

          People

            jmspaggi Jean-Marc Spaggiari
            bjhuangg Eric Huang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: