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

Monitor.fetchData should check for null instance name

    XMLWordPrintableJSON

    Details

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

      Description

      Had an odd situation where the monitor would throw an NPE constantly when I tried to view any page.

      It was throwing a NPE trying to accessed the cached instance name. It appears that HdfsZooInstance.getInstance().getInstanceName( may return null, but the monitor code is not written to account for that.

      The monitor should check for null values before setting the instance name into cachedInstanceName. When the instance name is null, it should reschedule the timertask to try to fetch a (non-null) instance name.

        Attachments

          Issue Links

            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 - 0.5h
                  0.5h