61yao commented on code in PR #10099:
URL: https://github.com/apache/pinot/pull/10099#discussion_r1072518581


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/mailbox/channel/MailboxContentStreamObserver.java:
##########
@@ -75,7 +98,9 @@ public MailboxContentStreamObserver(GrpcMailboxService 
mailboxService,
       StreamObserver<Mailbox.MailboxStatus> responseObserver, boolean 
isEnabledFeedback) {
     _mailboxService = mailboxService;
     _responseObserver = responseObserver;
-    _receivingBuffer = new 
ArrayBlockingQueue<>(DEFAULT_MAILBOX_QUEUE_CAPACITY);
+    // TODO: Replace unbounded queue with bounded queue when we have 
backpressure in place.
+    // It is possible this will create high memory pressure since we have 
memory leak issues.
+    _receivingBuffer = new LinkedBlockingQueue();

Review Comment:
   I added returning error code to make sure we are not returning wrong 
result... 
   
   but we are not able to finish the query and returning error most of the time 
as long as data load is large. we have observed this issue a lot in our testing 
environment. 
   
   Also as said in the PR description, this is a temp fix. We need backpressure 
and memory leak fix in place, which I am working on, to fix the underlying 
problem.



-- 
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