gc.Info.AffectedKeys is not updated correctly by gc.Run in come cases. #84164
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Describe the problem
gc.Info.AffectedKeys is not updated correctly in come cases.
If we have a following data set:
'>' marks GC threshold.
If batch threshold triggers flushing of GC request at 'b2' (note that iteration is from highest to lowest keys and timestamps) then key 'a' is also counted as affected key.
To Reproduce
Use test data above with gc_test and set threshold to 45 bytes to trigger request at the right mvcc key.
The unfortunate effect of this bug is that tests that assert of Info post GC fail.
Jira issue: CRDB-17502
The text was updated successfully, but these errors were encountered: