[
https://issues.apache.org/jira/browse/CASSANDRA-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
craig mcmillan updated CASSANDRA-5949:
--------------------------------------
Comment: was deleted
(was: diff --git
a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
index 4746f8a..847593b 100644
--- a/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
+++ b/src/java/org/apache/cassandra/hadoop/cql3/CqlRecordWriter.java
@@ -304,7 +304,7 @@ final class CqlRecordWriter extends
AbstractColumnFamilyRecordWriter<Map<String,
{
ByteBuffer[] keys = new ByteBuffer[partitionKeyColumns.length];
for (int i = 0; i< keys.length; i++)
- keys[i] = keyColumns.get(partitionKeyColumns[i]);
+ keys[i] = keyColumns.get(partitionKeyColumns[i]).duplicate();
partitionKey = CompositeType.build(keys);
})
> CqlRecordWriter sends empty composite partition-key components to thrift
> ------------------------------------------------------------------------
>
> Key: CASSANDRA-5949
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5949
> Project: Cassandra
> Issue Type: Bug
> Components: Hadoop
> Reporter: craig mcmillan
> Fix For: 1.2.8
>
>
> when there is a composite partition-key, CqlRecordWriter.getPartitionKey()
> consumes the content of the key-component ByteBuffers, leaving empty
> key-components to be written to thrift
--
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