MAPREDUCE-3651. TestQueueManagerRefresh fails. (Thomas Graves via mahadev) - Merging r1230292 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1230295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ce3c818eb
commit
4c4a0f4f6c
|
@ -407,6 +407,9 @@ Release 0.23.1 - Unreleased
|
||||||
authenticated. (mahadev)
|
authenticated. (mahadev)
|
||||||
|
|
||||||
MAPREDUCE-3648. TestJobConf failing. (Thomas Graves via mahadev)
|
MAPREDUCE-3648. TestJobConf failing. (Thomas Graves via mahadev)
|
||||||
|
|
||||||
|
MAPREDUCE-3651. TestQueueManagerRefresh fails. (Thomas Graves via mahadev)
|
||||||
|
|
||||||
Release 0.23.0 - 2011-11-01
|
Release 0.23.0 - 2011-11-01
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1031,11 +1031,25 @@ public class JobClient extends CLI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private JobQueueInfo getJobQueueInfo(QueueInfo queue) {
|
||||||
|
JobQueueInfo ret = new JobQueueInfo(queue);
|
||||||
|
// make sure to convert any children
|
||||||
|
if (queue.getQueueChildren().size() > 0) {
|
||||||
|
List<JobQueueInfo> childQueues = new ArrayList<JobQueueInfo>(queue
|
||||||
|
.getQueueChildren().size());
|
||||||
|
for (QueueInfo child : queue.getQueueChildren()) {
|
||||||
|
childQueues.add(getJobQueueInfo(child));
|
||||||
|
}
|
||||||
|
ret.setChildren(childQueues);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
private JobQueueInfo[] getJobQueueInfoArray(QueueInfo[] queues)
|
private JobQueueInfo[] getJobQueueInfoArray(QueueInfo[] queues)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
JobQueueInfo[] ret = new JobQueueInfo[queues.length];
|
JobQueueInfo[] ret = new JobQueueInfo[queues.length];
|
||||||
for (int i = 0; i < queues.length; i++) {
|
for (int i = 0; i < queues.length; i++) {
|
||||||
ret[i] = new JobQueueInfo(queues[i]);
|
ret[i] = getJobQueueInfo(queues[i]);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class JobQueueInfo extends QueueInfo {
|
||||||
public List<JobQueueInfo> getChildren() {
|
public List<JobQueueInfo> getChildren() {
|
||||||
List<JobQueueInfo> list = new ArrayList<JobQueueInfo>();
|
List<JobQueueInfo> list = new ArrayList<JobQueueInfo>();
|
||||||
for (QueueInfo q : super.getQueueChildren()) {
|
for (QueueInfo q : super.getQueueChildren()) {
|
||||||
list.add(new JobQueueInfo(q));
|
list.add((JobQueueInfo)q);
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue