merlimat opened a new pull request #5297: Don't attempt to append on read-only 
cursor ledger
URL: https://github.com/apache/pulsar/pull/5297
 
 
   ### Motivation
   
   When the cursor is recovered from a ledger, the ledgerHandle is kept open so 
that we can delete that ledger after we update the cursor status. 
   
   If we attempt to close the cursor before having had any updates on the 
cursor itself, we would end up having a harmless error, saying that we're 
trying to append to a read-only ledger. eg.
   
   ```
   00:29:32.964 [pulsar-ordered-OrderedExecutor-6-0-EventThread] ERROR 
org.apache.bookkeeper.client.ReadOnlyLedgerHandle - Tried to add entry on a 
Read-Only ledger handle, ledgerid=10 
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to