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

roachtest: run a read from standby workload on c2c/kv0 #136039

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

msbutler
Copy link
Collaborator

This patch teaches the c2c roachtest driver to create a standby reader tenant
and run a workload on it. These tools are then used to spin up a kv100 workload
on the reader tenant in the c2c/kv0 roachtest.

Epic: none

Release note: none

fqazi and others added 2 commits November 21, 2024 13:27
Previously, when using PCR reader catalog its was possible to hit "PCR
reader timestamp has moved forward" when attempting to execute
workloads. This was because internal executors are exempt from the AOST
timestamp. To address this, the authentication code paths are updated to
set fixed timestamps, when connecting to a PCR reader catalog.
Additionally, additional tests are added for validating opening new
connections and preparing queries to confirm this problem is fixed.

Fixes: cockroachdb#135829

Release note: None
This patch adds a flag to the kv workload which elides preparing writing stmts
in the kv workload. This flag will be used to run workloads on read from
standby tenants in pcr tests. This flag is needed to begin the kv100 workload
on the reader tenant becase:
 - preparing a writing stmt returns an error on during reader tenant
   connection aquisition.
 - Before this patch, the kv workload driver always prepared writing statments,
   even if kv100 was initialized.
-  If all reader conn's errored during acquisition, no workload could run on
   the reader tenant.

Informs: cockroachdb#135829

Release note: none
@msbutler msbutler self-assigned this Nov 22, 2024
@msbutler msbutler requested review from a team as code owners November 22, 2024 22:12
@msbutler msbutler requested review from nameisbhaskar, vidit-bhat and dt and removed request for a team November 22, 2024 22:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler
Copy link
Collaborator Author

first commit over in #135929

Evidence of the reader tenant workload working:
image

This patch teaches the c2c roachtest driver to create a standby reader tenant
and run a workload on it. These tools are then used to spin up a kv100 workload
on the reader tenant in the c2c/kv0 roachtest.

Epic: none

Release note: none
Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 7 of 7 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @dt, @nameisbhaskar, and @vidit-bhat)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants