[
https://issues.apache.org/jira/browse/MESOS-5849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15849061#comment-15849061
]
Li Li commented on MESOS-5849:
------------------------------
Starting in Windows 10, version 1607, MAX_PATH limitations have been removed
from common Win32 file and directory functions. However, you must opt-in to the
new behavior.
A registry key allows you to enable or disable the new long path behavior. To
enable long path behavior set the registry key at
HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (Type:
REG_DWORD). The key's value will be cached by the system (per process) after
the first call to an affected Win32 file or directory function (list follows).
The registry key will not be reloaded during the lifetime of the process. In
order for all apps on the system to recognize the value of the key, a reboot
might be required because some processes may have started before the key was
set.
For details, please refer to
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
> Agent sandboxes on Windows surpass the 260 character path length limit
> ----------------------------------------------------------------------
>
> Key: MESOS-5849
> URL: https://issues.apache.org/jira/browse/MESOS-5849
> Project: Mesos
> Issue Type: Bug
> Components: agent
> Environment: Windows Server 2012, Windows Server 2016 RC
> Reporter: Lokendra Malik
> Assignee: Daniel Pravat
> Priority: Blocker
> Labels: microsoft, tech-debt, windows
> Attachments: mesoscrash.jpg, Pasted image at 2016_07_14 09_02 PM.png
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)