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 6AFE99891 for ; Sat, 17 Mar 2012 07:24:01 +0000 (UTC) Received: (qmail 56747 invoked by uid 500); 17 Mar 2012 07:24:01 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 56705 invoked by uid 500); 17 Mar 2012 07:24:01 -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 56680 invoked by uid 99); 17 Mar 2012 07:24:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2012 07:24:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Sat, 17 Mar 2012 07:23: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 3C37F24C9C for ; Sat, 17 Mar 2012 07:23:39 +0000 (UTC) Date: Sat, 17 Mar 2012 07:23:39 +0000 (UTC) From: "Lars Hofhansl (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <997623501.27704.1331969019248.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <841237803.6797.1331613703869.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5569) Do not collect deleted KVs when they are still in use by a scanner. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231876#comment-13231876 ] Lars Hofhansl commented on HBASE-5569: -------------------------------------- One last point: This seems to be extremely sensitive to the machine it is running on. Among the various loops I ran on my work machine I ran the test close to 10000 times and have not observed a single failure on that machine (with my changes applied), while on my home machine this is relatively easy to reproduce. > Do not collect deleted KVs when they are still in use by a scanner. > ------------------------------------------------------------------- > > Key: HBASE-5569 > URL: https://issues.apache.org/jira/browse/HBASE-5569 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Fix For: 0.94.0, 0.96.0 > > Attachments: 5569-v2.txt, 5569.txt, TestAtomicOperation-output.trunk_120313.rar > > > I noticed this because TestAtomicOperation.testMultiRowMutationMultiThreads fails rarely. > The solution is similar to HBASE-2856, where expired KVs are not collected when in use by a scanner. > --- > What I pieced together so far is that it is the *scanning* side that has problems sometimes. > Every time I see a assertion failure in the log I see this before: > {quote} > 2012-03-12 21:48:49,523 DEBUG [Thread-211] regionserver.StoreScanner(499): Storescanner.peek() is changed where before = rowB/colfamily11:qual1/75366/Put/vlen=6,and after = rowB/colfamily11:qual1/75203/DeleteColumn/vlen=0 > {quote} > The order of if the Put and Delete is sometimes reversed. > The test threads should always see exactly one KV, if the "before" was the Put the thread see 0 KVs, if the "before" was the Delete the threads see 2 KVs. > This debug message comes from StoreScanner to checkReseek. It seems we still some consistency issue with scanning sometimes :( -- 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