Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5442

Stuck when extracting two archive contains overlapped file structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.28.1
    • None
    • fetcher
    • None

    Description

      Provided we have two zip files:

      aaa.zip:
        - conf/aaa.conf  # Overlapped file structure
        - aaa
      
      aaa-patch.zip:
        - conf/aaa.conf  # Overlapped file structure
      

      Then we create a marathon task for it:

      {
        // ...
        "uris": [
          "http://XXXXX/aaa.zip",
          "http://XXXXX/aaa-patch.zip"
        ]
      }
      

      Then after the `aaa.zip` was extracted, it get stuck when trying to extracting `aaa-patch.zip`, the log will finally look like:

      I0522 01:23:05.618922 25041 fetcher.cpp:134] Downloading resource from 'http://XXXXX/aaaa-patch.zip' to '/var/lib/<excerpted>/aaaa-patch.zip'
      I0522 01:23:05.624514 25041 fetcher.cpp:84] Extracting with command: unzip -d '/var/lib/<excerpted>' '/var/lib/<excerpted>/aaa-patch.zip'
      replace /var/lib/<excerpted>/conf/aaa.conf? [y]es, [n]o, [A]ll, [N]one, [r]ename: 
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              timonwong Timon Wong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: