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

For the same row key, the KV in the newest StoreFile should be returned

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.89-fb, 0.99.0, 0.98.2
    • Fix Version/s: 0.89-fb
    • Component/s: Scanners
    • Labels:
      None

      Description

      When multiple scanners have the same KV, HBase should pick the "newest" one.
      i.e. pick the KV from the store file with the largest seq id.

      In the KeyValueHeap generalizedSeek implementation, we seem to prefer the "current"
      scanner over the scanners in the heap – THIS IS WRONG.

      The diff adds a unit test to make sure that bulk loads correctly. And fixes the issue.

        Attachments

        1. HBASE-10578.patch
          9 kB
          Amitanand Aiyer
        2. HBASE-10578-v2.patch
          10 kB
          Amitanand Aiyer

          Activity

            People

            • Assignee:
              amitanand Amitanand Aiyer
              Reporter:
              amitanand Amitanand Aiyer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: