From commits-return-7578-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Wed May 2 10:27:37 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 52A8A18065D for ; Wed, 2 May 2018 10:27:37 +0200 (CEST) Received: (qmail 35779 invoked by uid 500); 2 May 2018 08:27:36 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 35770 invoked by uid 99); 2 May 2018 08:27:36 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2018 08:27:36 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] jai1 closed pull request #1711: Fixed Lookup redirect logic on Proxy side Message-ID: <152524965577.20656.3781040493956516504.gitbox@gitbox.apache.org> Date: Wed, 02 May 2018 08:27:35 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: users@infra.apache.org With regards, Apache Git Services