ttljob: stats query can cause job to run for much longer than it needs to #124305
Labels
A-row-level-ttl
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
Describe the problem
In https://cockroachlabs.slack.com/archives/CHVV403F0/p1713541787550359 we had a report of a TTL job that stopped processing rows in ~5 hours, but needed 25 hours total for the job to run.
It seems that the issue is that row level TTL stats were on, and the query to load the stats was taking 25 hours.
Expected behavior
If the TTL job finishes, we should just cancel the stats query.
Epic CRDB-18322
Jira issue: CRDB-38813
The text was updated successfully, but these errors were encountered: