Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 92305 invoked from network); 22 Dec 2010 20:57:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 20:57:29 -0000 Received: (qmail 33625 invoked by uid 500); 22 Dec 2010 20:57:29 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 33591 invoked by uid 500); 22 Dec 2010 20:57:29 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 33583 invoked by uid 99); 22 Dec 2010 20:57:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 20:57:29 +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; Wed, 22 Dec 2010 20:57:26 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBMKv4Ji026259 for ; Wed, 22 Dec 2010 20:57:04 GMT Message-ID: <7494042.276891293051424572.JavaMail.jira@thor> Date: Wed, 22 Dec 2010 15:57:04 -0500 (EST) From: "Konstantin Boudnik (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Updated: (HDFS-1548) Fault-injection tests are executed multiple times if invoked with run-test-hdfs-fault-inject target In-Reply-To: <2846419.227121292892721472.JavaMail.jira@thor> 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/HDFS-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konstantin Boudnik updated HDFS-1548: ------------------------------------- Attachment: HDFS-1548.patch Turns out to be needing a slight more work because -Dtestcase wasn't serving properly. This patch addresses this case as well. Also, as a reference point: I have ran {{ant run-test-hdfs-fault-inject}} with this result: {noformat} run-test-hdfs-excluding-commit-and-smoke: [delete] Deleting directory /home/cos/work/H0.23/git/hdfs/build-fi/test/data [mkdir] Created dir: /home/cos/work/H0.23/git/hdfs/build-fi/test/data [delete] Deleting directory /home/cos/work/H0.23/git/hdfs/build-fi/test/logs [mkdir] Created dir: /home/cos/work/H0.23/git/hdfs/build-fi/test/logs [copy] Copying 1 file to /home/cos/work/H0.23/git/hdfs/build-fi/test/extraconf [copy] Copying 1 file to /home/cos/work/H0.23/git/hdfs/build-fi/test/extraconf [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/home/cos/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class [junit] Running org.apache.hadoop.fs.TestFiListPath [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.103 sec [junit] Running org.apache.hadoop.fs.TestFiRename [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 20.911 sec [junit] Running org.apache.hadoop.hdfs.TestFiHFlush [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 35 sec [junit] Running org.apache.hadoop.hdfs.TestFiHftp [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 38.938 sec [junit] Running org.apache.hadoop.hdfs.TestFiPipelines [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 9.108 sec [junit] Running org.apache.hadoop.hdfs.server.datanode.TestFiDataTransferProtocol [junit] Tests run: 29, Failures: 0, Errors: 0, Time elapsed: 282.474 sec [junit] Running org.apache.hadoop.hdfs.server.datanode.TestFiDataTransferProtocol2 [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 453.364 sec [junit] Running org.apache.hadoop.hdfs.server.datanode.TestFiPipelineClose [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 44.702 sec checkfailure: BUILD SUCCESSFUL Total time: 16 minutes 14 seconds {noformat} Total build time is about 16 minutes as it should be. and the same with -Dtestcase=TestFiHFlush has produced an expected single test execution: {noformat} run-test-hdfs-all-withtestcaseonly: [delete] Deleting directory /home/cos/work/H0.23/git/hdfs/build-fi/test/data [mkdir] Created dir: /home/cos/work/H0.23/git/hdfs/build-fi/test/data [delete] Deleting directory /home/cos/work/H0.23/git/hdfs/build-fi/test/logs [mkdir] Created dir: /home/cos/work/H0.23/git/hdfs/build-fi/test/logs [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/home/cos/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class [junit] Running org.apache.hadoop.hdfs.TestFiHFlush [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 38.937 sec checkfailure: run-test-hdfs-fault-inject: BUILD SUCCESSFUL Total time: 1 minute 11 seconds {noformat} > Fault-injection tests are executed multiple times if invoked with run-test-hdfs-fault-inject target > --------------------------------------------------------------------------------------------------- > > Key: HDFS-1548 > URL: https://issues.apache.org/jira/browse/HDFS-1548 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Konstantin Boudnik > Assignee: Konstantin Boudnik > Fix For: 0.21.1 > > Attachments: HDFS-1548.patch, HDFS-1548.patch > > > When invoked with {{run-test-hdfs-fault-inject target}} fault injection tests are getting executed 4 times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.