Commit 6d19765
[flow] Suppress spurious EdenFS watcher error on clean shutdown
Summary:
Changelog: [internal]
During `flow stop`, the exit hook destroys the EdenFS watcher instance
before the listen loop is canceled. When Lwt yields during the 1-second
shutdown window, the listen loop wakes up and tries to call
get_changes_async on the destroyed instance, producing a spurious
"EdenfsWatcherInstance was previously destroyed" error that gets logged
to Scuba as EDENFS_WATCHER_ERROR.
Detect this specific error in the listen loop and treat it as a clean
shutdown (Lwt.Canceled) instead of an error. This prevents false error
events from polluting Scuba on every normal `flow stop`.
Reviewed By: SamChou19815
Differential Revision: D94991663
fbshipit-source-id: bbe0eef3165bea16de8a0eb2f59c1062062333b11 parent 69daa70 commit 6d19765
File tree
2 files changed
+7
-0
lines changed- src
- hack_forked/stubs/edenfs_watcher
- monitor
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
689 | 694 | | |
690 | 695 | | |
691 | 696 | | |
| |||
0 commit comments