You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Nitay Joffe (JIRA)" <ji...@apache.org> on 2012/11/06 03:50:12 UTC

[jira] [Updated] (GIRAPH-403) GraphMapper.notiftySentMessages need to be thread-safe

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

Nitay Joffe updated GIRAPH-403:
-------------------------------

    Attachment: GIRAPH-403.patch

Good catch Maja, my apologies. Here's proposed fix.
                
> GraphMapper.notiftySentMessages need to be thread-safe
> ------------------------------------------------------
>
>                 Key: GIRAPH-403
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-403
>             Project: Giraph
>          Issue Type: Bug
>            Reporter: Maja Kabiljo
>            Assignee: Nitay Joffe
>         Attachments: GIRAPH-403.patch
>
>
> GraphMapper.notifySentMessages() is not thread-safe. Here is the error I got:
> Caused by: java.lang.NullPointerException
> 	at org.apache.giraph.graph.GraphMapper.notifySentMessages(GraphMapper.java:454)
> 	at org.apache.giraph.graph.Vertex.sendMessage(Vertex.java:225)
> 	at org.apache.giraph.graph.Vertex.sendMessageToAllEdges(Vertex.java:266)
> 	at org.apache.giraph.benchmark.PageRankComputation.computePageRank(PageRankComputation.java:59)
> 	at org.apache.giraph.benchmark.EdgeListVertexPageRankBenchmark.compute(EdgeListVertexPageRankBenchmark.java:36)
> 	at org.apache.giraph.graph.ComputeCallable.computePartition(ComputeCallable.java:194)
> 	at org.apache.giraph.graph.ComputeCallable.call(ComputeCallable.java:139)
> 	at org.apache.giraph.graph.ComputeCallable.call(ComputeCallable.java:60)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:722)

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