Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5510

NPE in ganglia property provider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • None
    • None

    Description

      Hit NPE when accessing api/vi/clusters/c1/hosts/c6403.ambari.apache.org.

      The repro steps are not simple as I was trying to close the browser during Add Host Wizard progress and then trying to delete the host to start the wizard again.

      In any case, we can add some null checks to avoid the NPE.

      00:30:36,028  WARN [qtp762119098-106] ServletHandler:514 - /api/v1/clusters/c1/hosts/c6403.ambari.apache.org
      java.lang.NullPointerException
              at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider$RRDRequest.convertToNumber(GangliaPropertyProvider.java:621)
              at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider$RRDRequest.populateResources(GangliaPropertyProvider.java:490)
              at org.apache.ambari.server.controller.ganglia.GangliaPropertyProvider.populateResources(GangliaPropertyProvider.java:120)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:129)
              at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:336)
              at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:184)
              at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:67)
              at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:116)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:80)
              at org.apache.ambari.server.api.services.HostService.getHost(HostService.java:80)
              at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
      

      Attachments

        1. AMBARI-5510.patch
          1 kB
          Sumit Mohanty

        Issue Links

          Activity

            People

              sumitmohanty Sumit Mohanty
              sumitmohanty Sumit Mohanty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: