Skip to content

Commit 7023b13

Browse files
authored
[kqp] improve logging on KQP shutdown (#2927) (#2929)
1 parent 9a7d761 commit 7023b13

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)