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

Stefan Miklosovic commented on CASSANDRA-19572:
-----------------------------------------------

I tried to fix this just for one test, testImportInvalidateCache, by callgin 
resetTidying() before each load but it still fails

{code}
ERROR [main] 2024-04-22 21:02:10,706 Failed importing sstables in directory 
/tmp/importtest2511606450027946118/cql_test_keyspace/table_00
java.lang.AssertionError: null
        at 
org.apache.cassandra.utils.concurrent.Ref$State.assertNotReleased(Ref.java:196)
        at org.apache.cassandra.utils.concurrent.Ref.ref(Ref.java:152)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$GlobalTidy.get(SSTableReader.java:2196)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader$InstanceTidier.setup(SSTableReader.java:2028)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader.setup(SSTableReader.java:1971)
        at 
org.apache.cassandra.io.sstable.format.SSTableReaderBuilder$ForRead.build(SSTableReaderBuilder.java:370)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:501)
        at 
org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:372)
        at 
org.apache.cassandra.db.SSTableImporter.getTargetDirectory(SSTableImporter.java:213)
        at 
org.apache.cassandra.db.SSTableImporter.importNewSSTables(SSTableImporter.java:135)
        at org.apache.cassandra.db.ImportTest.load(ImportTest.java:484)
        at 
org.apache.cassandra.db.ImportTest.testImportInvalidateCache(ImportTest.java:543)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
{code}



> Test failure: org.apache.cassandra.db.ImportTest flakiness
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-19572
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19572
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/bulk load
>            Reporter: Brandon Williams
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> As discovered on CASSANDRA-19401, the tests in this class are flaky, at least 
> the following:
>  * testImportCorruptWithoutValidationWithCopying
>  * testImportInvalidateCache
>  * testImportCorruptWithCopying
>  * testImportCacheEnabledWithoutSrcDir
>  * testImportInvalidateCache
> [https://app.circleci.com/pipelines/github/instaclustr/cassandra/4199/workflows/a70b41d8-f848-4114-9349-9a01ac082281/jobs/223621/tests]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to