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

Invalidate tablets of updated keyspace/table on control connection reconnect #364

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

sylwiaszunejko
Copy link
Collaborator

Refs: #350

@sylwiaszunejko
Copy link
Collaborator Author

For the keyspace, I invalidate only on changes in StrategyOptions, as that is where the important things for us are (like RF). I'm not sure if there are specific things we should check in updated tables to avoid comparing everything.

@sylwiaszunejko sylwiaszunejko self-assigned this Dec 2, 2024
dkropachev
dkropachev previously approved these changes Dec 2, 2024
Copy link
Collaborator

@dkropachev dkropachev left a comment

Choose a reason for hiding this comment

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

Looks great, only one small improvement.

Comment on lines 580 to 584
if !compareInterfaceMaps(metadata.StrategyOptions, updatedMetadata.StrategyOptions) {
s.removeTabletsWithKeyspace(keyspaceName)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if !compareInterfaceMaps(metadata.StrategyOptions, updatedMetadata.StrategyOptions) {
s.removeTabletsWithKeyspace(keyspaceName)
}
if !compareInterfaceMaps(metadata.StrategyOptions, updatedMetadata.StrategyOptions) {
s.removeTabletsWithKeyspace(keyspaceName)
continue
}

@dkropachev dkropachev merged commit 615c6d9 into scylladb:master Dec 2, 2024
2 checks passed
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