Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3867

Monitor updates lastRecalc value in an unsafe manner

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.1, 1.8.0
    • Component/s: monitor
    • Labels:

      Description

      Monitor.fetchData does the following at the end of the method

          } finally {
            synchronized (Monitor.class) {
              fetching = false;
              lastRecalc.set(currentTime);
            }
          }
      

      lastRecalc is a static long which is not guaranteed to be accurate across threads.

        Attachments

          Activity

            People

            • Assignee:
              elserj Josh Elser
              Reporter:
              elserj Josh Elser
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m