YARN-6965. Duplicate instantiation in FairSchedulerQueueInfo. Contributed by Masahiro Tanaka.

(cherry picked from commit 588c190afd)
(cherry picked from commit a28a3dc8f2)
This commit is contained in:
Akira Ajisaka 2017-08-16 14:06:22 +09:00
parent a611922de4
commit 2b92c1be04
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 0 additions and 1 deletions

View File

@ -87,7 +87,6 @@ public class FairSchedulerQueueInfo {
steadyFairResources = new ResourceInfo(queue.getSteadyFairShare());
fairResources = new ResourceInfo(queue.getFairShare());
minResources = new ResourceInfo(queue.getMinShare());
maxResources = new ResourceInfo(queue.getMaxShare());
maxResources = new ResourceInfo(
Resources.componentwiseMin(queue.getMaxShare(),
scheduler.getClusterResource()));