joaquincasares opened a new pull request, #4571: URL: https://github.com/apache/cassandra/pull/4571
Fix ConcurrentModificationException in performGarbageCollection with only_purge_repaired_tombstones When running `nodetool garbagecollect` on a table with mixed repaired/unrepaired SSTables and `only_purge_repaired_tombstones=true`, a ConcurrentModificationException was thrown because the code iterated directly over `transaction.originals()` while calling `transaction.cancel()` inside the loop, modifying the underlying collection. The fix copies the collection before iterating: `new ArrayList<>(transaction.originals())` Tests run via: ```bash TEST_NAME_REGEX=GarbageCollectRepairedSSTablesTest docker compose up --build ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

