Skip to content

Fix PFADD corrupted sparse HLL handling by restoring hllSparseSet return type#3184

Merged
zuiderkwast merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:fix-asan-tag-test
Feb 10, 2026
Merged

Fix PFADD corrupted sparse HLL handling by restoring hllSparseSet return type#3184
zuiderkwast merged 1 commit into
valkey-io:unstablefrom
sarthakaggarwal97:fix-asan-tag-test

Conversation

@sarthakaggarwal97

@sarthakaggarwal97 sarthakaggarwal97 commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

This fixes a regression where PFADD returned 1 instead of INVALIDOBJ for corrupted sparse HLL payloads. In small strings refactor (#2516) we incorrectly changed the datatype from int to bool. That function still uses -1 as its error signal.

I have been looking into fixing large memory tests with ASan, and this is another error.

Failed Test: https://github.com/sarthakaggarwal97/valkey/actions/runs/21871589440/job/63130770208#step:7:696

Validation:

./runtest --single unit/hyperloglog --large-memory

…urn type

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>

@dvkashapov dvkashapov 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.

Good! I hope we won't miss similar failures in the future

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, yeah, our/your recent CI changes uncovered this failure.

  • #3171 makes sure we don't skip this test case in all our jobs
  • #3161 makes sure the job that would expose this failure doesn't time out.

@zuiderkwast zuiderkwast merged commit 06d30f2 into valkey-io:unstable Feb 10, 2026
21 of 23 checks passed
harrylin98 pushed a commit to harrylin98/valkey_forked that referenced this pull request Feb 19, 2026
…urn type (valkey-io#3184)

This fixes a regression where PFADD returned 1 instead of INVALIDOBJ for
corrupted sparse HLL payloads. In small strings refactor (valkey-io#2516) we
incorrectly changed the datatype from int to bool. That function still
uses -1 as its error signal.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
hpatro pushed a commit to hpatro/valkey that referenced this pull request Mar 5, 2026
…urn type (valkey-io#3184)

This fixes a regression where PFADD returned 1 instead of INVALIDOBJ for
corrupted sparse HLL payloads. In small strings refactor (valkey-io#2516) we
incorrectly changed the datatype from int to bool. That function still
uses -1 as its error signal.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
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.

4 participants