'No such ledger exists on Bookies' exceptions after updating from 2.9.2 to 2.10.4 #20199
Unanswered
dmercuriali
asked this question in
Q&A
Replies: 1 comment 5 replies
|
"__change_events" is a new "system" topic that is automatically created for every namespace. Please ensure that you have enabled "system topics" in your broker configuration @BewareMyPower would you please take a look ? |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
After updating pulsar from 2.9.2 to 2.10.4, new messages seems to be stored in a wrong ledger.
(This will be a long post, sorry)
Staging environment infos
Pulsar from 2.9.2 to 2.10.4
Netty from 4.1.74.Final to 4.1.86.Final
Bookkeeper 4.14.4 (unchanged)
Zookeeper 3.8.0 (unchanged)
Cluster made of:
Messages inserts are done with the Producer api, while topic reads are done with the Reader api (and we store the last processed messageid on the DB).
I can't find the root of the problem but I think it's something related to the ManagedLedgers.
I've taken the topic 'idc9169/ns/events' as an examble.
On the DB we have this last MessageId:
69484988:47:-1:0When I try to produce some messages, no exception is thrown and the returned message ids looks like this:
11298:0:-1:0. The ledgerId is way lower than the one on DB.Searching for the two ledgers with the bk cli or bkvm I'm able to find the ledger
69484988, but not the "new"11298.Infos on the
69484988ManagedLedger info returned from
/admin/v2/persistent/idc9169/ns/events/internal-info:In the ManagedLedgerImpl.log I see
So it looks like the ledger creation was fine, the messages were written, but then I can't find the new ledger on the bookies.
Also note that here a new legder for the
__change_eventstopic is created, but calling/admin/v2/persistent/idc9169/ns/events/stats?getPreciseBacklog=true&subscriptionBacklogSize=false&getEarliestTimeInBacklog=falseresults inIt's trying to read from ledger
69058818but failsThe ledger
69058818exists on bk and on zkI similar error is returned by
admin/v2/persistent/idc9169/ns/events/lastMessageId->500 No such ledger exists on BookiesIn the PulsarRegistrationClient logs I see the right bookies (all writable).
I'm not sure what else to look for, any ideas?
Thanks to anyone willing to read all this.
All reactions