From commits-return-209201-archive-asf-public=cust-asf.ponee.io@cassandra.apache.org Thu Apr 19 00:01:03 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 4025218076D for ; Thu, 19 Apr 2018 00:01:03 +0200 (CEST) Received: (qmail 19566 invoked by uid 500); 18 Apr 2018 22:01:02 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 19544 invoked by uid 99); 18 Apr 2018 22:01:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2018 22:01:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A9B99C015D for ; Wed, 18 Apr 2018 22:01:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KpSpE4Tmrs3f for ; Wed, 18 Apr 2018 22:01:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D1E3B5F5DF for ; Wed, 18 Apr 2018 22:01:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 585DAE0056 for ; Wed, 18 Apr 2018 22:01:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 15CDA241C4 for ; Wed, 18 Apr 2018 22:01:00 +0000 (UTC) Date: Wed, 18 Apr 2018 22:01:00 +0000 (UTC) From: "Greg Bestland (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-14398) Client TOPOLOGY_CHANGE messages have wrong port. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Greg Bestland created CASSANDRA-14398: ----------------------------------------- Summary: Client TOPOLOGY_CHANGE messages have wrong port. Key: CASSANDRA-14398 URL: https://issues.apache.org/jira/browse/CASSANDRA-14398 Project: Cassandra Issue Type: Bug Components: Core Reporter: Greg Bestland Fix For: 4.0.x Summary: TOPOLOGY_CHANGE events that are recieved by the client(Driver), with C* 4.0= (Trunk). Contain the storage port (7000) rather than the native port (9042= ). I believe this is due to changes stuck in for CASSANDRA-17544.=C2=A0=C2= =A0 I was able to track it down to this specific call here. [https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassan= dra/service/StorageService.java#L1703 ] We need an accurate port number from this Topology change event, otherwise = we won't be able to correlate node up event against the system.peers_v2 tab= le accurately. C* version I'm testing against : 4.0.x (trunk) Steps to reproduce: 1. create a single node, cluster, in this case I'm using ccm. {code:java} ccm create 400-1 --install-dir=3D/Users/gregbestland/git/cassandra ccm populate -n 1 ccm start {code} 2. Connect the java driver, and check metadata. see that there is one node with the correct native port (9042). 3. Add a brand new node: {code:java} ccm add node2 -i 127.0.0.2 ccm=C2=A0node2 start {code} 4. Incoming topology change message to client will have the storage port, r= ather then the native port in the message. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org For additional commands, e-mail: commits-help@cassandra.apache.org