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 CE92911DC8 for ; Mon, 9 Jun 2014 17:09:02 +0000 (UTC) Received: (qmail 66916 invoked by uid 500); 9 Jun 2014 17:09:02 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 66888 invoked by uid 500); 9 Jun 2014 17:09: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 66876 invoked by uid 99); 9 Jun 2014 17:09:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 17:09:02 +0000 Date: Mon, 9 Jun 2014 17:09:02 +0000 (UTC) From: "Joaquin Casares (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7012) Expose node status through the system tables, especially after the native protocol is active 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-7012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14025369#comment-14025369 ] Joaquin Casares commented on CASSANDRA-7012: -------------------------------------------- Now waiting on https://github.com/pcmanus/ccm/pull/125 since the last pull request was only at the node level. This new pull request adds cluster-level support for those wait commands. > Expose node status through the system tables, especially after the native protocol is active > -------------------------------------------------------------------------------------------- > > Key: CASSANDRA-7012 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7012 > Project: Cassandra > Issue Type: Improvement > Components: API > Reporter: Joaquin Casares > Assignee: Tyler Hobbs > Labels: datastax_qa > > Java-Driver's note on the issue: https://github.com/datastax/java-driver/blob/2.1/driver-core/src/main/java/com/datastax/driver/core/Cluster.java#L1087 > What the tests for the drivers (Java, Python, C#, etc..) see is a need for sleeps to cover the race conditions between when isUp() returns true and the nodes are actually ready to be accessed. > Could we instead, at the very end of the startup process when the native protocol is up and active, have the system tables be written to denote that the node is now UP and active? > If writing to the system tables is not the best idea, could we figure out another solution to get rid of this race condition, thereby simplifying the testing of the drivers and removing test cases riddled with sleeps of up to 40 seconds? -- This message was sent by Atlassian JIRA (v6.2#6252)