cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-4231) ConcurrentModificationException while writing mutations with ColumnFamilyRecordWrite
Date Fri, 11 May 2012 22:47:53 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis resolved CASSANDRA-4231.
---------------------------------------

    Resolution: Invalid

This will happen if your code calling CFRW.write re-uses Mutation objects or anything in that
heirarchy (CF, SC, C, etc).  If you create new objects for each call to write, this won't
happen.
                
> ConcurrentModificationException while writing mutations with ColumnFamilyRecordWrite
> ------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4231
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4231
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.0.10
>         Environment: Debian Squeeze, one local cassandra node
>            Reporter: bert Passek
>
> Hello,
> we are using mapreduce jobs for writing data into cassandra. Sometimes the job fails
because of a concurrent modification exception.
> java.io.IOException: java.util.ConcurrentModificationException
> 	at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$RangeClient.run(ColumnFamilyRecordWriter.java:307)
> Caused by: java.util.ConcurrentModificationException
> 	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> 	at java.util.AbstractList$Itr.next(AbstractList.java:343)
> 	at org.apache.cassandra.thrift.SuperColumn.write(SuperColumn.java:440)
> 	at org.apache.cassandra.thrift.ColumnOrSuperColumn.write(ColumnOrSuperColumn.java:561)
> 	at org.apache.cassandra.thrift.Mutation.write(Mutation.java:384)
> 	at org.apache.cassandra.thrift.Cassandra$batch_mutate_args.write(Cassandra.java:19021)
> 	at org.apache.cassandra.thrift.Cassandra$Client.send_batch_mutate(Cassandra.java:1018)
> 	at org.apache.cassandra.thrift.Cassandra$Client.batch_mutate(Cassandra.java:1008)
> 	at org.apache.cassandra.hadoop.ColumnFamilyRecordWriter$RangeClient.run(ColumnFamilyRecordWriter.java:299)
> We were using Cassandra 1.0.8 for quite a long time without such problems.
> Regards Bert Passek

--
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

        

Mime
View raw message