-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
kvtenant: expose reader status via connector #130115
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
2ce40e2
to
caabb5b
Compare
caabb5b
to
943b62a
Compare
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.
er, my b, approved wrong pr.
b2b7505
to
331f107
Compare
This adds a new API in the tenant connector to expose to a tenant if it is expected to be a reader tenant and if so, of which tenant and as of what time. Actually configuring itself to be a reader and do so at that timestamp is left to the reader tenant's own devices, and is not included here; this change only adds the metadata to the tenant record and the API exposed to the tenant for fetching it. Release note: none. Epic: none.
331f107
to
8af2169
Compare
TFTR! bors r+ |
seems that bors crashed and didn't send an error back. going to try this again. |
bors r- |
bors r+ |
130115: kvtenant: expose reader status via connector r=msbutler a=dt Tracking if a tenant is intended to be a reader of another tenant in the tenant record allows the system tenant to expose a new API in the tenant connector so that if a tenant intended to be a reader tenant calls the API, it can be informed of the tenant from which it should read and the timestamp -- fetched from the system tenant's PCR job for now -- at which it should do so. Actually configuring itself to be a reader and do so at that timestamp is left to the reader tenant's own devices, and is not included here; this change only adds the metadata to the tenant record and the API exposed to the tenant for fetching it. Release note: none. Epic: none. Co-authored-by: David Taylor <tinystatemachine@gmail.com>
Build failed: |
Unrelated flake bors r+ |
Tracking if a tenant is intended to be a reader of another tenant in the tenant record allows the system tenant to expose a new API in the tenant connector so that if a tenant intended to be a reader tenant calls the API, it can be informed of the tenant from which it should read and the timestamp -- fetched from the system tenant's PCR job for now -- at which it should do so. Actually configuring itself to be a reader and do so at that timestamp is left to the reader tenant's own devices, and is not included here; this change only adds the metadata to the tenant record and the API exposed to the tenant for fetching it.
Release note: none.
Epic: none.