You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2026/08/07 19:26:00 UTC
[jira] [Updated] (CASSANDRA-21502) AccordJournalBurnTest Failure - NullPointerException in DefaultLocalListeners.clear()
[ https://issues.apache.org/jira/browse/CASSANDRA-21502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Capwell updated CASSANDRA-21502:
--------------------------------------
Resolution: Fixed
Status: Resolved (was: Triage Needed)
> 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
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org