You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/07/01 07:07:28 UTC
[jira] [Commented] (GORA-210) thread safety:
java.util.ConcurrentModificationException
[ https://issues.apache.org/jira/browse/GORA-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696581#comment-13696581 ]
Hudson commented on GORA-210:
-----------------------------
Integrated in goraOracle #6 (See [https://builds.apache.org/job/goraOracle/6/])
GORA-210 thread safety: fix java.util.ConcurrentModificationException (Revision e51060b1adaf4b5475e9d9437b2667380acfbabe)
Result = FAILURE
rherget :
Files :
* gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraStore.java
* CHANGES.txt
> thread safety: java.util.ConcurrentModificationException
> --------------------------------------------------------
>
> Key: GORA-210
> URL: https://issues.apache.org/jira/browse/GORA-210
> Project: Apache Gora
> Issue Type: Bug
> Components: gora-cassandra
> Affects Versions: 0.2
> Environment: nutch 2.1 / cassandra 1.2.1 / gora-cassandra 0.2 / gora-core 0.2.1
> running fetch with parse=true
> fetcher.threads.per.queue=2 / about 1 Exception per 100k URLs fetched
> nutch on a 16 core AMD Opteron 2GHz.
> Cassandra on 8 core Intel Xeon 3.3 GHz
> Reporter: Roland von Herget
> Assignee: Roland von Herget
> Priority: Critical
> Labels: patch
> Fix For: 0.3
>
> Attachments: GORA-210.patch, GORA-210-trunk.patch
>
>
> This is the result of debugging one of my issues described in NUTCH-1534.
> I think there is a wrong assumpation about thread safety of LinkedHashMap, it is not enough to not iterate over the buffer (which is a LinkedHashMap).
> My patch fixes this error for me:
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:394)
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
> at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
> at org.apache.gora.cassandra.store.CassandraStore.flush(CassandraStore.java:200)
> at org.apache.gora.mapreduce.GoraRecordWriter.write(GoraRecordWriter.java:65)
> at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:587)
> at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
> at org.apache.nutch.fetcher.FetcherReducer$FetcherThread.output(FetcherReducer.java:664)
> at org.apache.nutch.fetcher.FetcherReducer$FetcherThread.run(FetcherReducer.java:534)
> It may not be perfect from a performance point of view...
--
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