Skip to content

fix: invalidate stale aux tokens for HLL4 - #828

Open
proost wants to merge 1 commit into
apache:mainfrom
proost:fix-stale-aux-tokens-hll4
Open

proost wants to merge 1 commit into
apache:mainfrom
proost:fix-stale-aux-tokens-hll4

Conversation

@proost

@proost proost commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

follow up: #827

What leerho's PR added validation aux token count mismatch. But I found there is path to stale aux tokens remained. For example, shiftToBiggerCurMin. So i invalidate stale aux token counts.

@proost proost self-assigned this Dec 3, 2026
@proost
proost requested a review from leerho December 3, 2026 08:53

@leerho leerho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, confirmed: without the fix a direct HLL4 sketch can't be re-wrapped after a curMin shift empties the aux map.

Nit: (Optional) Line 213: The code comment could be clearer, e.g. "Clear the aux count stored in the segment so it matches the empty aux map."

This branch has not been deployed

No deployments
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.

2 participants