Skip to content

Conversation

@kcxlee
Copy link

@kcxlee kcxlee commented Jan 22, 2026

Adds validation logic to prevent dedup cache corruption when head/tail indices become invalid. Introduces validate_head_tail() to detect and correct corrupted states (head > tail or delta > max_batches), and compute_cache_keys_to_load() to safely bound the number of keys loaded from storage.

Adds metrics for dedup cache size and load errors. Updates cache loading to log detailed state information and gracefully handle failures without

Adds validation logic to prevent dedup cache corruption when head/tail indices become invalid. Introduces `validate_head_tail()` to detect and correct corrupted states (head > tail or delta > max_batches), and `compute_cache_keys_to_load()` to safely bound the number of keys loaded from storage.

Adds metrics for dedup cache size and load errors. Updates cache loading to log detailed state information and gracefully handle failures without
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