Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 968ED189C1 for ; Mon, 15 Jun 2015 19:39:01 +0000 (UTC) Received: (qmail 80008 invoked by uid 500); 15 Jun 2015 19:39:01 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 79968 invoked by uid 500); 15 Jun 2015 19:39:01 -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 79956 invoked by uid 99); 15 Jun 2015 19:39:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 19:39:01 +0000 Date: Mon, 15 Jun 2015 19:39:01 +0000 (UTC) From: "Joshua McKenzie (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9584) Decommissioning a node on Windows sends the wrong schema change event MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14586540#comment-14586540 ] Joshua McKenzie commented on CASSANDRA-9584: -------------------------------------------- Can further confirm that the failing long test that prompted this ticket also passes for me locally: {noformat} test_token_aware (tests.integration.long.test_loadbalancingpolicies.LoadBalancingPolicyTests) ... Started: node1 with pid: 6340 Started: node3 with pid: 3536 Started: node2 with pid: 5396 SUCCESS: The process with PID 5396 has been terminated. Creating session Started: node2 with pid: 6396 SUCCESS: The process with PID 6396 has been terminated. Started: node2 with pid: 4140 SUCCESS: The process with PID 4140 has been terminated. SUCCESS: The process with PID 6340 has been terminated. SUCCESS: The process with PID 3536 has been terminated. ok ---------------------------------------------------------------------- Ran 1 test in 211.360s OK {noformat} I did have to make some modifications to the test as it's hard-coded expecting the tokens to be assigned to node 2 and mine were going to node 3, but after inverting the node2/node3 checks the test passes. Will try it on the Server2012 perf machine as well to confirm. This is with ccm master and cassandra-2.2.0-rc1. If it passes on the server as well I'm going to close this as cannot reproduce as it looks like something's up with the testing environment. > Decommissioning a node on Windows sends the wrong schema change event > --------------------------------------------------------------------- > > Key: CASSANDRA-9584 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9584 > Project: Cassandra > Issue Type: Bug > Environment: C* 2.2.0-rc1 | python-driver 2.6.0-rc1 | Windows Server 2012 R2 64-bit > Reporter: Kishan Karunaratne > Assignee: Joshua McKenzie > Fix For: 2.2.x > > > Decommissioning a node on Windows sends the wrong schema change event: > {noformat} > cassandra.connection: DEBUG: Message pushed from server: _args={'change_type': u'DOWN', 'address': ('127.0.0.2', 9042)}, stream_id=-1)> > {noformat} > On Linux I get the correct event: > {noformat} > cassandra.connection: DEBUG: Message pushed from server: > {noformat} > We are using ccmlib node.py.decommission() which calls nodetool decommission: > {noformat} > def decommission(self): > self.nodetool("decommission") > self.status = Status.DECOMMISIONNED > self._update_config() > {noformat} > Interestingly, it does seem to work (correctly?) on CCM CLI: > {noformat} > PS C:\Users\Administrator> ccm status > Cluster: '2.2' > -------------- > node1: UP > node3: UP > node2: UP > PS C:\Users\Administrator> ccm node1 ring > Starting NodeTool > Datacenter: datacenter1 > ========== > Address Rack Status State Load Owns Token > 3074457345618258602 > 127.0.0.1 rack1 Up Normal 62.43 KB ? -9223372036854775808 > 127.0.0.2 rack1 Up Normal 104.87 KB ? -3074457345618258603 > 127.0.0.3 rack1 Up Normal 83.67 KB ? 3074457345618258602 > Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless > PS C:\Users\Administrator> ccm node2 decommission > PS C:\Users\Administrator> ccm status > Cluster: '2.2' > -------------- > node1: UP > node3: UP > node2: DECOMMISIONNED > PS C:\Users\Administrator> ccm node1 ring > Starting NodeTool > Datacenter: datacenter1 > ========== > Address Rack Status State Load Owns Token > 3074457345618258602 > 127.0.0.1 rack1 Up Normal 67.11 KB ? -9223372036854775808 > 127.0.0.3 rack1 Up Normal 88.35 KB ? 3074457345618258602 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)