-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix bug in compressed binary doc values bulk decoding. #138755
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
base: main
Are you sure you want to change the base?
Conversation
Reuse firstBlockId as blockId on first iteration.
| var binaryFixedDV = getDenseBinaryValues(leaf.reader(), binaryFieldOne); | ||
| // Randomize start doc, starting from a docid that is part of later blocks triggers: | ||
| // https://github.com/elastic/elasticsearch/issues/138750 | ||
| var docs = TestBlock.docs(IntStream.range(between(0, maxDoc - 1), maxDoc).toArray()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is important to trigger to bug
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
dnhatn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks MVG!
|
|
||
| while (remainingCount > 0) { | ||
| long blockId = findAndUpdateBlockByScanning(nextDoc); | ||
| long blockId = remainingCount == count ? firstBlockId : findAndUpdateBlockByScanning(nextDoc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe adjust the loop so we don't need firstBlockId or its special case.
Reuse firstBlockId as blockId on first iteration.
Closes #138750