Skip to content

fix: 18795: HDHM repair mechanism can be improved to clean stale buckets #18796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

artemananiev
Copy link
Contributor

Fix summary:

  • HDHM.repair() is improved to check bucket ID integrity. That is, when a bucket is loaded for a bucket ID, this bucket's ID is checked against the ID from the index. If they don't match, the bucket is removed altogether from the index
  • I couldn't think of a unit test to cover this case. With current code bucket index entries are never corrupted (but they used to in the past, this is why this mechanism is needed)

Fixes: #18795
Signed-off-by: Artem Ananev [email protected]

@artemananiev artemananiev added Platform Virtual Map Platform Data Structures Platform Tickets pertaining to the platform Stability Tickets pertaining to the stability of the consensus node. labels Apr 10, 2025
@artemananiev artemananiev added this to the v0.62 milestone Apr 10, 2025
@artemananiev artemananiev self-assigned this Apr 10, 2025
@artemananiev artemananiev requested a review from a team as a code owner April 10, 2025 23:11
@artemananiev artemananiev merged commit 3c827d6 into main Apr 11, 2025
69 checks passed
@artemananiev artemananiev deleted the 18795-M-hdhm-repair-clean-stale-buckets branch April 11, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Data Structures Platform Virtual Map Platform Tickets pertaining to the platform Stability Tickets pertaining to the stability of the consensus node.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HDHM repair mechanism can be improved to clean stale buckets
4 participants