broker No such entry
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
**Describe the bug**
The consumer is unable to subscribe and has the following error when viewing the broker component:
```
time="2022-02-18T17:34:44+08:00" level=info msg="[Connecting to broker]" remote_addr="pulsar://pulsar-test-broker-1.pulsar-test-broker.pulsar-test.svc.cluster.local:6650"
time="2022-02-18T17:34:44+08:00" level=error msg="[Failed to create consumer]" consumerID=3 error="server error: ServiceNotReady: Namespace bundle for topic (persistent://skyline/500397729877331969/sink) not served by this instance. Please redo the lookup. Request is denied: namespace=skyline/500397729877331969" name=zsdmm subscription=data-bus-consumer topic="persistent://skyline/500397729877331969/sink"
time="2022-02-18T17:34:44+08:00" level=error msg="[Failed to create consumer]" consumerID=3 error="server error: ServiceNotReady: Namespace bundle for topic (persistent://skyline/500397729877331969/sink) not served by this instance. Please redo the lookup. Request is denied: namespace=skyline/500397729877331969" name=zsdmm subscription=data-bus-consumer topic="persistent://skyline/500397729877331969/sink"
time="2022-02-18T17:34:44+08:00" level=error msg="[Failed to create consumer]" consumerID=1 error="server error: ServiceNotReady: Namespace bundle for topic (persistent://skyline/500397729877331969/sink) not served by this instance. Please redo the lookup. Request is denied: namespace=skyline/500397729877331969" name=wevgw subscription=data-bus-consumer-detail topic="persistent://skyline/500397729877331969/sink"
time="2022-02-18T17:34:44+08:00" level=error msg="[Failed to create consumer]" consumerID=1 error="server error: ServiceNotReady: Namespace bundle for topic (persistent://skyline/500397729877331969/sink) not served by this instance. Please redo the lookup. Request is denied: namespace=skyline/500397729877331969" name=wevgw subscription=data-bus-consumer-detail topic="persistent://skyline/500397729877331969/sink"
2022/02/18 17:34:44 {"@timestamp":"2022-02-18T17:34:44.026+08","level":"error","content":"corelogic.go:78 server error: ServiceNotReady: Namespace bundle for topic (persistent://skyline/500397729877331969/sink) not served by this instance. Please redo the lookup. Request is denied: namespace=skyline/500397729877331969"}
18:12:28.865 [bookkeeper-ml-workers-OrderedExecutor-7-0] WARN org.apache.bookkeeper.mledger.impl.OpReadEntry - [skyline/454959780851617793/persistent/ods][%2Ffast-test%2F] read failed from ledger at position:171513:492
org.apache.bookkeeper.mledger.ManagedLedgerException$NonRecoverableLedgerException: No such entry
18:12:33.136 [BookKeeperClientWorker-OrderedExecutor-0-0] ERROR org.apache.bookkeeper.client.PendingReadOp - Read of ledger entry failed: L171513 E492-E492, Sent to [pulsar-test-bookie-2.pulsar-test-bookie.pulsar-test.svc.cluster.local:3181, pulsar-test-bookie-0.pulsar-test-bookie.pulsar-test.svc.cluster.local:3181], Heard from [] : bitset = {}, Error = 'No such entry'. First unread entry is (-1, rc = null)
```
Contributor guide
Research direction
Start with the broker consumer-creation error for topic persistent://skyline/500397729877331969/sink and the BookKeeper ledger read failure for ledger 171513, entry 492. Trace how namespace-bundle lookup and ledger reads handle these errors; done means identifying and reproducing the cause of the failed subscription or confirming the relevant broker/BookKeeper behavior with a regression test.
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
- Needs clarification
- Newbie friendliness
- 25/100