cassandra/test
Szymon Miężał 5be57829b0 Backport CASSANDRA-16418 to 3.x
When a node is decommissioned, it triggers data transfer to other nodes.
During this transfer process, receiving nodes temporarily hold token ranges in a pending state.
However, the current cleanup process doesn't account for these pending ranges when calculating token ownership,
leading to inadvertent cleanup of data already stored in SSTables.
To address this issue, this patch introduces two changes.
Firstly, it backports CASSANDRA-16418, introducing a preventive check in `StorageService#forceKeyspaceCleanup`.
This check disallows the initiation of cleanup when a node contains any pending ranges for the requested keyspace.
Secondly, it reintroduces a similar condition to test for the existence of pending ranges in `CompactionManager#performCleanup`.
This ensures the safety of this API as well.

Patch by Szymon Miezal; reviewed by Brandon Williams, Jacek Lewandowski for CASSANDRA-18824

Co-authored-by: Szymon Miezal <szymon.miezal@datastax.com>
Co-authored-by: Jacek Lewandowski <lewandowski.jacek@gmail.com>
2024-02-07 15:11:59 +01:00
..
anttasks/org/apache/cassandra/anttasks Introduce check for names of test classes 2023-01-28 16:18:51 +01:00
burn/org/apache/cassandra Ignore LongSharedExecutorPoolTest until SEPThreadpool is re-evaluated 2021-09-24 12:09:17 -04:00
conf Add flag to disable ALTER...DROP COMPACT STORAGE statements 2021-06-18 14:42:48 +02:00
data Prevent loss of commit log data when moving sstables between nodes 2021-05-05 16:41:01 +02:00
distributed/org/apache/cassandra Backport CASSANDRA-16418 to 3.x 2024-02-07 15:11:59 +01:00
long/org/apache/cassandra Fix updating base table rows with TTL not removing materialized view entries 2017-12-07 08:17:06 +11:00
microbench/org/apache/cassandra/test/microbench Fix slow keycache load which blocks startup for tables with many sstables. 2021-12-09 10:14:16 -05:00
resources Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
unit/org/apache/cassandra Backport CASSANDRA-16418 to 3.x 2024-02-07 15:11:59 +01:00