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

Commits on Nov 21, 2024

  1. sql: apply PCR AOST time stamp for authentication flow

    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
    fqazi committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    02aac84 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. workload: add prepare-read-only runtime flag to kv workload

    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 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    45770ba View commit details
    Browse the repository at this point in the history
  2. roachtest: run a read from standby workload on c2c/kv0

    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
    msbutler committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    aaa3963 View commit details
    Browse the repository at this point in the history