This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
ISSUE-19808: [Bug] org.apache.bookkeeper.mledger.impl.OpFindNewest#readEntryComplete #5622
Open
2 tasks done
Labels
Original Issue: apache#19808
Search before asking
Version
2.11
org.apache.bookkeeper.mledger.impl.OpFindNewest#readEntryComplete
Minimal reproduce step
1.state = checkFirst, condition.apply(entry) = true
The following code is executed:
crux of the problem:
The calculated searchPosition may be equal to the current entry position, then, after calling find(), state=checkLast is executed the next time, this causes condition.apply(entry) to be called twice, and with the same entry.
What did you expect to see?
I'd like to add a check code, for example:
What did you see instead?
condition.apply(entry) is executed twice
Anything else?
no
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: