Skip to content

Commit c3af9cb

Browse files
shmel1kSammyVimes
authored andcommitted
[kqp] improve logging on KQP shutdown (ydb-platform#2927) (ydb-platform#2929)
1 parent ebf638f commit c3af9cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/core/kqp/common/shutdown/controller.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ void TKqpShutdownController::Stop() {
4040
++iteration;
4141
spent = (TInstant::Now() - startedAt).SecondsFloat();
4242
}
43+
if (!ShutdownState_->ShutdownComplete()) {
44+
Cerr << "Failed to gracefully shutdown KQP after " << timeout.Seconds() << " seconds: spent " << spent << " seconds, ";
45+
Cerr << ShutdownState_->GetPendingSessions() << " sessions to shutdown left" << Endl;
46+
}
4347
}
4448

4549
} // namespace NKikimr::NKqp

0 commit comments

Comments
 (0)