Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 6571 invoked from network); 24 Jun 2010 18:16:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 18:16:14 -0000 Received: (qmail 60026 invoked by uid 500); 24 Jun 2010 18:16:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 59976 invoked by uid 500); 24 Jun 2010 18:16:14 -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 59968 invoked by uid 99); 24 Jun 2010 18:16:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 18:16:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 18:16:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5OIFoSO018083 for ; Thu, 24 Jun 2010 18:15:50 GMT Message-ID: <5116300.43341277403350140.JavaMail.jira@thor> Date: Thu, 24 Jun 2010 14:15:50 -0400 (EDT) From: "Jean-Daniel Cryans (JIRA)" To: issues@hbase.apache.org Subject: [jira] Created: (HBASE-2786) TestHLog.testSplit hangs 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 TestHLog.testSplit hangs ------------------------ Key: HBASE-2786 URL: https://issues.apache.org/jira/browse/HBASE-2786 Project: HBase Issue Type: Bug Reporter: Jean-Daniel Cryans Priority: Blocker Fix For: 0.21.0 This a blocker had it blocks and times out Hudson. It seems that when we upgraded to latest of 0.20-append we got into a new situation where we can't recover a file that's empty if the original writer is still alive: {noformat} 2010-06-24 10:41:20,645 DEBUG [main] wal.HLog(1281): Splitting hlog 4 of 4: hdfs://localhost:64456/hbase/testSplit/.logs/hlog.1277401279534, length=0 2010-06-24 10:41:20,645 INFO [main] util.FSUtils(612): Recovering filehdfs://localhost:64456/hbase/testSplit/.logs/hlog.1277401279534 2010-06-24 10:41:20,647 WARN [IPC Server handler 5 on 64456] namenode.FSNamesystem(1156): DIR* NameSystem.startFile: failed to create file /hbase/testSplit/.logs/hlog.1277401279534 for DFSClient_-1981892617 on client 127.0.0.1 because current leaseholder is trying to recreate file ... 2010-06-24 10:42:24,919 WARN [IPC Server handler 0 on 64456] namenode.FSNamesystem(1156): DIR* NameSystem.startFile: failed to create file /hbase/testSplit/.logs/hlog.1277401279534 for DFSClient_-1981892617 on client 127.0.0.1 because current leaseholder is trying to recreate file. 2010-06-24 10:42:24,919 WARN [main] util.FSUtils(631): Waited 64274ms for lease recovery on hdfs://localhost:64456/hbase/testSplit/.logs/hlog.1277401279534:org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to create file /hbase/testSplit/.logs/hlog.1277401279534 for DFSClient_-1981892617 on client 127.0.0.1 because current leaseholder is trying to recreate file. at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1058) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.appendFile(FSNamesystem.java:1171) at org.apache.hadoop.hdfs.server.namenode.NameNode.append(NameNode.java:396) {noformat} We could just not roll the latest log and it would probably fix the issue, but I wonder if we could change something in HDFS instead. Todd? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.