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

Improve copy of atlas.war

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

    Description

      Atlas Metadata Server's start script in Ambari includes a step to copy atlas.war from the default location to the expanded_webapp_dir. This is performed using File(content=StaticFile), which reads and writes the contents of the war file to/from memory. It may take 1-3 seconds to perform, and is done even if the source and target files are the same, because there is no check on the paths.

      This could be improved:

      1. Use cp to copy
      2. Skip the operation if source and target are the same

      Attachments

        Activity

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

          People

            adoroszlai Attila Doroszlai Assign to me
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 50m
              50m

              Slack

                Issue deployment