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

Parallel execution should only be allowed on commands that have auto retry enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.2.2
    • ambari-agent
    • None

    Description

      Parallel execution of commands can result in failures if the commands process resources that are shared among the commands. For example, commands may check and delete the same file resource. Deleting a file resource that is already deleted is not a functional error but its does result in command failure.

      Its not always possible to guarantee that stack scripts are written with guards that can check the failure and then determine if its harmless or not. Auto retry is a way to get around failures due to resource contention - think eventual success. Try all commands in parallel - then try only the failed ones. Each command is idempotent by definition so after a few retries all commands succeed.

      When commands without auto-retry option are executed in parallel then there is no option to retry. This is not desirable.

      Attachments

        1. AMBARI-15795.patch
          4 kB
          Sumit Mohanty
        2. AMBARI-15795.2.patch
          2 kB
          Sumit Mohanty

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: