sapling/eden/fs/cli/doctor
Xavier Deguillard 34edb7b618 win: re-use guid for the lifetime of the checkout
Summary:
On Windows, the GUID of the mount point identifies the virtualization instance,
that GUID is then propagated automatically to the created placeholders when
these are created as a response to a getPlaceholderInfo callback.

When the placeholders are created by EdenFS when invalidating directories we
have to pass GUID. The documentation isn't clear about whether that GUID needs
to be identical to the mount point GUID, but for a very long time these have
been mismatching due to the mount point GUID being generated at startup time
and not re-used.

One of the most common issue that users have reported is that sometimes
operations on the repository start failing with the error "The provider that
supports file system virtualization is temporarily unavailable". Looking at the
output of `fsutil reparsepoint query` for all the directories from the file
that triggers the error to the root of the repositories, shows that one of the
folder and its descendant don't share the same GUID, removing it solves the
issue.

It's not clear to me why this issue doesn't always reproduce when restarting
EdenFS, but a simple step that we can take to solve this is to always re-use
the GUID, and that hopefully will lead to the GUID always being the same and
the error to go away.

Reviewed By: fanzeyi

Differential Revision: D25513122

fbshipit-source-id: 0058dedbd7fd8ccae1c9527612ac220bc6775c69
2020-12-15 08:07:49 -08:00
..
test win: re-use guid for the lifetime of the checkout 2020-12-15 08:07:49 -08:00
__init__.py allow disabling kerberos check via configuration 2020-09-17 18:04:48 -07:00
check_filesystems.py cli: enable doctor on Windows 2020-08-28 19:49:37 -07:00
check_hg.py rename EdenInstance.get_thrift_client to get_thrift_client_legacy 2020-09-17 13:25:00 -07:00
check_kerberos.py edenfs: fixup doctor kerberos advice 2020-12-04 15:50:31 -08:00
check_os.py Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
check_redirections.py doctor - fixup redirections 2020-05-11 22:13:06 -07:00
check_rogue_edenfs.py cli: enable doctor on Windows 2020-08-28 19:49:37 -07:00
check_stale_mounts.py handle mounts with device type starting with edenfs: 2020-09-11 13:35:03 -07:00
check_watchman.py Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
problem.py add a --current-edenfs-only flag to edenfsctl doctor 2020-04-10 13:48:11 -07:00