Describe the problem
The catchup scan can use a substantial amount of memory as it iterates over KVs that need to be output. This memory is not currently connected to any memory monitor and grows without bound throughout a catchup-scan.
|
var a bufalloc.ByteAllocator |
|
reorderBuf := make([]roachpb.RangeFeedEvent, 0, 5) |
Jira issue: CRDB-9679
Describe the problem
The catchup scan can use a substantial amount of memory as it iterates over KVs that need to be output. This memory is not currently connected to any memory monitor and grows without bound throughout a catchup-scan.
cockroach/pkg/kv/kvserver/rangefeed/registry.go
Line 299 in a0bfc85
cockroach/pkg/kv/kvserver/rangefeed/registry.go
Line 309 in a0bfc85
Jira issue: CRDB-9679