Skip to content

store: Clamp adaptive batch size for stale cleanup#6502

Open
mk0walsk wants to merge 1 commit intographprotocol:masterfrom
mk0walsk:store/clamp-stale-cleanup-batch-size
Open

store: Clamp adaptive batch size for stale cleanup#6502
mk0walsk wants to merge 1 commit intographprotocol:masterfrom
mk0walsk:store/clamp-stale-cleanup-batch-size

Conversation

@mk0walsk
Copy link
Copy Markdown

Summary

Clamp adaptive batch sizes so stale call cache cleanup never degrades to a zero-sized batch.

Changes

  • clamp AdaptiveBatchSize to a minimum of 1 when it is created, adapted, or set explicitly
  • guard clear_stale_call_cache before issuing each delete batch so the loop always makes progress
  • add a unit test covering the zero-sized batch regression path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant