Skip to content

CASSANDRA-21092: Automatically disable zero-copy streaming for legacy sstables (trunk)#4543

Closed
pauloricardomg wants to merge 1 commit intoapache:trunkfrom
pauloricardomg:CASSANDRA-21092-trunk
Closed

CASSANDRA-21092: Automatically disable zero-copy streaming for legacy sstables (trunk)#4543
pauloricardomg wants to merge 1 commit intoapache:trunkfrom
pauloricardomg:CASSANDRA-21092-trunk

Conversation

@pauloricardomg
Copy link
Copy Markdown
Contributor

@pauloricardomg pauloricardomg commented Dec 24, 2025

Legacy Cassandra 3.x sstables use an old bloom filter format that is
incompatible with zero-copy streaming in Cassandra 5.0+. This patch
automatically detects sstables with the old bloom filter format
(pre-4.0) and disables zero-copy streaming for them, allowing legacy
sstables to be loaded via sstableloader without requiring manual flags.

The fix adds a version check in CassandraOutgoingFile.computeShouldStreamEntireSSTables()
that calls descriptor.version.hasOldBfFormat() to detect legacy sstables.

@pauloricardomg pauloricardomg changed the title CASSANDRA-21092: Add --disable-zero-copy-streaming parameter to allow loading 3.x sstables (trunk) CASSANDRA-21092: Automatically disable zero-copy streaming for legacy sstables (trunk) Jan 16, 2026
Legacy Cassandra 3.x sstables use an old bloom filter format that is
incompatible with zero-copy streaming in Cassandra 5.0+. This patch
automatically detects sstables with the old bloom filter format
(pre-4.0) and disables zero-copy streaming for them, allowing legacy
sstables to be loaded via sstableloader without requiring manual flags.

The fix adds a version check in CassandraOutgoingFile.computeShouldStreamEntireSSTables()
that calls descriptor.version.hasOldBfFormat() to detect legacy sstables.

patch by Paulo Motta; reviewed by Stefan Miklosovic for CASSANDRA-21092
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