You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2023/06/08 06:22:00 UTC

[GitHub] [pulsar] lhotari commented on issue #20526: [Bug] Broker sees topic fenced

lhotari commented on issue #20526:
URL: https://github.com/apache/pulsar/issues/20526#issuecomment-1581958101

   Thanks for reporting this. This is an issue which has stayed unresolved for many years.
   Some previous reports: #5284 and #14941.
   
   There's an ugly workaround for the problem:
   By setting `topicFencingTimeoutSeconds=5` for brokers, it will release the "fencing" after 5 seconds. 
   However, there is a chance that this causes other problems such as data consistency problems. If metadata gets overwritten, it could lead to data loss.
   
   The recently merged fixes #18688 and #20527 could help improve the situation. I happened to investigate problems in this area yesterday. 
   * I noticed that I had forgotten to merge #18688, that is now merged.
   * A previous solution to prevent some race conditions, #17526 was not effective any more. 
     * The PR #20527 fixes that. That is also merged.
   
   I have created #20540 to address some issues that I have observed in the current solution. One of the remaining challenges in the PR is adding proper test coverage. I'm also waiting for feedback from other code contributors on the PR before finishing it. I'd appreciate feedback on the PR #20540.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org