From commits-return-13417-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Mon Aug 27 20:33:11 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 9154B180674 for ; Mon, 27 Aug 2018 20:33:10 +0200 (CEST) Received: (qmail 97984 invoked by uid 500); 27 Aug 2018 18:33:04 -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 97975 invoked by uid 99); 27 Aug 2018 18:33:04 -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; Mon, 27 Aug 2018 18:33:04 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 3A7EB80954; Mon, 27 Aug 2018 18:33:04 +0000 (UTC) Date: Mon, 27 Aug 2018 18:33:04 +0000 To: "commits@pulsar.apache.org" Subject: [incubator-pulsar] branch branch-2.1 updated: fix issue with protocol version not being correct (#2444) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153539478408.20491.7686595264381635446@gitbox.apache.org> From: sijie@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-pulsar X-Git-Refname: refs/heads/branch-2.1 X-Git-Reftype: branch X-Git-Oldrev: acd77a0fe6f09de1919040b65a90fb145f7f1bfa X-Git-Newrev: 96bf00fa12bf74db57d36f40989e233752288351 X-Git-Rev: 96bf00fa12bf74db57d36f40989e233752288351 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git The following commit(s) were added to refs/heads/branch-2.1 by this push: new 96bf00f fix issue with protocol version not being correct (#2444) 96bf00f is described below commit 96bf00fa12bf74db57d36f40989e233752288351 Author: Boyang Jerry Peng AuthorDate: Fri Aug 24 22:40:58 2018 -0700 fix issue with protocol version not being correct (#2444) --- .../src/main/java/org/apache/pulsar/client/impl/ClientCnx.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java index 6a8ab74..b2d9478 100644 --- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java +++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java @@ -232,8 +232,9 @@ public class ClientCnx extends PulsarHandler { if (log.isDebugEnabled()) { log.debug("{} Connection is ready", ctx.channel()); } - connectionFuture.complete(null); + // set remote protocol version to the correct version before we complete the connection future remoteEndpointProtocolVersion = connected.getProtocolVersion(); + connectionFuture.complete(null); state = State.Ready; }