Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DEB56200C56 for ; Fri, 31 Mar 2017 00:52:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DD446160B8B; Thu, 30 Mar 2017 22:52:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0930B160B98 for ; Fri, 31 Mar 2017 00:52:45 +0200 (CEST) Received: (qmail 12182 invoked by uid 500); 30 Mar 2017 22:52:45 -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 12144 invoked by uid 99); 30 Mar 2017 22:52:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2017 22:52:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A08E11A0528 for ; Thu, 30 Mar 2017 22:52:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Q7D7pn1Xa_nf for ; Thu, 30 Mar 2017 22:52:43 +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 06FD55FC6D for ; Thu, 30 Mar 2017 22:52:43 +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 7825FE0C1B for ; Thu, 30 Mar 2017 22:52:42 +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 B1FFA21DDE for ; Thu, 30 Mar 2017 22:52:41 +0000 (UTC) Date: Thu, 30 Mar 2017 22:52:41 +0000 (UTC) From: "Paulo Motta (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-12929) dtest failure in bootstrap_test.TestBootstrap.simple_bootstrap_test_small_keepalive_period MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 30 Mar 2017 22:52:47 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-12929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950013#comment-15950013 ] Paulo Motta edited comment on CASSANDRA-12929 at 3/30/17 10:52 PM: ------------------------------------------------------------------- Hmm, the version check {{CassandraVersion.isSupportedBy}} only consider versions in the same major compatible, so keep-alive was never being enabled. I updated the keep-alive version check to use {{compareTo}} which compares both majors and minors instead, which makes 4.0 compatible with 3.10. Also updated dtest to use byteman so it will be faster [PR|https://github.com/riptano/cassandra-dtest/pull/1458] Trivial patch attached: ||trunk||dtest|| |[branch|https://github.com/apache/cassandra/compare/trunk...pauloricardomg:trunk-12929]|[branch|https://github.com/riptano/cassandra-dtest/compare/master...pauloricardomg:12929]| |[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-trunk-12929-dtest/lastCompletedBuild/testReport/]| Mind having a quick look [~yukim]? Thanks! was (Author: pauloricardomg): Hmm, the version check {{CassandraVersion.isSupportedBy}} only consider versions in the same major compatible, so keep-alive was never being enabled. I updated the keep-alive version check to use {{compareTo}} which compares both majors and minors instead, which makes 4.0 compatible with 3.10. Also updated dtest to use byteman so it will be faster [PR|https://github.com/riptano/cassandra-dtest/pull/1458] Trivial patch attached: ||12929||dtest|| |[branch|https://github.com/apache/cassandra/compare/cassandra-12929...pauloricardomg:12929-trunk]|[branch|https://github.com/riptano/cassandra-dtest/compare/master...pauloricardomg:trunk]| |[dtest|http://cassci.datastax.com/view/Dev/view/paulomotta/job/pauloricardomg-12929-trunk-dtest/lastCompletedBuild/testReport/]| Mind having a quick look [~yukim]? Thanks! > dtest failure in bootstrap_test.TestBootstrap.simple_bootstrap_test_small_keepalive_period > ------------------------------------------------------------------------------------------ > > Key: CASSANDRA-12929 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12929 > Project: Cassandra > Issue Type: Bug > Reporter: Michael Shuler > Assignee: Paulo Motta > Labels: dtest, test-failure > > example failure: > http://cassci.datastax.com/job/trunk_novnode_dtest/494/testReport/bootstrap_test/TestBootstrap/simple_bootstrap_test_small_keepalive_period > {noformat} > Error Message > Expected [['COMPLETED']] from SELECT bootstrapped FROM system.local WHERE key='local', but got [[u'IN_PROGRESS']] > -------------------- >> begin captured logging << -------------------- > dtest: DEBUG: cluster ccm directory: /tmp/dtest-YmnyEI > dtest: DEBUG: Done setting configuration options: > { 'num_tokens': None, 'phi_convict_threshold': 5, 'start_rpc': 'true'} > cassandra.cluster: INFO: New Cassandra host discovered > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/lib/python2.7/unittest/case.py", line 329, in run > testMethod() > File "/home/automaton/cassandra-dtest/tools/decorators.py", line 46, in wrapped > f(obj) > File "/home/automaton/cassandra-dtest/bootstrap_test.py", line 163, in simple_bootstrap_test_small_keepalive_period > assert_bootstrap_state(self, node2, 'COMPLETED') > File "/home/automaton/cassandra-dtest/tools/assertions.py", line 297, in assert_bootstrap_state > assert_one(session, "SELECT bootstrapped FROM system.local WHERE key='local'", [expected_bootstrap_state]) > File "/home/automaton/cassandra-dtest/tools/assertions.py", line 130, in assert_one > assert list_res == [expected], "Expected {} from {}, but got {}".format([expected], query, list_res) > "Expected [['COMPLETED']] from SELECT bootstrapped FROM system.local WHERE key='local', but got [[u'IN_PROGRESS']]\n-------------------- >> begin captured logging << --------------------\ndtest: DEBUG: cluster ccm directory: /tmp/dtest-YmnyEI\ndtest: DEBUG: Done setting configuration options:\n{ 'num_tokens': None, 'phi_convict_threshold': 5, 'start_rpc': 'true'}\ncassandra.cluster: INFO: New Cassandra host discovered\n--------------------- >> end captured logging << ---------------------" > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)