Repository: incubator-eagle Updated Branches: refs/heads/master 50ddd604c -> d61d34698
[EAGLE-565] Because of the "type" field when has subqueue ,response of RM REST API doesnât match the SchedulerWrapper object EAGLE-565 Because of the "type" field when has subqueue ,response of RM REST API doesnât match the SchedulerWrapper object - Ignore and add comments on the "type" field in class Queue, in order to workaround YARN-4785 https://issues.apache.org/jira/browse/EAGLE-565 Author: chitin <chitin1...@gmail.com> Closes #455 from chitin/master565. Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/d61d3469 Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/d61d3469 Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/d61d3469 Branch: refs/heads/master Commit: d61d3469822dfae3a85d6b796d135f68d58dd0ba Parents: 50ddd60 Author: chitin <chitin1...@gmail.com> Authored: Wed Sep 28 18:01:47 2016 +0800 Committer: Zhao, Qingwen <qingwz...@ebay.com> Committed: Wed Sep 28 18:01:47 2016 +0800 ---------------------------------------------------------------------- .../eagle/hadoop/queue/model/scheduler/Queue.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/d61d3469/eagle-jpm/eagle-hadoop-queue/src/main/java/org/apache/eagle/hadoop/queue/model/scheduler/Queue.java ---------------------------------------------------------------------- diff --git a/eagle-jpm/eagle-hadoop-queue/src/main/java/org/apache/eagle/hadoop/queue/model/scheduler/Queue.java b/eagle-jpm/eagle-hadoop-queue/src/main/java/org/apache/eagle/hadoop/queue/model/scheduler/Queue.java index 550c9d5..8fa57e4 100644 --- a/eagle-jpm/eagle-hadoop-queue/src/main/java/org/apache/eagle/hadoop/queue/model/scheduler/Queue.java +++ b/eagle-jpm/eagle-hadoop-queue/src/main/java/org/apache/eagle/hadoop/queue/model/scheduler/Queue.java @@ -24,7 +24,7 @@ import org.codehaus.jackson.map.annotate.JsonSerialize; @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class Queue { - private String type; + //private String type; workaround the YARN-4785,the field's value is based on the "type" field of SchedulerInfo.java, then its getter and setter function is never used. private double capacity; private double usedCapacity; private double maxCapacity; @@ -122,13 +122,13 @@ public class Queue { } - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } + // public String getType() { + // return type; + // } + // + // public void setType(String type) { + // this.type = type; + // } public ResourcesUsed getResourcesUsed() { return resourcesUsed;