Skip to content

kvserver: memory monitor and improve buffering in rangefeed catchup scans #69596

@stevendanna

Description

@stevendanna

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

Metadata

Metadata

Assignees

Labels

A-cdcChange Data CaptureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-cdc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions