cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xe...@apache.org
Subject svn commit: r1163291 - in /cassandra/branches/cassandra-0.8: CHANGES.txt src/java/org/apache/cassandra/thrift/ThriftValidation.java
Date Tue, 30 Aug 2011 16:57:57 GMT
Author: xedin
Date: Tue Aug 30 16:57:57 2011
New Revision: 1163291

URL: http://svn.apache.org/viewvc?rev=1163291&view=rev
Log:
Catch invalid key_validation_class before instantiating UpdateColumnFamily
patch by Jonathan Ellis; reviewed by Pavel Yaskevich for CASSANDRA-3102

Modified:
    cassandra/branches/cassandra-0.8/CHANGES.txt
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/thrift/ThriftValidation.java

Modified: cassandra/branches/cassandra-0.8/CHANGES.txt
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/CHANGES.txt?rev=1163291&r1=1163290&r2=1163291&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/CHANGES.txt (original)
+++ cassandra/branches/cassandra-0.8/CHANGES.txt Tue Aug 30 16:57:57 2011
@@ -44,6 +44,7 @@
  * fix ring cache compatibility when mixing pre-0.8.4 nodes with post-
    in the same cluster (CASSANDRA-3023)
  * Add validation that Keyspace names are case-insensitively unique (CASSANDRA-3066)
+ * catch invalid key_validation_class before instantiating UpdateColumnFamily (CASSANDRA-3102)
 
 0.8.4
  * include files-to-be-streamed in StreamInSession.getSources (CASSANDRA-2972)

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/thrift/ThriftValidation.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/thrift/ThriftValidation.java?rev=1163291&r1=1163290&r2=1163291&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/thrift/ThriftValidation.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/thrift/ThriftValidation.java
Tue Aug 30 16:57:57 2011
@@ -567,6 +567,7 @@ public class ThriftValidation
             if (cfType == null)
                 throw new InvalidRequestException("invalid column type " + cf_def.column_type);
 
+            TypeParser.parse(cf_def.key_validation_class);
             TypeParser.parse(cf_def.comparator_type);
             TypeParser.parse(cf_def.subcomparator_type);
             TypeParser.parse(cf_def.default_validation_class);



Mime
View raw message