Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 26004 invoked from network); 26 Sep 2008 21:28:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2008 21:28:09 -0000 Received: (qmail 75228 invoked by uid 500); 26 Sep 2008 21:28:04 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 75188 invoked by uid 500); 26 Sep 2008 21:28:03 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 75086 invoked by uid 99); 26 Sep 2008 21:28:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 14:28:03 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 21:27:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 667B0234C1FB for ; Fri, 26 Sep 2008 14:27:44 -0700 (PDT) Message-ID: <1253516415.1222464464418.JavaMail.jira@brutus> Date: Fri, 26 Sep 2008 14:27:44 -0700 (PDT) From: "Konstantin Shvachko (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3614) TestLeaseRecovery fails when run with assertions enabled. In-Reply-To: <1328784672.1214002665251.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635029#action_12635029 ] Konstantin Shvachko commented on HADOOP-3614: --------------------------------------------- I think assert is right here. It means that {{findBlockFile()}} method should find a file containing the block by its block id no matter what its generation stamp is, and therefore findBlockFile should always be called with the generation stamp == WILDCARD_STAMP. What is incorrect here is the api. {{findBlockFile(long blockID)}} should take block ID as a parameter and then the assert can be removed. A comment stating exactly what the method does would be extremely helpful. > TestLeaseRecovery fails when run with assertions enabled. > --------------------------------------------------------- > > Key: HADOOP-3614 > URL: https://issues.apache.org/jira/browse/HADOOP-3614 > Project: Hadoop Core > Issue Type: Bug > Components: dfs > Affects Versions: 0.18.0 > Reporter: Konstantin Shvachko > Fix For: 0.19.0 > > > I used -ea jvm options to run the test, and it fails in FSDataset.findBlockFile(Block) on > {code} > assert b.generationStamp == GenerationStamp.WILDCARD_STAMP; > {code} > Without asserts on the test passes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.