[ 
https://issues.apache.org/jira/browse/CASSANDRA-8137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kishan Karunaratne updated CASSANDRA-8137:
------------------------------------------
    Description: 
When using C* 2.1.0 and Ruby-driver master, I get the following error when 
running the Ruby duration test:

{noformat}
Prepared statement of size 4451848 bytes is larger than allowed maximum of 
2027520 bytes.
Prepared statement of size 4434568 bytes is larger than allowed maximum of 
2027520 bytes.
{noformat}

They usually occur in batches of 1, but sometimes in multiples as seen above.  
It happens occasionally, around 20% of the time when running the code.  
Unfortunately I don't have a stacktrace as the error isn't recorded in the 
system log. 
This is my schema, and the offending prepare statement:

{noformat}
@session.execute("CREATE TABLE duration_test.ints (
                        key INT,
                        copy INT,
                        value INT,
                        PRIMARY KEY (key, copy))"
)
{noformat}

{noformat}
select = @session.prepare("SELECT * FROM ints WHERE key=?")
{noformat}

Now, I notice that if I explicitly specify the keyspace in the prepare, I don't 
get the error.

  was:
When using C* 2.1.0 and Ruby-driver master, I get the following error:

{noformat}
Prepared statement of size 4423336 bytes is larger than allowed maximum of 
2027520 bytes.

Unfortunately I don't have a stacktrace as the error isn't recorded in the 
system log. 


> Prepared statement size overflow error
> --------------------------------------
>
>                 Key: CASSANDRA-8137
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8137
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Linux Mint 64 | C* 2.1.0 | Ruby-driver master
>            Reporter: Kishan Karunaratne
>             Fix For: 2.1.0
>
>
> When using C* 2.1.0 and Ruby-driver master, I get the following error when 
> running the Ruby duration test:
> {noformat}
> Prepared statement of size 4451848 bytes is larger than allowed maximum of 
> 2027520 bytes.
> Prepared statement of size 4434568 bytes is larger than allowed maximum of 
> 2027520 bytes.
> {noformat}
> They usually occur in batches of 1, but sometimes in multiples as seen above. 
>  It happens occasionally, around 20% of the time when running the code.  
> Unfortunately I don't have a stacktrace as the error isn't recorded in the 
> system log. 
> This is my schema, and the offending prepare statement:
> {noformat}
> @session.execute("CREATE TABLE duration_test.ints (
>                         key INT,
>                         copy INT,
>                         value INT,
>                         PRIMARY KEY (key, copy))"
> )
> {noformat}
> {noformat}
> select = @session.prepare("SELECT * FROM ints WHERE key=?")
> {noformat}
> Now, I notice that if I explicitly specify the keyspace in the prepare, I 
> don't get the error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to