gortiz commented on code in PR #16560:
URL: https://github.com/apache/pinot/pull/16560#discussion_r2269366430


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/mailbox/MailboxService.java:
##########
@@ -78,7 +81,18 @@ public MailboxService(String hostname, int port, 
PinotConfiguration config, @Nul
     _port = port;
     _config = config;
     _tlsConfig = tlsConfig;
-    _channelManager = new ChannelManager(tlsConfig);
+    long pingerPeriodMs = config.getProperty(
+        CommonConstants.MultiStageQueryRunner.KEY_OF_PINGER_PERIOD_SECONDS,
+        CommonConstants.MultiStageQueryRunner.DEFAULT_PINGER_PERIOD_SECONDS);
+    Duration pingerPeriod = Duration.ofSeconds(pingerPeriodMs);
+
+    _channelManager = new ChannelManager(tlsConfig, pingerPeriod);
+
+    if (pingerPeriodMs > 0) {

Review Comment:
   We are going to ping every `pingerPeriodMs`. We don't track last grpc call 
and TBH doesn't seem useful. A ping is a super simple and cheap request.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to