Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Should use setCurrentCapacity instead of setCapacity to configure used resource capacity for FairScheduler.
In function getQueueInfo of FSQueue.java, we call setCapacity twice with different parameters so the first call is overrode by the second call.
queueInfo.setCapacity((float) getFairShare().getMemory() /
scheduler.getClusterResource().getMemory());
queueInfo.setCapacity((float) getResourceUsage().getMemory() /
scheduler.getClusterResource().getMemory());
We should change the second setCapacity call to setCurrentCapacity to configure the current used capacity.