cockroachdb / cockroachdb/cockroach

kvserver: use intent count for gc queue trigger

Open
#101,846 1 comment 0 reactions 0 assignees View on GitHub
C-enhancement O-support P-3 T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Is your feature request related to a problem? Please describe.**

We currently don't trigger GC on the intent count. But in some situations it can happen that a range ends up with lots of abandoned intents but not otherwise a reason to trigger GC.

**Describe the solution you'd like**

Use IntentAvgAge or something like that to trigger GC after a sensible duration. Make sure the cooldown period is active to avoid busy loops.

**Additional context**

X-ref https://github.com/cockroachlabs/support/issues/2236

Jira issue: CRDB-27157

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.