-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Online DDL/VReplication: able to read from replica #8405
Online DDL/VReplication: able to read from replica #8405
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
The tablettypes parameter is treated as an unordered list. So the tablet picker will chose randomly between the replicas available and the primary, if |
@deepthi, should we default to choosing other tablet types first if they are specified in addition to |
I'm not sure. Is the current order defined as |
Not sure if we have a formal spec for it, so But I think that is a minor quibble and we should be fine with prioritizing. @aquarapid, I would be interested in hearing your opinion on this. |
No, you're right. That's a massive kind of change. We can go the DSL way, and support something like |
Signed-off-by: Shlomi Noach <[email protected]>
…ypes Signed-off-by: Shlomi Noach <[email protected]>
I added a hint, When the hint is not provided, behavior remains the same as today (randomly pick from all available tablets, exhaust list) When the hint is provided, for example
The logic for both in-order and random order is consolidated, and it's down to how we sort or shuffle the |
Signed-off-by: Shlomi Noach <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
Signed-off-by: Shlomi Noach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
lgtm
…8405 Signed-off-by: Vilius Okockis <[email protected]>
Description
Very quick PR, that enables VReplication/OnlineDDL reading from
REPLICA
(fallback toMASTER
ifREPLICA
is not available). This means vstream source can be a replica, and vreplication's grand SELECT will not put the primary at risk.Related Issue(s)
#6926
Checklist