Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 117B711266 for ; Thu, 20 Feb 2014 23:37:31 +0000 (UTC) Received: (qmail 5905 invoked by uid 500); 20 Feb 2014 23:37:20 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 5869 invoked by uid 500); 20 Feb 2014 23:37:19 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 5857 invoked by uid 99); 20 Feb 2014 23:37:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Feb 2014 23:37:19 +0000 Date: Thu, 20 Feb 2014 23:37:19 +0000 (UTC) From: "Amitanand Aiyer (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-10578) For the same row key, the KV in the newest StoreFile should be returned MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-10578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amitanand Aiyer updated HBASE-10578: ------------------------------------ Attachment: HBASE-10578-v2.patch This file is intended to be applied over 0.89-fb. Not sure why HadoopQA tries to apply this over opensource trunk, and complain about it. > For the same row key, the KV in the newest StoreFile should be returned > ----------------------------------------------------------------------- > > Key: HBASE-10578 > URL: https://issues.apache.org/jira/browse/HBASE-10578 > Project: HBase > Issue Type: Bug > Components: Scanners > Affects Versions: 0.89-fb, 0.98.1 > Reporter: Amitanand Aiyer > Assignee: Amitanand Aiyer > Priority: Minor > Fix For: 0.89-fb > > Attachments: HBASE-10578-v2.patch, HBASE-10578.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.1.5#6160)