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 9EA3418400 for ; Wed, 2 Mar 2016 10:26:18 +0000 (UTC) Received: (qmail 63004 invoked by uid 500); 2 Mar 2016 10:26:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 62977 invoked by uid 500); 2 Mar 2016 10:26:18 -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 62963 invoked by uid 99); 2 Mar 2016 10:26:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 10:26:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 388902C1F5A for ; Wed, 2 Mar 2016 10:26:18 +0000 (UTC) Date: Wed, 2 Mar 2016 10:26:18 +0000 (UTC) From: "Oliver Lockwood (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11288) Schema agreement appears to be false positive following a DROP TABLE command 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-11288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Lockwood updated CASSANDRA-11288: ---------------------------------------- Environment: Cassandra 2.0.14.439 (DSE 4.6.7) 2 nodes OR 4 nodes Connecting with Datastax Java driver 2.1.8 OR 2.0.12 OR 2.1.4 OR 2.1.9 OR 3.0.0 was: Cassandra 2.0.14.439 (DSE 4.6.7) 2 nodes OR 4 nodes Connecting with Datastax Java driver 2.1.8 OR 2.0.12 OR 2.1.4 OR 2.1.9 > Schema agreement appears to be false positive following a DROP TABLE command > ---------------------------------------------------------------------------- > > Key: CASSANDRA-11288 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11288 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 2.0.14.439 (DSE 4.6.7) > 2 nodes OR 4 nodes > Connecting with Datastax Java driver 2.1.8 OR 2.0.12 OR 2.1.4 OR 2.1.9 OR 3.0.0 > Reporter: Oliver Lockwood > > As part of a schema migration operation, our application is calling the following operations on the Java driver consecutively: > {noformat} > session.execute("DROP TABLE table_name"); > session.execute("CREATE TABLE table_name (...)"); > {noformat} > The second of these sometimes fails with a {{DriverException}} whose message is "Table keyspace.table_name already exists". > In the schema migration operation, there's 4 of these drop/create pairings and, although it's random which exact one fails, we've never managed to get further than the third operation in approximately 10 attempts - so there's a reasonably high proportion of failure. > I don't believe this is a driver issue because the driver is checking for schema agreement (as per https://github.com/datastax/java-driver/blob/2.1/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java#L701) and we are seeing a log message to that effect. > {noformat} > c.d.d.c.ControlConnection - [] [] [] [] [] [] [] [] Checking for schema agreement: versions are [02bce936-fddd-3bef-bb54-124d31bede57] > {noformat} > This log message appears in between our own logs which say "Executing statement DROP TABLE..." and "Executing statement CREATE TABLE...", so we can be reasonably sure this log message refers to the DROP operation being viewed as "in agreement". > Could this be a bug in the Cassandra server erroneously reporting that the schemas are in agreement across the 2 nodes when, in fact, they are not? -- This message was sent by Atlassian JIRA (v6.3.4#6332)