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 CBFD8D78F for ; Sat, 17 Nov 2012 00:35:16 +0000 (UTC) Received: (qmail 23979 invoked by uid 500); 17 Nov 2012 00:35:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 23929 invoked by uid 500); 17 Nov 2012 00:35:15 -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 23888 invoked by uid 99); 17 Nov 2012 00:35:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 00:35:15 +0000 Date: Sat, 17 Nov 2012 00:35:15 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <327514958.126523.1353112515266.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HBASE-2645) HLog writer can do 1-2 sync operations after lease has been recovered for split process. 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-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-2645: ------------------------- Attachment: 2645-addendum.txt This is what I applied. > HLog writer can do 1-2 sync operations after lease has been recovered for split process. > ---------------------------------------------------------------------------------------- > > Key: HBASE-2645 > URL: https://issues.apache.org/jira/browse/HBASE-2645 > Project: HBase > Issue Type: Bug > Components: Filters > Affects Versions: 0.90.4 > Reporter: Cosmin Lehene > Assignee: Todd Lipcon > Priority: Blocker > Fix For: 0.96.0 > > Attachments: 2645-addendum.txt, 2645_hacking.txt, 2645.txt, 2645v2.txt, 2645v3.txt, 2645v4.txt, hdfs_1.0_editswriter_recoverlease.txt, hdfs_trunk_editswriter_recoverlease.txt, org.apache.hadoop.hbase.regionserver.wal.TestHLogSplit-output.txt, org.apache.hadoop.hbase.regionserver.wal.TestHLogSplit-output.txt > > > TestHLogSplit.testLogCannotBeWrittenOnceParsed is failing. > This test starts a thread that writes one edit to the log, syncs and counts. During this, a HLog.splitLog operation is started. splitLog recovers the log lease before reading the log, so that the original regionserver could not wake up and write after the split process started. > The test compares the number of edits reported by the split process and by the writer thread. Writer thread (called zombie in the test) should report <= than the splitLog (sync() might raise after the last edit gets written and the edit won't get counted by zombie thread). However it appears that the zombie counts 1-2 more edits. So it looks like it can sync without a lease. > This might be a hdfs-0.20 related issue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira