cockroachdb / cockroachdb/cockroach

sql: add query cache collision testing

Open
#104,027 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement O-postmortem P-3 quality-friday T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We currently have limited testing for the case when the same SQL is run concurrently by different users / on different databases against the same query cache. More testing for this case could have caught https://github.com/cockroachdb/cockroach/issues/102375. Our logic tests already allow switching the user and db session with the `user` directive. We should add some tests that repeatedly run the same SQL on similar schemas from different users to verify that the query cache is correctly invalidated in the case when it is thrashing. We may also want to add support for similar testing in our randomized tests.

Jira issue: CRDB-28320

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.