[
https://issues.apache.org/jira/browse/CASSANDRA-21502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
C. Scott Andreas reassigned CASSANDRA-21502:
--------------------------------------------
Assignee: Alan Wang
> AccordJournalBurnTest Failure - NullPointerException in
> DefaultLocalListeners.clear()
> -------------------------------------------------------------------------------------
>
> Key: CASSANDRA-21502
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21502
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Accord
> Reporter: C. Scott Andreas
> Assignee: Alan Wang
> Priority: Normal
>
> AccordJournalBurnTest#testOne() currently fails with this seed:
> 1398874140326968L
> Reproduce via:
> {{// AccordJournalBurnTest.testOne():}}
> {{long seed = 1398874140326968L;}}
> And run:
> {{ant test-jvm-dtest-some
> -Dtest.name=org.apache.cassandra.service.accord.journal.AccordJournalBurnTest
> -Dtest.methods=testOne}}
> The test currently fails with:
> {{accord.burn.SimulationException: Failed on seed 1398874140326968}}
> {{Caused by: java.lang.NullPointerException}}
> {{ at
> accord.impl.DefaultLocalListeners.lambda$clear$4(DefaultLocalListeners.java:562)}}
> {{ at
> accord.impl.DefaultLocalListeners.clear(DefaultLocalListeners.java:556)}}
> {{ at
> accord.local.CommandStore.unsafeClearForTesting(CommandStore.java:214)}}
> DefaultLocalListeners.clear() iterates by count and dereferences every slot.
> That array intentionally holds null holes, so once any listener had been
> removed, clear() dereferences a null and throws a NullPointerException.
> Additional details and a candidate patch available here (model-assisted):
> [https://github.com/cscotta/cassandra-accord/pull/1]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]