Skip to content

Commit

Permalink
[kqp] improve logging on KQP shutdown (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmel1k authored Mar 19, 2024
1 parent 7e2db6f commit d8668b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ydb/core/kqp/common/shutdown/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ void TKqpShutdownController::Stop() {
++iteration;
spent = (TInstant::Now() - startedAt).SecondsFloat();
}
if (!ShutdownState_->ShutdownComplete()) {
Cerr << "Failed to gracefully shutdown KQP after " << timeout.Seconds() << " seconds: spent " << spent << " seconds, ";
Cerr << ShutdownState_->GetPendingSessions() << " sessions to shutdown left" << Endl;
}
}

} // namespace NKikimr::NKqp

0 comments on commit d8668b3

Please sign in to comment.