You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Cathy Daw (JIRA)" <ji...@apache.org> on 2011/04/20 00:00:05 UTC
[jira] [Created] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Updating a column's validation class from AsciiType to UTF8Type does not actually work
--------------------------------------------------------------------------------------
Key: CASSANDRA-2512
URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
Project: Cassandra
Issue Type: Bug
Affects Versions: 0.7.4
Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
Reporter: Cathy Daw
Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
*Reproduction Steps*
{code}
create column family users with comparator = UTF8Type
and column_metadata = [{column_name: password, validation_class: UTF8Type},
{column_name: gender, validation_class: AsciiType}];
update column family users with comparator = UTF8Type
and column_metadata = [{column_name: password, validation_class: UTF8Type}
{column_name: gender, validation_class: UTF8Type}];
{code}
*Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
{code}
[default@demo] describe keyspace demo;
Keyspace: demo:
Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
Options: [datacenter1:1]
Column Families:
ColumnFamily: users
Key Validation Class: org.apache.cassandra.db.marshal.BytesType
Default column value validator: org.apache.cassandra.db.marshal.BytesType
Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
Row cache size / save period in seconds: 0.0/0
Key cache size / save period in seconds: 200000.0/14400
Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
GC grace seconds: 864000
Compaction min/max thresholds: 4/32
Read repair chance: 1.0
Replicate on write: false
Built indexes: []
Column Metadata:
Column Name: gender
Validation Class: org.apache.cassandra.db.marshal.AsciiType
Column Name: password
Validation Class: org.apache.cassandra.db.marshal.UTF8Type
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022870#comment-13022870 ]
Hudson commented on CASSANDRA-2512:
-----------------------------------
Integrated in Cassandra-0.7 #452 (See [https://builds.apache.org/hudson/job/Cassandra-0.7/452/])
Fix updating column metadata validation class
patch by jbellis; reviewed by slebresne for CASSANDRA-2512
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2512:
--------------------------------------
Attachment: 2512.txt
patch fixes CFMetaData.apply to include validation class.
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Cathy Daw (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025480#comment-13025480 ]
Cathy Daw commented on CASSANDRA-2512:
--------------------------------------
Retested and verified this is fixed in current build.
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022894#comment-13022894 ]
Hudson commented on CASSANDRA-2512:
-----------------------------------
Integrated in Cassandra-0.8 #31 (See [https://builds.apache.org/hudson/job/Cassandra-0.8/31/])
merge CASSANDRA-2512 from 0.7
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022893#comment-13022893 ]
Hudson commented on CASSANDRA-2512:
-----------------------------------
Integrated in Cassandra #861 (See [https://builds.apache.org/hudson/job/Cassandra/861/])
merge CASSANDRA-2512 from 0.8
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-2512) Updating a column's validation
class from AsciiType to UTF8Type does not actually work
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2512:
--------------------------------------
Reviewer: cdaw
Affects Version/s: (was: 0.7.4)
0.7.0
Fix Version/s: 0.7.5
Assignee: Jonathan Ellis
> Updating a column's validation class from AsciiType to UTF8Type does not actually work
> --------------------------------------------------------------------------------------
>
> Key: CASSANDRA-2512
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2512
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7.0
> Environment: Single Node on MacOSX, installed from 0.7.4 binary .tar ball.
> Reporter: Cathy Daw
> Assignee: Jonathan Ellis
> Fix For: 0.7.5
>
> Attachments: 2512.txt
>
>
> Please note this is reproducible on both Cassandra 0.74 and the April 18th trunk build.
> *Reproduction Steps*
> {code}
> create column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type},
> {column_name: gender, validation_class: AsciiType}];
> update column family users with comparator = UTF8Type
> and column_metadata = [{column_name: password, validation_class: UTF8Type}
> {column_name: gender, validation_class: UTF8Type}];
> {code}
> *Before & After quitting cassandra-cli: Notice the validation class for the gender client still shows AsciiType*
> {code}
> [default@demo] describe keyspace demo;
> Keyspace: demo:
> Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
> Options: [datacenter1:1]
> Column Families:
> ColumnFamily: users
> Key Validation Class: org.apache.cassandra.db.marshal.BytesType
> Default column value validator: org.apache.cassandra.db.marshal.BytesType
> Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
> Row cache size / save period in seconds: 0.0/0
> Key cache size / save period in seconds: 200000.0/14400
> Memtable thresholds: 0.29062499999999997/62/1440 (millions of ops/MB/minutes)
> GC grace seconds: 864000
> Compaction min/max thresholds: 4/32
> Read repair chance: 1.0
> Replicate on write: false
> Built indexes: []
> Column Metadata:
> Column Name: gender
> Validation Class: org.apache.cassandra.db.marshal.AsciiType
> Column Name: password
> Validation Class: org.apache.cassandra.db.marshal.UTF8Type
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira