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

Upgrade Type Is Incorrectly Quoted When Serialized

    XMLWordPrintableJSON

Details

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

    Description

      When creating an upgrade, the serialized UpgradeType is quoted causing problems with the python code:

          "commandParams": {
              "upgrade_direction": "upgrade",
              "service_package_folder": "common-services/ZOOKEEPER/3.4.5/package",
              "script": "scripts/zookeeper_server.py",
              "hooks_folder": "HDP/2.0.6/hooks",
              "upgrade_type": "\"host_ordered_upgrade\"",
      

      The problem is the Gson, when converting the enum into a String, is giving back a JSON-ready String which includes the quotes.

      Attachments

        1. AMBARI-18863.patch
          3 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: