[ https://issues.apache.org/jira/browse/CASSANDRA-15129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841019#comment-16841019 ]
maxwellguo commented on CASSANDRA-15129: ---------------------------------------- I tried to fix this problem with little change to build.xml but failed for i am not familiar with ant . I have got two suggests : 1. if we can make test-compression with unit and distribued separately, not under on test-compression target ; 2. delete line <fileset dir="${test.distributed.src}" includes="**/${test.name}.java" /> for we got dtest, and compresion test with distribute can be move to here . [~ifesdjeen] [~aweisberg] > Cassandra unit test with compression occurs BUILD FAILED > --------------------------------------------------------- > > Key: CASSANDRA-15129 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15129 > Project: Cassandra > Issue Type: Bug > Components: Test/unit > Reporter: maxwellguo > Priority: Normal > > under cassandra source code dir ,when I run the command : ant > test-compression will occurs npe exception . > {panel:title= log} > [junit-timeout] Testsuite: > .Users.maxwell.Documents.software.cassandra_project.cassandra.test.distributed.org.apache.cassandra.distributed.DistributedReadWritePathTest-compression > [junit-timeout] Testsuite: > .Users.maxwell.Documents.software.cassandra_project.cassandra.test.distributed.org.apache.cassandra.distributed.DistributedReadWritePathTest-compression > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec > [junit-timeout] > [junit-timeout] Null Test: Caused an ERROR > [junit-timeout] > /Users/maxwell/Documents/software/cassandra_project/cassandra/test/distributed/org/apache/cassandra/distributed/DistributedReadWritePathTest > [junit-timeout] java.lang.ClassNotFoundException: > /Users/maxwell/Documents/software/cassandra_project/cassandra/test/distributed/org/apache/cassandra/distributed/DistributedReadWritePathTest > [junit-timeout] at java.lang.Class.forName0(Native Method) > [junit-timeout] at java.lang.Class.forName(Class.java:264) > [junit-timeout] > [junit-timeout] > [junit-timeout] Test > .Users.maxwell.Documents.software.cassandra_project.cassandra.test.distributed.org.apache.cassandra.distributed.DistributedReadWritePathTest > FAILED > {panel} > for we use ant test-compression ,then the unit dir's test and the > dristributed dir test will be run with compression configure. but in the > build.xml configure for testlist-compression macrodef, only unit test dir was > as the input .and the target test-compression use two fileset dir > "test.unit.src" and "test.distributed.src" , so when comes to distributed > dir's test with compression ,there occurs an CLASSANOT FOUND exception . -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org