You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/10/03 19:58:07 UTC
[GitHub] jerrypeng opened a new pull request #2712: Fix: Brokers redirect
Schema REST requests in a loop when bundle doesn't have a leader
jerrypeng opened a new pull request #2712: Fix: Brokers redirect Schema REST requests in a loop when bundle doesn't have a leader
URL: https://github.com/apache/pulsar/pull/2712
### Motivation
When a topic in a bundle doesn't have a leader yet, any request to any of the Schema endpoints results in a redirect loop causing an error like such:
```[root@server1 pulsar]# ./bin/pulsar-admin schemas get public/demo/test_src_json
null
Reason: javax.ws.rs.ProcessingException: java.net.ProtocolException: Server redirected too many times (20)```
This is caused because the "authoritative" flag is always set to false, thus no one will take ownership of the bundle
### Modifications
Correctly set the "authoritative" flag
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services