Skip to content

Conversation

@krummas
Copy link
Member

@krummas krummas commented Oct 20, 2022

Avoid CME in TWCS/STCS/DTCS.getSSTables

Patch by marcuse; reviewed by X for CASSANDRA-17977

@smiklosovic smiklosovic closed this Jan 5, 2023
michaelsembwever pushed a commit to thelastpickle/cassandra that referenced this pull request Jan 7, 2026
…pecified number of threads instead of only single threaded. (apache#1933)

### What is the issue
Fixes CNDB-9443.

CNDB 4.0 makes use of scheduled executors with multiple threads, for
example, in `RemoteStorageHandler`:
```
sharedSSTableExecutorService = new DebuggableScheduledThreadPoolExecutor(NUM_SSTABLE_THREADS, "StorageSSTableThread", Thread.NORM_PRIORITY);
```

But CC/CC 5.0 only supports single threaded scheduled executors:
```
sharedSSTableExecutorService = executorFactory().scheduled(false, "StorageSSTableThread", Thread.NORM_PRIORITY);
```

Without this fix, `RemoteStorageHandler` is not able to load sstables
fast enough to satisfy tests like `RegionBootsrapTest.testBootstrap`.

### What does this PR fix and why was it fixed
This PR adds support for scheduled executors with more than one thread
(pool size) as expected by CNDB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants