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

Upgrade Type Is Incorrectly Quoted When Serialized

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
    • 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

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment