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

Result returned by Append operation should be ordered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.5.0
    • 3.0.0-alpha-1, 1.5.0, 2.2.0
    • None
    • None
    • Reviewed
    • This change ensures Append operations are assembled into the expected order.

    Description

      Problem:

      The result returned by the append operation should be ordered. Currently, it returns an unordered list, which may cause problems like if the user tries to perform Result.getValue(byte[] family, byte[] qualifier), even if the returned result has a value corresponding to (family, qualifier), the method may return null as it performs a binary search over the  unsorted result (which should have been sorted actually).

       

      The result is enumerated by iterating over each entry of tempMemstore hashmap (which will never be ordered) and adding the values (see HRegion.java#L7882).

       

      Actual: The returned result is unordered

      Expected: Similar to increment op, the returned result should be ordered.

      Attachments

        1. HBASE-21021.master.001.patch
          3 kB
          Nihal Jain
        2. HBASE-21021.branch-1.001.patch
          4 kB
          Nihal Jain

        Activity

          People

            nihaljain.cs Nihal Jain
            nihaljain.cs Nihal Jain
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: