sohami commented on a change in pull request #1762: [DRILL-7191 / DRILL-7026]:
RM state blob persistence in Zookeeper and Integration of Distributed queue
configuration with Planner
URL: https://github.com/apache/drill/pull/1762#discussion_r279988964
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/planner/fragment/MemoryCalculator.java
##########
@@ -46,35 +47,37 @@
private final PlanningSet planningSet;
// List of all the buffered operators and their memory requirement per
drillbit.
- private final Map<DrillbitEndpoint, List<Pair<PhysicalOperator, Long>>>
bufferedOperators;
+ private final Map<DrillNode, List<Pair<PhysicalOperator, Long>>>
bufferedOperators;
private final QueryContext queryContext;
+ private final long MINIMUM_MEMORY_FOR_BUFFER_OPERS;
- public MemoryCalculator(PlanningSet planningSet, QueryContext context) {
+ public MemoryCalculator(PlanningSet planningSet, QueryContext context, long
minMemory) {
this.planningSet = planningSet;
this.bufferedOperators = new HashMap<>();
this.queryContext = context;
+ this.MINIMUM_MEMORY_FOR_BUFFER_OPERS = minMemory;
}
// Helper method to compute the minor fragment count per drillbit. This
method returns
// a map with key as DrillbitEndpoint and value as the width (i.e
#minorFragments)
Review comment:
key as `DrillNode`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services