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

Ambari agent Heartbeat lost when df hangs (NFS gateway), also prevents proper re-initialization of agent upon restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 2.1.0
    • ambari-agent
    • None
    • HDP 2.1

    Description

      Ambari agent is succeptible to hanging when the 'df' command blocks. This causes loss of heartbeat and manageability. I've found this has happened with NFS gateway's HDFS mount point blocking when HDFS isn't available (we had set the NFS soft option on the mount point but then realized that wasn't a good idea as not everyone's processes and scripts will handle failure gracefully and retry properly).

      When restarting the agent it also leaves the df process bound to point 8670 which requires manually killing that in order to get the ambari agent to restart and bind successfully, but even then you'll see a hang at this point after connecting to the 8440 ca and the agent never fully initializes so the heartbeat still never comes back.

      The df command should be either in another thread non-blocking the main heartbeat and management functions or should have a timeout set on the command execution to prevent this issue.

      Regards,

      Hari Sekhon
      http://www.linkedin.com/in/harisekhon

      Attachments

        1. AMBARI-8768.patch
          4 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              harisekhon Hari Sekhon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: