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

Replication is not preserving the timestamp of the cell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • Replication

    Description

      The Replication procedure in ReplicationSink.replicateEntries() method is not preserving the timestamp of the cell.

      Pointer to the code:
      m = CellUtil.isDelete(cell) ? new Delete(cell.getRowArray(), cell.getRowOffset(),cell.getRowLength()) : new Put(cell.getRowArray(), cell.getRowOffset(),cell.getRowLength());

      The Put and Delete constructors called here assign the timestamp with HConstants.LATEST_TIMESTAMP. Instead we need to keep the timestamp of the cell here.

      Also there doesn't seem to be a test which checks if replication is preserving the timestamp.

      Attachments

        Activity

          People

            saitejar Sai Teja Ranuva
            saitejar Sai Teja Ranuva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: