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

Monitor updates lastRecalc value in an unsafe manner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1, 1.8.0
    • monitor

    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

            elserj Josh Elser
            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