Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure schema is consistent while bootstrapping #583

Merged
merged 20 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove schema check at the end of bootstrapping
  • Loading branch information
rhuffy committed Nov 25, 2024
commit 4529d29889d8e8430367c2d5a838727b18b643bd
9 changes: 0 additions & 9 deletions src/java/org/apache/cassandra/service/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1055,15 +1055,6 @@ private void joinTokenRing(int delay, boolean autoBootstrap, Collection<String>
recordBootstrapErrorAndThrow("streamingFailed");
}

if(!localSchemaVersion.equals(Schema.instance.getVersion().toString()) || !isSchemaConsistent(localSchemaVersion))
{
logger.error(
"Schema has changed after bootstrapping started, or is inconsistent across nodes. initial: {}, current: {}",
SafeArg.of("initialSchemaVersion", localSchemaVersion),
SafeArg.of("currentSchemaVersion", Schema.instance.getVersion().toString()));
recordBootstrapErrorAndThrow("schemaConsistencyFailed");
}

logger.info("Bootstrap streaming complete. Waiting to finish bootstrap. Not becoming an active ring " +
"member. Use JMX (StorageService->finishBootstrap()) to finalize ring joining.");
try
Expand Down