You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2015/05/29 01:50:17 UTC
[jira] [Updated] (ACCUMULO-3867) Monitor updates lastRecalc value
in an unsafe manner
[ https://issues.apache.org/jira/browse/ACCUMULO-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Elser updated ACCUMULO-3867:
---------------------------------
Labels: coverity (was: )
> Monitor updates lastRecalc value in an unsafe manner
> ----------------------------------------------------
>
> Key: ACCUMULO-3867
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3867
> Project: Accumulo
> Issue Type: Bug
> Components: monitor
> Affects Versions: 1.7.0
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Trivial
> Labels: coverity
> Fix For: 1.7.1, 1.8.0
>
>
> Monitor.fetchData does the following at the end of the method
> {code}
> } finally {
> synchronized (Monitor.class) {
> fetching = false;
> lastRecalc.set(currentTime);
> }
> }
> {code}
> {{lastRecalc}} is a {{static long}} which is not guaranteed to be accurate across threads.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)