apache / apache/pulsar

[Bug] Batch deleted Index lost when cursor recover from metadataStore

Open
#20,585 1 comment 0 reactions 0 assignees View on GitHub
Stale type/bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.