Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
-
Low
Description
The reproduction steps for this are as follows:
- Create the following schema:
CREATE KEYSPACE ks WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '1'}; CREATE TABLE ks.cf (k int, v int, PRIMARY KEY(k)) WITH COMPACT STORAGE;
- Using the thrift client execute the following:
Column column = new Column(ByteBufferUtil.bytes("k")); column.setValue(ByteBufferUtil.bytes(1)); column.setTimestamp(1); client.insert(key, new ColumnParent(compactCf), column, ConsistencyLevel.ONE);
This causes an invalid PartitionUpdate to be added to Memtable containing a PartitionColumns containing the partition key ColumnDefinition.
This happens because LegacyLayout.decodeCellName does not check whether the ColumnDefinition is a partition key
Attachments
Attachments
Issue Links
- supercedes
-
CASSANDRA-9910 system_drop_column_family hangs on trunk
- Resolved