-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce interrupt and retry handling to initial definition sync. (#321
) * Introduce interrupt and retry handling to initial definition sync. We have been quite good with regards to handling interrupts / SIGTERMs almost from the very start in MSD. However, a small oversight with regards to initial sync caused #314 , which in turn causes the daemon to freeze upon shutdown if any definition failed its initial sync. The root cause is that the thread terminates on its own, not polling its end of the ender channel used to shut it down. This PR fixes the issue. In addition to that, we now also retry initial syncs just as failed incremental syncs are retried. This adds robustness in the face of temporary network outages just as MSD is starting to execute. * Commit clippy simplification making tests not pass.
- Loading branch information
1 parent
b8bb7e0
commit b2bdd05
Showing
2 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters