GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — [improve][broker] Recover batch deleted Index when cursor recover from metadataStore. by lifepuzzlefun · Pull Request #20018 · apache/pulsar Conversation
|
| PositionImpl position = new PositionImpl(positionInfo); | |
| if (positionInfo.getIndividualDeletedMessagesCount() > 0) { | |
| recoverIndividualDeletedMessages(positionInfo.getIndividualDeletedMessagesList()); | |
| } | |
| if (config.isDeletionAtBatchIndexLevelEnabled() | |
| && positionInfo.getBatchedEntryDeletionIndexInfoCount() > 0) { | |
| recoverBatchDeletedIndexes(positionInfo.getBatchedEntryDeletionIndexInfoList()); | |
| } | |
| recoveredCursor(position, recoveredProperties, cursorProperties, lh); | |
| callback.operationComplete(); |
i think both the logic is the same either recover from metadataStore or cursorLedger.
add logic on recoverBatchDeletedIndex .
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
If the box was checked, please highlight the changes
doc doc-required doc-not-needed doc-complete PR in forked repository:
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Good catch. Please add tests to cover this PR. The test should fail without the fix and pass with the fix in this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lhotari @codelipenghui @Technoboy- can you take a look ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The pr had no activity for 30 days, mark with Stale label. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lifepuzzlefun Please rebase or close this if it's no longer relevant. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please rebase
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @lifepuzzlefun, you diagnosed this correctly back in 2023, and I'm sorry it never got merged. The same fix landed in #26474 ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug] Batch deleted Index lost when cursor recover from metadataStore
There was an error while loading. Please reload this page.