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 DD338200C5B for ; Wed, 12 Apr 2017 20:14:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DBBC4160B85; Wed, 12 Apr 2017 18:14: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 2DC4E160B95 for ; Wed, 12 Apr 2017 20:14:46 +0200 (CEST) Received: (qmail 61920 invoked by uid 500); 12 Apr 2017 18:14: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 61786 invoked by uid 99); 12 Apr 2017 18:14: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; Wed, 12 Apr 2017 18:14: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 B30881A0109 for ; Wed, 12 Apr 2017 18:14: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 RiZ0MoqMMv3O for ; Wed, 12 Apr 2017 18:14:42 +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 3F5945FCD2 for ; Wed, 12 Apr 2017 18:14:42 +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 CF643E00C4 for ; Wed, 12 Apr 2017 18:14:41 +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 8A24B24067 for ; Wed, 12 Apr 2017 18:14:41 +0000 (UTC) Date: Wed, 12 Apr 2017 18:14:41 +0000 (UTC) From: =?utf-8?Q?Jo=C3=A3o_Silva_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-13438) Got "InvalidQueryException: unconfigured table" when preparing statement after creating table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Apr 2017 18:14:47 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-13438?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15966322#comment-15966322 ]=20 Jo=C3=A3o Silva commented on CASSANDRA-13438: ---------------------------------------- The current "solution" for this problem is to sleep for 1s if the prepare s= tatement call fails with InvalidQueryException and retry this call. Using t= his fix the test program was able to terminate successfully creating the 50= 0 tables. This worked for all "reproduced in" server versions and for Java = driver 3.0.0 and 3.2.0. Not sure what you want to do with this issue so I'll leave it open since th= is should have a proper solution. > Got "InvalidQueryException: unconfigured table" when preparing statement = after creating table > -------------------------------------------------------------------------= -------------------- > > Key: CASSANDRA-13438 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1343= 8 > Project: Cassandra > Issue Type: Bug > Environment: Host: Ubuntu 16.04.1 LTS, jdk 1.8.0_60-b27, docker 1= .11.2 and cassandra DataStax Java driver 3.0.0. > The client program runs on the host and the cassandra cluster runs on doc= ker using the official docker cassandra image (multiple versions, see the r= eproduced in field). > Reporter: Jo=C3=A3o Silva > Attachments: cassandra_add_table.tar.gz > > > I get the InvalidQueryException: unconfigured columnfamily (or table, dep= ending of the server version) when trying to prepare an insert statement ri= ght after creating the table. This behavior is not deterministic but by run= ning the attached program the problem occurs almost always. > First I start a 3 node cassandra cluster (RF=3D3) using the docker cassan= dra image. Then a client Java program, using driver 3.0.0, starts 50 thread= s each one creating 1 table (synchronously) and preparing an insert stateme= nt for it (repeating this 10x for each thread). Eventually the exception oc= curs. > I'm checking for schema agreement when creating the table and it seems to= be achieving it successfully. The schema agreement timeout was increased t= o 2 minutes. > Note that this is an extreme table creation test scenario to make the pro= blem more evident. > See the README file in the attachment for instructions on how to start th= e cluster and run the program. -- This message was sent by Atlassian JIRA (v6.3.15#6346)