Skip to content

Do not skip elements >= (1 << 48) w/o checking for sentinel#814

Merged
zakird merged 1 commit intozmap:mainfrom
droe:droe/fix-shard-sentinel
Mar 9, 2024
Merged

Do not skip elements >= (1 << 48) w/o checking for sentinel#814
zakird merged 1 commit intozmap:mainfrom
droe:droe/fix-shard-sentinel

Conversation

@droe
Copy link
Contributor

@droe droe commented Mar 8, 2024

Fixes issue where scan would not terminate when one of the sentinel values is outside the 48 bit range (shard->params.last >= (1 << 48)). This can only happen with the largest group (p: 2^48 + 23) and would be more likely to happen with many threads / shards.

Testing performed:

  • test/test-shard.sh and test/test_big_group.sh still succeed
  • smoke tested with a couple of scans

Possibly root cause of #809.

Fixes issue where scan would not terminate when one of the sentinel
values is outside the 48 bit range (shard->params.last >= (1 << 48)).
@zakird zakird merged commit 8a2583d into zmap:main Mar 9, 2024
@droe droe deleted the droe/fix-shard-sentinel branch March 11, 2024 08:01
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