Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11455

Update lifecycle methods for rolling_restart argument

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: Ambari Service
    • Labels:
      None
    • Rank:
      1|i00167:

      Description

      During a rolling restart, CDAP services will fail with an error similar to:

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/CDAP/4.2.0.1494271379/package/scripts/ui.py", line 71, in <module>
          UI().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
          method(env)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 688, in restart
          self.stop(env, rolling_restart=(restart_type == "rolling_upgrade"))
      TypeError: stop() got an unexpected keyword argument 'rolling_restart'
      

      This can be resolved by adding a rolling_restart parameter with a default to (at least) stop methods for all components.

        Attachments

          Activity

            People

            • Assignee:
              chris Chris Gianelloni
              Reporter:
              chris Chris Gianelloni
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: