cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Silva (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-13438) Got "InvalidQueryException: unconfigured table" when preparing statement after creating table
Date Wed, 12 Apr 2017 18:19:41 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-13438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966322#comment-15966322
] 

João Silva edited comment on CASSANDRA-13438 at 4/12/17 6:19 PM:
-----------------------------------------------------------------

The current "solution" for this problem is to sleep for 1s if the prepare statement call fails
with InvalidQueryException and retry this call. Using this fix the test program was able to
terminate successfully creating the 500 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 this should have
a proper solution.

This may eventually be used as a test scenario for CASSANDRA-10699


was (Author: joao.silva):
The current "solution" for this problem is to sleep for 1s if the prepare statement call fails
with InvalidQueryException and retry this call. Using this fix the test program was able to
terminate successfully creating the 500 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 this 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-13438
>             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 docker using the
official docker cassandra image (multiple versions, see the reproduced in field).
>            Reporter: João Silva
>         Attachments: cassandra_add_table.tar.gz
>
>
> I get the InvalidQueryException: unconfigured columnfamily (or table, depending of the
server version) when trying to prepare an insert statement right after creating the table.
This behavior is not deterministic but by running the attached program the problem occurs
almost always.
> First I start a 3 node cassandra cluster (RF=3) using the docker cassandra image. Then
a client Java program, using driver 3.0.0, starts 50 threads each one creating 1 table (synchronously)
and preparing an insert statement for it (repeating this 10x for each thread). Eventually
the exception occurs.
> *Important:*
> - I'm checking for schema agreement when creating the table and it seems to be achieving
it successfully. The schema agreement timeout was increased to 2 minutes.
> - This are *not* concurrent schema changes.
> Note that this is an extreme table creation test scenario to make the problem more evident.
> See the README file in the attachment for instructions on how to start the cluster and
run the program.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message