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

Yifan Cai edited comment on CASSANDRA-19285 at 2/13/24 6:05 PM:
----------------------------------------------------------------

PR: https://github.com/apache/cassandra-analytics/pull/39
CI (Repeat 100 times for HostReplacementMultiDCTest): 
https://app.circleci.com/pipelines/github/yifan-c/cassandra-analytics?branch=CASSANDRA-19285%2Ftrunk
 

The test flakiness is caused by inspecting a class whose classloader 
(InstanceClassLoader) has been closed already. The fix is to include such class 
in the sharedClassLoader. 

The classes are reached by Spark SizeEstimator, when it estimates the broadcast 
variable. In the test scenarios containing cassandra instance shutdown, there 
is a chance that it picks the class that is loaded by the closed instance 
classloader, causing the exception.


was (Author: yifanc):
PR: https://github.com/apache/cassandra-analytics/pull/39
CI (Repeat 100 times for HostReplacementMultiDCTest): 
https://app.circleci.com/pipelines/github/yifan-c/cassandra-analytics?branch=CASSANDRA-19285%2Ftrunk
 

> Flaky Host replacement tests and shrink tests (Instance class loader is 
> already closed)
> ---------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-19285
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19285
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Analytics Library
>            Reporter: Francisco Guerrero
>            Assignee: Yifan Cai
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> During Circle CI runs there are some flaky integration tests, some noticed are
>  * HostReplacementMultiDCTest
>  * HostReplacementMultiDCFailureTest
>  * HostReplacementFailureTest
>  * LeavingSingleFailureTest
> Some of the error message I see in these tests are e.g.
> {code:java}
> java.lang.RuntimeException: java.lang.IllegalStateException: Can't load 
> org.apache.cassandra.utils.concurrent.Ref$OnLeak. Instance class loader is 
> already closed.
> {code}
> On repeated run, these tests pass.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to