hangc0276 opened a new pull request #6856: URL: https://github.com/apache/pulsar/pull/6856
### Motivation When a topic with high input/output load, we will get add partition failed, the failed log as follows: ``` Failed to perform http post request: org.asynchttpclient.handler.MaxRedirectException: Maximum redirect reached: 5 null Reason: org.asynchttpclient.handler.MaxRedirectException: Maximum redirect reached: 5 ``` ### Bug description The reason is when the topic with high load, the topic's bundle will be unload. In the same time, we call pulsar admin to add partition for the topic, the request will post to one broker A, broker A can't find the topic-bundle's owner, it will redirect the request to the leader broker B, broker B find a candidate broker C to own the bundle, and redirect request to broker C with authoritative flag. However, broker C can't receive the authoritative flag (that's the bug), and can't find the topic-bundle's owner and has no authoritative flag, so it redirect the request to the leader broker B and goes on in cycle. In the end it reaches the max redirect limit and failed. ---------------------------------------------------------------- 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: [email protected]
