Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WaitOne on ManualResetEvents can cause the shutdown to hang indefinitely #980
Customers having a large number of audit messages to clean up
Audit message cleaning can take a really long time and is currently not implemented with cancellation tokens to indicate to the chunker and cleaner that SC wants to shut down. In combination with the ManualResetEvent usage for example in ExpiredDocumentsCleanerBundle it can lead to issues where the shutdown takes hours or never occurs.
This also affects the setup phase of ServiceControl. RavenDB Embeddable Document Store will automatically load the expired documents cleaner bundle and execute it even during the setup phase. In this case, it is possible that the setup phase hangs indefinitely.
Things to consider