[ 
https://issues.apache.org/jira/browse/CASSANDRA-15014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16766676#comment-16766676
 ] 

Joseph Lynch commented on CASSANDRA-15014:
------------------------------------------

[~ifesdjeen] I think that this is a pretty reasonable workaround, and from my 
testing it only appears about 2x slower then running them all in one JVM (My 
testing indicated about 1 min 10s vs 30s). I think long term we'll need to 
figure out how to run these either with a fork perĀ method or with a test 
cluster per test class or something, but I recognize we're trying to mitigate 
the trunk unit test runs here and we can iterate on making them faster next as 
we need to.

Feedback:
 * If we go generated script direction can we wrap up theĀ gen list -> chmod -> 
execute 
[logic|https://github.com/apache/cassandra/compare/trunk...ifesdjeen:CASSANDRA-15014-trunk#diff-1d37e48f9ceff6d8030570cd36286a61R194]
 into an ant target, the only drawback I see is that our stdout will have 
"[exec]" prepended. Maybe something like 
[this|https://github.com/apache/cassandra/commit/88da841585d4fb310bbac80b03601d74919fa507]
 * Is 
[test-distributed|https://github.com/apache/cassandra/compare/trunk...ifesdjeen:CASSANDRA-15014-trunk#diff-2cccd7bf48b7a9cc113ff564acd802a8R1890]
 dead code?
 * When I run `ant testclasslist 
-Dtest.classlistfile=/home/josephl/pg/cassandra/testlist.txt 
-Dtest.classlistprefix=distributed` to try to test if we need to split by 
method and I attach yourkit it either fails with a class not found exception or 
if I do attach I see a bunch of threads waiting on "MigrationManager.announce" 
forever (screenshot attached). Can you run the test like that or do you hang as 
well? I think this might indicate that the wait for logic in 
AbstractCluster.java may not be working right
 * Unused imports in 
[Instance.java|https://github.com/apache/cassandra/compare/trunk...ifesdjeen:CASSANDRA-15014-trunk#diff-7c02c337a482a2dc284c2e67bbb44dc1R28]
 * Calling System.runFinalization() is interesting, did you try doing that 
without the method separation and it didn't work?

For trunk:
 * Can you run it without the high capacity machines? Usually it's the unit 
tests that fail

> Unit tests failure on trunk
> ---------------------------
>
>                 Key: CASSANDRA-15014
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15014
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: Dinesh Joshi
>            Assignee: Alex Petrov
>            Priority: Major
>         Attachments: Screen Shot 2019-02-11 at 12.30.19.png, 
> threads_stuck_waiting.png
>
>
> Currently org.apache.cassandra.distributed.test.DistributedReadWritePathTest 
> is failing on trunk with the following error -
> {code:java}
> [junit-timeout] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
> [junit-timeout] Testsuite: 
> org.apache.cassandra.distributed.test.DistributedReadWritePathTest
> [junit-timeout] Exception in thread "main" java.lang.OutOfMemoryError: 
> Metaspace
> [junit-timeout] Testsuite: 
> org.apache.cassandra.distributed.test.DistributedReadWritePathTest
> [junit-timeout] Testsuite: 
> org.apache.cassandra.distributed.test.DistributedReadWritePathTest Tests run: 
> 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
> [junit-timeout] 
> [junit-timeout] Testcase: 
> org.apache.cassandra.distributed.test.DistributedReadWritePathTest:readWithSchemaDisagreement:
>  Caused an ERROR
> [junit-timeout] Forked Java VM exited abnormally. Please note the time in the 
> report does not reflect the time until the VM exit.
> [junit-timeout] 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-timeout] at java.util.Vector.forEach(Vector.java:1275)
> [junit-timeout] at java.util.Vector.forEach(Vector.java:1275)
> [junit-timeout] at java.lang.Thread.run(Thread.java:748)
> [junit-timeout] 
> [junit-timeout] 
> [junit-timeout] Test 
> org.apache.cassandra.distributed.test.DistributedReadWritePathTest FAILED 
> (crashed)
> [junitreport] Processing /tmp/cassandra/build/test/TESTS-TestSuites.xml to 
> /tmp/null1041131060
> [junitreport] Loading stylesheet 
> jar:file:/usr/share/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
> [junitreport] Transform time: 277ms
> [junitreport] Deleting: /tmp/null1041131060{code}
> I have noticed sporadic failures in the 
> org.apache.cassandra.distributed.test.* suite.



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

Reply via email to