On 11/22/2014 05:58 PM, Rajanarayanan Thottuvaikkatumana wrote:
A huge number of tests are failing with the same error message. Reproducing one 
of such errors.

testlist:
      [echo] running test bucket 0 tests
     [mkdir] Created dir: 
/Users/RajT/cassandra-source/cassandra-trunk/build/test/cassandra
     [mkdir] Created dir: 
/Users/RajT/cassandra-source/cassandra-trunk/build/test/output
     [junit] WARNING: multiple versions of ant detected in path for junit
     [junit]          
jar:file:/usr/local/Cellar/ant/1.9.4/libexec/lib/ant.jar!/org/apache/tools/ant/Project.class
     [junit]      and 
jar:file:/Users/RajT/cassandra-source/cassandra-trunk/build/lib/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
     [junit] Error occurred during initialization of VM
     [junit] agent library failed to init: instrument
     [junit] objc[1300]: Class JavaLaunchHelper is implemented in both 
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/bin/java 
and 
/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/libinstrument.dylib.
 One of the two will be used. Which one is undefined.
     [junit] Error opening zip file or JAR manifest missing : 
/Users/RajT/cassandra-source/cassandra-trunk/lib/jamm-0.3.0.jar
     [junit] Testsuite: org.apache.cassandra.cache.AutoSavingCacheTest
     [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 
sec
     [junit]
     [junit] Testcase: org.apache.cassandra.cache.AutoSavingCacheTest:null:     
Caused an ERROR
     [junit] Forked Java VM exited abnormally. Please note the time in the 
report does not reflect the time until the VM exit.
     [junit] junit.framework.AssertionFailedError: Forked Java VM exited 
abnormally. Please note the time in the report does not reflect the time until 
the VM exit.
     [junit]    at java.lang.Thread.run(Thread.java:745)

I fixed this last time a new jamm jar was included. The problem is the conflict resolution on merge from 2.1 to trunk - value= is overwritten where there should be line=.

Patch attached. Could someone commit this to trunk, pretty please?  :)

--
Kind regards,
Michael

diff --git a/build.xml b/build.xml
index e5c5c83..06c79e0 100644
--- a/build.xml
+++ b/build.xml
@@ -1113,7 +1113,8 @@
         <formatter type="brief" usefile="false"/>
         <jvmarg value="-Dstorage-config=${test.conf}"/>
         <jvmarg value="-Djava.awt.headless=true"/>
-        <jvmarg value="-javaagent:${basedir}/lib/jamm-0.3.0.jar 
${additionalagent}" />
+        <!-- Cassandra 3.0+ needs <jvmarg line="... ${additionalagent}" /> 
here! (not value=) -->
+        <jvmarg line="-javaagent:${basedir}/lib/jamm-0.3.0.jar 
${additionalagent}" />
         <jvmarg value="-ea"/>
         <jvmarg value="-Xss256k"/>
         <jvmarg 
value="-Dcassandra.memtable_row_overhead_computation_step=100"/>

Reply via email to