You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "João Silva (JIRA)" <ji...@apache.org> on 2017/04/12 14:44:41 UTC

[jira] [Created] (CASSANDRA-13438) Got "InvalidQueryException: unconfigured table" when preparing statement after creating table

João Silva created CASSANDRA-13438:
--------------------------------------

             Summary: 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. 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)