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

NullPointerException after server restart in case not all hosts were joined

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0, 2.4.3
    • ambari-server
    • None

    Description

      NullPointerException after server restart in case not all hosts mentioned in Cluster template were joined the cluster.
      The issue happens when TopologyManager tries to reconstruct requests for hosts.

      java.lang.NullPointerException
      	at java.lang.String.replace(String.java:2180)
      	at org.apache.ambari.server.topology.HostRequest.getLogicalTasks(HostRequest.java:317)
      	at org.apache.ambari.server.topology.LogicalRequest.getCommands(LogicalRequest.java:157)
      	at org.apache.ambari.server.topology.LogicalRequest.getRequestStatus(LogicalRequest.java:230)
      	at org.apache.ambari.server.topology.TopologyManager.isLogicalRequestFinished(TopologyManager.java:903)
      	at org.apache.ambari.server.topology.TopologyManager.replayRequests(TopologyManager.java:857)
      	at org.apache.ambari.server.topology.TopologyManager.ensureInitialized(TopologyManager.java:176)
      	at org.apache.ambari.server.topology.TopologyManager.onHostRegistered(TopologyManager.java:477)
      	at org.apache.ambari.server.state.host.HostImpl$HostRegistrationReceived.transition(HostImpl.java:34
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            smagyari Magyari Sandor Szilard Assign to me
            smagyari Magyari Sandor Szilard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment