Open msbutler opened 1 day ago
cc @cockroachdb/disaster-recovery
Hi @msbutler, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Hi @msbutler, please add branch-* labels to identify which branch(es) this release-blocker affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
If I attempt to start a workload on a read only standby cluster, the workload logs return log messages which suggest prepared statement evaluation failed:
In addition, the cockroach log stacks below suggest the sql authentication checks are failing on the standby workload. It's unclear if these checks are firing during prepared statement evaluation.
The stack below suggests that
GetUserSessionInitInfo
is hitting this assertion failure https://github.com/msbutler/cockroach/blob/butler-public-disk-full/pkg/sql/catalog/descs/leased_descriptors.go#L154Which implies that this
GetUserSessionInitInfo
func has a connExecutor not using a historical queries, as enforced by [this PR](https://github.com/cockroachdb/cockroach/commit/6c361b9a9a526bd9bacb9a7cc41b2bbb92e51899#diff-e10255c339480f882118842fb00bc6a10857be5bf2aa1bf09a1fd5f8ace7bd44).I can also see in the stack trace that the a cache is being used to retrieve session data, so perhaps this cache was hydrated without historical queries.
Other notes:
existing descriptor ‹role_options›(33) and timestamp: 1732113915.000000000,0 new descritpor ‹users›(4) and timestamp: 1732113960.000000000,0
roachtest run c2c/kv0 --cluster=$CLUSTER --cockroach=cockroach --run-skipped --debug-always
after building the roachtest binary on this wip prJira issue: CRDB-44743
Epic CRDB-43310