apache / apache/pulsar

org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId

Open
#13,642 2 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

Hi,

I'm getting error logs in pulsar bookkeeper and because of this I'm not getting acknowledged from the pulsar whether the job is pushed successfully or not. Since there is no acknowledgment the jobs are lost once the instance is restarted. Following is the error trace,

Dec 21 11:45:33 ip-10-60-27-174 pulsar[2024114]: 11:45:33.013 [pulsar-io-23-13] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37758 lastEntry:37758
Dec 21 11:45:33 ip-10-60-27-174 pulsar[2024114]: 11:45:33.439 [pulsar-io-23-5] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37760 lastEntry:37760
Dec 21 11:45:33 ip-10-60-27-174 pulsar[2024114]: 11:45:33.540 [pulsar-io-23-5] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37761 lastEntry:37761
Dec 21 11:45:33 ip-10-60-27-174 pulsar[2024114]: 11:45:33.839 [pulsar-io-23-2] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37762 lastEntry:37762
Dec 21 11:45:34 ip-10-60-27-174 pulsar[2024114]: 11:45:34.014 [pulsar-io-23-13] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37762 lastEntry:37762
Dec 21 11:45:34 ip-10-60-27-174 pulsar[2024114]: 11:45:34.214 [pulsar-io-23-4] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42118 firstEntry:866 lastEntry:866
Dec 21 11:45:34 ip-10-60-27-174 pulsar[2024114]: 11:45:34.240 [pulsar-io-23-5] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37762 lastEntry:37762
Dec 21 11:45:34 ip-10-60-27-174 pulsar[2024114]: 11:45:34.414 [pulsar-io-23-13] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37762 lastEntry:37762
Dec 21 11:45:34 ip-10-60-27-174 pulsar[2024114]: 11:45:34.440 [pulsar-io-23-5] ERROR org.apache.bookkeeper.client.LedgerHandle - ReadException on ledgerId:42132 firstEntry:37762 lastEntry:37762

I have checked the same exception in the bookkeeper code,
![ReadExceptionPulsar](https://user-images.githubusercontent.com/47890873/148207984-030c71af-7304-4801-8869-6d4ad389cddf.PNG)
From this it is understood that the lastEntry is greater than the lastAddConfirmed. We aren't sure why this is happening, is there a way we can over come it ?

Contributor guide

Open the contributing guide

Research direction

Start with the org.apache.bookkeeper.client.LedgerHandle ReadException path and the BookKeeper code referenced in the report. Compare the logged ledgerId, firstEntry, lastEntry, and lastAddConfirmed values, then gather the missing broker, ledger, and reproduction details. Done means identifying the cause and documenting or validating a concrete resolution for the lost acknowledgments.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.