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

NPE thrown if downscale is performed before all hosts registered with cluster.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.5.0
    • ambari-server
    • None

    Description

      In case of a cluster provisioned using Blueprints if a downscale is performed before all hosts listed in the cluster creation template joined the server a NullPointerException is thrown.

      27 Feb 2017 06:09:07,030 ERROR [ambari-client-thread-28] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.NullPointerException
      at org.apache.ambari.server.topology.LogicalRequest.removeHostRequestByHostName(LogicalRequest.java:346)
      at org.apache.ambari.server.controller.internal.HostResourceProvider.processDeleteHostRequests(HostResourceProvider.java:899)
      at org.apache.ambari.server.controller.internal.HostResourceProvider.deleteHosts(HostResourceProvider.java:865)
      at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
      at org.apache.ambari.server.controller.internal.HostResourceProvider$4.invoke(HostResourceProvider.java:345)
      at org.apache.ambari.server.controller.internal.HostResourceProvider$4.invoke(HostResourceProvider.java:342)
      at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455)
      at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:336)
      at org.apache.ambari.server.controller.internal.HostResourceProvider.deleteResourcesAuthorized(HostResourceProvider.java:342)
      at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.deleteResources(AbstractAuthorizedResourceProvider.java:335)
      at org.apache.ambari.server.controller.internal.ClusterControllerImpl.deleteResources(ClusterControllerImpl.java:339)
      at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.delete(PersistenceManagerImpl.java:132)
      at org.apache.ambari.server.api.handlers.DeleteHandler.persist(DeleteHandler.java:49)
      at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:73)
      at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:144)
      at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126)
      at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90)
      at org.apache.ambari.server.api.services.HostService.deleteHost(HostService.java:194)
      

      Attachments

        1. AMBARI-20270.v1.patch
          7 kB
          Sebastian Toader

        Activity

          People

            stoader Sebastian Toader
            stoader Sebastian Toader
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: