walterddr commented on code in PR #11205: URL: https://github.com/apache/pinot/pull/11205#discussion_r1280818049
########## pinot-query-runtime/src/main/java/org/apache/pinot/query/mailbox/ReceivingMailbox.java: ########## @@ -51,16 +52,30 @@ public class ReceivingMailbox { // TODO: Revisit if this is the correct way to apply back pressure private final BlockingQueue<TransferableBlock> _blocks = new ArrayBlockingQueue<>(DEFAULT_MAX_PENDING_BLOCKS); private final AtomicReference<TransferableBlock> _errorBlock = new AtomicReference<>(); + @Nullable + private volatile Reader _reader; public ReceivingMailbox(String id, Consumer<OpChainId> receiveMailCallback) { _id = id; _receiveMailCallback = receiveMailCallback; } + public void registeredReader(Reader reader) { + if (_reader != null) { + throw new IllegalArgumentException("Only one reader is supported"); + } + LOGGER.debug("==[MAILBOX]== Reader registered for mailbox {}", _id); Review Comment: should we clean up these debug msgs? otherwise the string eval still happens right? -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org