[patch] add assertion message for deserializing columns assertion failure
-------------------------------------------------------------------------

                 Key: CASSANDRA-3814
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3814
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Dave Brosius
            Priority: Trivial


use was doing

create column family report_by_account_content with comparator=UTF8Type;
update column family report_by_account_content with comparator=UTF8Type and 
column_metadata = [{ column_name:'meta:account-id', 
validation_class:UTF8Type,index_type:KEYS},{ column_name:'meta:filter-hash', 
validation_class:UTF8Type,index_type:KEYS}];

assert was generated but not represented to client. adding message:

// column name format <cf>:<column name>:<attribute name>
String[] components = 
columns.getComparator().getString(column.name()).split(":");
assert components.length == 3 : "Number of Comparator components not 3: " + 
Arrays.toString(components);




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to