Skip to content

Commit f41f69b

Browse files
committed
Add why we set GracefulShutdownTimeout to Zero during dispose
1 parent 9a9d4ab commit f41f69b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceControl.RavenDB/EmbeddedDatabase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ public void Dispose()
221221

222222
if (EmbeddedServer.Instance != null)
223223
{
224+
// Set GracefulShutdownTimeout to Zero and exist ASAP, under normal operation instance would already
225+
// have been allowed to gracefully stop during "Stop" method.
224226
serverOptions!.GracefulShutdownTimeout = TimeSpan.Zero;
225227
Logger.Debug("Disposing RavenDB server");
226228
EmbeddedServer.Instance.Dispose();

0 commit comments

Comments
 (0)