[
https://issues.apache.org/jira/browse/CASSANDRA-5782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylvain Lebresne updated CASSANDRA-5782:
----------------------------------------
Attachment: 5782.txt
I think racing between the qeuing of the messages and the completion of the
first ones is what might lead to that. Attaching a trivial patch to fix that.
> ConcurrentModificationException during streaming
> ------------------------------------------------
>
> Key: CASSANDRA-5782
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5782
> Project: Cassandra
> Issue Type: Bug
> Reporter: Brandon Williams
> Assignee: Yuki Morishita
> Fix For: 2.0 beta 2
>
> Attachments: 5782.txt
>
>
> During repair:
> {noformat}
> INFO [STREAM-IN-/127.0.0.1] 2013-07-19 19:42:28,270 StreamSession.java (line
> 602) Flushing memtables for [CFS(Keyspace='ks', ColumnFamily='cf')]...
> INFO [STREAM-IN-/127.0.0.2] 2013-07-19 19:42:28,270 StreamSession.java (line
> 602) Flushing memtables for [CFS(Keyspace='ks', ColumnFamily='cf')]...
> ERROR [STREAM-IN-/127.0.0.2] 2013-07-19 19:42:28,292 StreamSession.java (line
> 410) Streaming error occurred
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
> at java.util.HashMap$ValueIterator.next(HashMap.java:922)
> at
> org.apache.cassandra.streaming.ConnectionHandler.sendMessages(ConnectionHandler.java:169)
> at
> org.apache.cassandra.streaming.StreamSession.startStreamingFiles(StreamSession.java:624)
> at
> org.apache.cassandra.streaming.StreamSession.prepare(StreamSession.java:445)
> at
> org.apache.cassandra.streaming.StreamSession.messageReceived(StreamSession.java:358)
> at
> org.apache.cassandra.streaming.ConnectionHandler$IncomingMessageHandler.run(ConnectionHandler.java:294)
> at java.lang.Thread.run(Thread.java:722)
> {noformat}
--
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