Skip to content

CASSANDRA-21196: Include tools in applyCompatibilityMode check#4663

Open
thisteensy wants to merge 1 commit intoapache:cassandra-5.0from
thisteensy:thisteensy/CASSANDRA-21196/cassandra-5.0
Open

CASSANDRA-21196: Include tools in applyCompatibilityMode check#4663
thisteensy wants to merge 1 commit intoapache:cassandra-5.0from
thisteensy:thisteensy/CASSANDRA-21196/cassandra-5.0

Conversation

@thisteensy
Copy link

CASSANDRA-21196: Include tools in applyCompatibilityMode check

Problem

The applyCompatibilityMode() method only checked isClientInitialized()
when setting StorageCompatibilityMode.NONE, despite the comment stating
"tools or clients should not limit the sstable formats they support."
Tools were inadvertently falling through to the else if branch and
potentially having their sstable format support restricted.

Solution

Added isClientOrToolInitialized() to the condition so tools correctly receive
StorageCompatibilityMode.NONE, consistent with the existing behavior
for clients.

patch by Tina Haiser; reviewed by @driftx for CASSANDRA-21196

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.

1 participant