cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sauer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-5352) PreparedStatements get mixed up between Keyspaces
Date Fri, 15 Mar 2013 15:18:12 GMT

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

David Sauer updated CASSANDRA-5352:
-----------------------------------

    Attachment: patch.txt

change to involve the keyspace while creating the key for statment storage
                
> PreparedStatements get mixed up between Keyspaces
> -------------------------------------------------
>
>                 Key: CASSANDRA-5352
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5352
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: David Sauer
>         Attachments: CassandraServerCql3Test.java, patch.txt
>
>
> I found this behavior while running the same application using two different keyspaces
connected to the same node.
> The prepared statements uses the keyspace that was set while the statement was perpared
(public final CFDefinition cfDef).
> When reusing the Statement only the cql-query is used to create a key and the keyspace
is ignored. When the same query is prepared and used for two different Keyspaces the wrong
keyspace can be used.
> The fix is not to ignore the keyspace when reusing the statement.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message