jai1 closed pull request #1711: Fixed Lookup redirect logic on Proxy side URL: https://github.com/apache/incubator-pulsar/pull/1711
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/LookupProxyHandler.java b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/LookupProxyHandler.java index 7d4d683ba1..148a7a4893 100644 --- a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/LookupProxyHandler.java +++ b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/LookupProxyHandler.java @@ -125,7 +125,7 @@ private void performLookup(long clientRequestId, String topic, String brokerServ requestId).thenAccept(result -> { if (result.redirect) { // Need to try the lookup again on a different broker - performLookup(clientRequestId, topic, result.brokerUrl, authoritative, numberOfRetries - 1); + performLookup(clientRequestId, topic, result.brokerUrl, result.authoritative, numberOfRetries - 1); } else { // We have the result immediately String brokerUrl = connectWithTLS ? result.brokerUrlTls : result.brokerUrl; ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services