krishhh5 commented on PR #11737:
URL: https://github.com/apache/pulsar/pull/11737#issuecomment-1292852617

   the reason why Topic isTemporarily unavailable is the value “isFenced” is 
true。the code `firstInQueue.failed(new`ManagedLedgerException)`  still set 
isFenced=true because of the addFauled method 
   `    public synchronized void addFailed(ManagedLedgerException exception, 
Object ctx) {
           if (exception instanceof ManagedLedgerFencedException) {
               // If the managed ledger has been fenced, we cannot continue 
using it. We need to close and reopen
               close();
           } else {
   
               // fence topic when failed to write a message to BK
               fence();`
   why not fix like this
    `firstInQueue.failed(new`ManagedLedgerFencedException)`
   to set isFenced=false


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to