You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/12/13 16:49:16 UTC

[GitHub] [pinot] walterddr commented on a diff in pull request #9956: [multistage] [observability] Add debugging log for mailbox service

walterddr commented on code in PR #9956:
URL: https://github.com/apache/pinot/pull/9956#discussion_r1047432457


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/mailbox/GrpcMailboxService.java:
##########
@@ -89,20 +92,27 @@ public int getMailboxPort() {
    * @param mailboxId the id of the mailbox.
    */
   public SendingMailbox<TransferableBlock> getSendingMailbox(MailboxIdentifier mailboxId) {
-    return _sendingMailboxMap.computeIfAbsent(mailboxId.toString(), (mId) -> new GrpcSendingMailbox(mId, this));
+    SendingMailbox<TransferableBlock> mailbox =
+        _sendingMailboxMap.computeIfAbsent(mailboxId.toString(), (mId) -> new GrpcSendingMailbox(mId, this));
+    LOGGER.trace("GrpcMailboxService sendingMailBox size:" + _sendingMailboxMap.size());
+    return mailbox;
   }
 
   /**
    * Register a mailbox, mailbox needs to be registered before use.
    * @param mailboxId the id of the mailbox.
    */
   public ReceivingMailbox<TransferableBlock> getReceivingMailbox(MailboxIdentifier mailboxId) {
-    return _receivingMailboxMap.computeIfAbsent(
+    ReceivingMailbox<TransferableBlock> mailbox = _receivingMailboxMap.computeIfAbsent(
         mailboxId.toString(), (mId) -> new GrpcReceivingMailbox(mId, this, _gotMailCallback));
+    LOGGER.trace("GrpcMailboxService receiving size:" + _receivingMailboxMap.size());
+    return mailbox;
   }
 
   public ManagedChannel getChannel(String mailboxId) {
-    return _channelManager.getChannel(Utils.constructChannelId(mailboxId));
+    ManagedChannel channel = _channelManager.getChannel(Utils.constructChannelId(mailboxId));
+    LOGGER.trace("GrpcMailboxService channel manager size:" + _channelManager.size());

Review Comment:
   why is this only logging the current size?



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org