We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1de16d commit 7b99d9aCopy full SHA for 7b99d9a
1 file changed
programs/server/Server.cpp
@@ -1746,7 +1746,10 @@ try
1746
// to avoid simultaneously running table startups and destructing databases.
1747
SCOPE_EXIT_SAFE(
1748
LOG_INFO(log, "Stopping AsyncLoader.");
1749
- global_context->getAsyncLoader().stopAndDoNotWait(); // Note that currently running jobs will proceed
+
1750
+ // Waits for all currently running jobs to finish and do not run any other pending jobs.
1751
+ // Pending jobs will be canceled and destructed later by `load_metadata_tasks` dtor.
1752
+ global_context->getAsyncLoader().stop();
1753
);
1754
1755
try
0 commit comments