accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3867) Monitor updates lastRecalc value in an unsafe manner
Date Thu, 28 May 2015 23:49:17 GMT
Josh Elser created ACCUMULO-3867:
------------------------------------

             Summary: 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
             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)

Mime
View raw message