Skip to content

Conversation

@dkropachev
Copy link
Collaborator

_tablets_routing_v1 flag was introduced to check if server supports tablets.
As result driver needs to sync it to policy when control connection is established, which is an unwanted problem.
Initial implementation did not sync _tablets_routing_v1 for policies from execution profiles, as result tablets were not working in such case, the policy was always picking replicas from tokenmap.

Let's relay on presence of tablets for given table instead, which will not require any syncing.

Fixes: #575

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

@dkropachev dkropachev marked this pull request as ready for review November 4, 2025 12:23
@dkropachev dkropachev force-pushed the dk/fix-token-aware-policy-with-tablets branch from 98e73a3 to 70cd971 Compare November 4, 2025 12:24
@dkropachev dkropachev force-pushed the dk/fix-token-aware-policy-with-tablets branch from 70cd971 to ed89df7 Compare November 4, 2025 15:07
This flag was introduced to check if server supports tablets.
As result driver needs to sync it to policy when control connection is
established.
Which is an unwanted problem.
Let's relay on presence of tablets for given table instead, which will
not require any syncing.
@dkropachev dkropachev force-pushed the dk/fix-token-aware-policy-with-tablets branch from ed89df7 to e3db204 Compare November 4, 2025 15:46
@dkropachev dkropachev merged commit bc0317b into scylladb:master Nov 4, 2025
16 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.

TokenAwarePolicy does not pick up tablets when fed through execution profile

3 participants