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

3.x: Adjust for zero token nodes (option B) #400

Open
wants to merge 1 commit into
base: scylla-3.x
Choose a base branch
from

Conversation

Bouncheck
Copy link
Collaborator

Adds ZeroTokenNodesIT that checks the behaviour of the driver when zero-token nodes are involved.

Adds two options that control if peers that do not own any tokens are considered valid and if peers that do not own any tokens are considered for query planning.
Query planning setting does not by default override LBP behavior. DCAwareRoundRobinPolicy, RackAwareRoundRobinPolicy and RoundRobinPolicy were adjusted to follow this setting.

Driver behavior with those options disabled, which is the default option, should remain unchanged.

@Bouncheck Bouncheck force-pushed the scylla-3.x-zero-token-ITs-v2 branch from e54498a to 25e4465 Compare December 13, 2024 11:09
@Bouncheck
Copy link
Collaborator Author

Made another version with different approach according to suggestions. @dkropachev we can choose which one to proceed with.

@Bouncheck Bouncheck force-pushed the scylla-3.x-zero-token-ITs-v2 branch from 25e4465 to 3d377bc Compare December 13, 2024 11:13
Adds ZeroTokenNodesIT that checks the behaviour of the driver when zero-token
nodes are involved.

Adds two options that control if peers that do not own any tokens are
considered valid and if peers that do not own any tokens are considered for
query planning.
Query planning setting does not by default override LBP behavior.
DCAwareRoundRobinPolicy, RackAwareRoundRobinPolicy and RoundRobinPolicy were
adjusted to follow this setting.

Driver behavior with those options disabled, which is the default option,
should remain unchanged.
@Bouncheck Bouncheck force-pushed the scylla-3.x-zero-token-ITs-v2 branch from 3d377bc to fc5391b Compare December 13, 2024 14:47
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