Skip to content

Ensure schema created before 2.1 without tableId in folder name can b…#4661

Open
Jollyplum wants to merge 1 commit intoapache:cassandra-5.0from
Jollyplum:mbyrd/CASSANDRA-21173/cassandra-5.0
Open

Ensure schema created before 2.1 without tableId in folder name can b…#4661
Jollyplum wants to merge 1 commit intoapache:cassandra-5.0from
Jollyplum:mbyrd/CASSANDRA-21173/cassandra-5.0

Conversation

@Jollyplum
Copy link
Contributor

…e loaded in SnapshotLoader

We now store tableId in manifest.json so that snapshots from tables without tableId in folder name loaded by SnapshotLoader have this information.

End result is that nodetool clearsnapshot and listsnapshot function for such snapshots

patch by Matt Byrd; reviewed by for CASSANDRA-21173

@Jollyplum Jollyplum force-pushed the mbyrd/CASSANDRA-21173/cassandra-5.0 branch 2 times, most recently from a3516dd to 83bfe22 Compare March 16, 2026 09:27
…e loaded in SnapshotLoader

Best effort attempt to get tableId from CFS, fallback to null which
still allows snapshot to be loaded

End result is that nodetool clearsnapshot and listsnapshot function for such
snapshots on restart

patch by Matt Byrd; reviewed by for CASSANDRA-21173
@Jollyplum Jollyplum force-pushed the mbyrd/CASSANDRA-21173/cassandra-5.0 branch from 83bfe22 to 3ae9aa4 Compare March 20, 2026 09:47
else
{
logger.warn("Snapshot directory without tableId found (pre-2.1 format) " +
"Keyspace not initliazed or missing schema unable to initialize tableId default to null {}", snapshotDir);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a dot (".") between these two sentences? I am maybe too pedantic but this reads better

Snapshot directory without table id found (pre-2.1 format), keyspace is not initialized or there is a schema missing, defaulting to null, snapshot dir: {}

You have also a typo in "initliazed".


if (tableId == null)
{
logger.warn("Snapshot directory without tableId found (pre-2.1 format) " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snapshot directory without table id found (pre-2.1 format), unable to resolve table id from column family, defaulting to null, snapshot dir: {}

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