giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maja Kabiljo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GIRAPH-853) Fix concurrency issue in GiraphMetrics
Date Fri, 14 Feb 2014 16:56:20 GMT

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

Maja Kabiljo updated GIRAPH-853:
--------------------------------

    Attachment: GIRAPH-853.patch

Just adding synchronized since these methods are called rarely.

> Fix concurrency issue in GiraphMetrics
> --------------------------------------
>
>                 Key: GIRAPH-853
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-853
>             Project: Giraph
>          Issue Type: Bug
>            Reporter: Maja Kabiljo
>            Assignee: Maja Kabiljo
>         Attachments: GIRAPH-853.patch
>
>
> Tests sometimes fail due to concurrency issue in GiraphMetrics when adding observers
> Caused by: java.util.ConcurrentModificationException
> 	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
> 	at java.util.ArrayList$Itr.next(ArrayList.java:791)
> 	at org.apache.giraph.metrics.GiraphMetrics.resetSuperstepMetrics(GiraphMetrics.java:134)
> 	at org.apache.giraph.graph.GraphTaskManager.checkTaskState(GraphTaskManager.java:829)
...



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message