hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Boudnik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-1548) Fault-injection tests are executed multiple times if invoked with run-test-hdfs-fault-inject target
Date Wed, 22 Dec 2010 20:57:04 GMT

     [ 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.


Mime
View raw message