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

Agent sandboxes on Windows surpass the 260 character path length limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • agent
    • Windows Server 2012, Windows Server 2016 RC

    Description

      When I tried to deploy an application on mesos-agent(windows), the moment application is deployed mesos agent service on windows node is crashed and in logs I can see error:
      I0714 07:20:09.788785 5640 containerizer.cpp:781] Starting container '031878d5-32fa-41ed-8b23-d0d91fe34f05' for executor 'windemo.10cc3e54-49ce-11e6-a2a2-08002786cbbf' of framework '5c83c39f-75a0-4f38-9e47-633767b47976-0000'
      F0714 07:20:09.797576 5480 slave.cpp:6174] CHECK_SOME(state::checkpoint(path, t)): Failed to create directory 'E:\agentlogs\meta\slaves\803264d5-8f2d-46bb-8019-de0f9565c971-S5\frameworks\5c83c39f-75a0-4f38-9e47-633767b47976-0000\executors\windemo.10cc3e54-49ce-11e6-a2a2-08002786cbbf\runs\031878d5-32fa-41ed-8b23-d0d91fe34f05\tasks\windemo.10cc3e54-49ce-11e6-a2a2-08002786cbbf': No such file or directory

      We debug the issue and found issue with fine name reached to max filepath length: E:\agentlogs\meta\slaves\803264d5-8f2d-46bb-8019-de0f9565c971-S5\frameworks\5c83c39f-75a0-4f38-9e47-633767b47976-0000\executors\windemo.10cc3e54-49ce-11e6-a2a2-08002786cbbf\runs\031878d5-32fa-41ed-8b23-d0d91fe34f05\tasks\windemo.10cc3e54-49ce-11e6-a2a2-08002786cbbf

      I think path length limit in windows is 256 which is revoked and this made service to be crashed while this will work fine for linux mesos agents so we may have to control current UUID.toString() method to be shorter

      Attachments

        1. mesoscrash.jpg
          42 kB
          Lokendra Malik
        2. Pasted image at 2016_07_14 09_02 PM.png
          57 kB
          Lokendra Malik

        Issue Links

          Activity

            People

              andschwa Andrew Schwartzmeyer
              lokendramalik Lokendra Malik
              Joseph Wu Joseph Wu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: