We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccfeb7a + 7da5730 commit 9586d38Copy full SHA for 9586d38
ydb/library/grpc/server/grpc_server.cpp
@@ -210,13 +210,16 @@ void TGRpcServer::Stop() {
210
break;
211
212
auto spent = (TInstant::Now() - now).SecondsFloat();
213
- if (attempt % 300 == 0) {
+ if ((attempt + 1) % 300 == 0) {
214
// don't log too much
215
Cerr << "GRpc shutdown warning: left infly: " << infly << ", spent: " << spent << " sec" << Endl;
216
}
217
218
- if (!unsafe && spent > Options_.GRpcShutdownDeadline.SecondsFloat())
+ if (!unsafe && spent > Options_.GRpcShutdownDeadline.SecondsFloat()) {
219
+ Cerr << "GRpc shutdown warning: failed to shutdown all connections, left infly: " << infly << ", spent: " << spent << " sec"
220
+ << Endl;
221
222
+ }
223
Sleep(TDuration::MilliSeconds(10));
224
225
0 commit comments