[Bug] Batch deleted Index lost when cursor recover from metadataStore
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
master code.
### Minimal reproduce step
see code
https://github.com/apache/pulsar/blob/bbf52736f7542423b9699387eb9521c35e187816/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L597-L606
### What did you expect to see?
the logic should the same as https://github.com/apache/pulsar/blob/bbf52736f7542423b9699387eb9521c35e187816/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L465-L510
### What did you see instead?
-
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Contributor guide
Research direction
Start with ManagedCursorImpl.java at lines 597-606 and compare that path with lines 465-510, as linked in the issue. Trace cursor recovery from metadataStore and verify that the batch-deleted index is preserved; done means the recovery logic matches the expected behavior described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100