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 903D6B2B0 for ; Fri, 6 Jan 2012 18:11:01 +0000 (UTC) Received: (qmail 54334 invoked by uid 500); 6 Jan 2012 18:11:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 54276 invoked by uid 500); 6 Jan 2012 18:11:00 -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 54268 invoked by uid 99); 6 Jan 2012 18:11:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 18:11:00 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 18:10:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5AB5113BB37 for ; Fri, 6 Jan 2012 18:10:39 +0000 (UTC) Date: Fri, 6 Jan 2012 18:10:39 +0000 (UTC) From: "Zhihong Yu (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1277756121.15566.1325873439372.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1883881803.3608.1325659239405.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5121) MajorCompaction may affect scan's correctness 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-5121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhihong Yu updated HBASE-5121: ------------------------------ Attachment: 5121.90 Patch for 0.90 branch. > MajorCompaction may affect scan's correctness > --------------------------------------------- > > Key: HBASE-5121 > URL: https://issues.apache.org/jira/browse/HBASE-5121 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.90.4 > Reporter: chunhui shen > Assignee: chunhui shen > Fix For: 0.92.0, 0.94.0, 0.90.6 > > Attachments: 5121-trunk-combined.txt, 5121.90, hbase-5121-testcase.patch, hbase-5121.patch, hbase-5121v2.patch > > > In our test, there are two families' keyvalue for one row. > But we could find a infrequent problem when doing scan's next if majorCompaction happens concurrently. > In the client's two continuous doing scan.next(): > 1.First time, scan's next returns the result where family A is null. > 2.Second time, scan's next returns the result where family B is null. > The two next()'s result have the same row. > If there are more families, I think the scenario will be more strange... > We find the reason is that storescanner.peek() is changed after majorCompaction if there are delete type KeyValue. > This change causes the PriorityQueue of RegionScanner's heap is not sure to be sorted. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira