Csaba Ringhofer has posted comments on this change. ( 
https://gerrit.cloudera.org/25472 )

Change subject: IMPALA-15326: Share exchange queue memory budget
......................................................................


Patch Set 2:

(2 comments)

Thx for working on this, the lowered estimates look much more realistic.

https://gerrit.cloudera.org/#/c/25472/2/fe/src/main/java/org/apache/impala/planner/ExchangeNode.java
File fe/src/main/java/org/apache/impala/planner/ExchangeNode.java:

https://gerrit.cloudera.org/#/c/25472/2/fe/src/main/java/org/apache/impala/planner/ExchangeNode.java@368
PS2, Line 368:     long rowBatchSize = getRowBatchSize(queryOptions);
             :     if (rowsReachingQueues > 0) rowBatchSize = 
Math.min(rowBatchSize, rowsReachingQueues);
             :     long avgRowBatchByteSize =
             :         Math.min((long) Math.ceil(rowBatchSize * 
getAvgDeserializedRowSize()),
             :             ROWBATCH_MAX_MEM_USAGE);
This seems only valid for merging exchange / broadcast, but not for partitioned 
exchanges, where data_stream_sender_buffer_size governs the size of batches 
sent. This probably doesn't matter as maxQueueByteSize should be bigger in the 
"max" below in these cases, as numQueues will be 1.


https://gerrit.cloudera.org/#/c/25472/2/fe/src/test/java/org/apache/impala/planner/ExchangeNodeTest.java
File fe/src/test/java/org/apache/impala/planner/ExchangeNodeTest.java:

https://gerrit.cloudera.org/#/c/25472/2/fe/src/test/java/org/apache/impala/planner/ExchangeNodeTest.java@87
PS2, Line 87:   private final boolean merging_;
Bit bigger change, but collecting these params to a nested class in 
ExchangeNode could help in cleaning up ExchangeNode and the test - ExchangeNode 
could build up this class and use a static function to calculate estimate, that 
could be tested. IMO at the moment both ExchangeNode and this test are hard to 
read, and existing PlannerTests already give a basic coverage.



--
To view, visit https://gerrit.cloudera.org/25472
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I15be0985b45321dde9d6f0913188ef5f96088f82
Gerrit-Change-Number: 25472
Gerrit-PatchSet: 2
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Comment-Date: Wed, 18 Nov 2026 18:45:17 +0000
Gerrit-HasComments: Yes

Reply via email to