cockroachdb / cockroachdb/cockroach

roachtest/drt: add temp table usage to DRT

Open
#151,545 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement E-starter T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We've seen cases where temporary table cleanup fails, but the errors often surface well after the original issue, making them hard to trace. To improve debugging, we should add temp table usage to DRT. This could help surface failures while we still have relevant context like logs.

This issue tracks adding a new DRT operation that creates and exercises temporary tables.

The operation could:
- Create a temporary table or view
- Add DML for the temporary table
- Sleep for a short period to keep the session active (to simulate cleanup paths triggered by session end vs. node crash)
- Disconnect to trigger cleanup logic

Jira issue: CRDB-53334

Epic CRDB-17128

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.