MAPREDUCE-5522. Incorrect oreder expected from JobQueueInfo (Jinghui Wang via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1525670 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
be565473da
commit
743d8ae055
|
@ -178,6 +178,9 @@ Release 2.3.0 - UNRELEASED
|
|||
MAPREDUCE-5404. HSAdminServer does not use ephemeral ports in minicluster
|
||||
mode (Ted Yu via jlowe)
|
||||
|
||||
MAPREDUCE-5522. Incorrect oreder expected from JobQueueInfo (Jinghui Wang
|
||||
via bobby)
|
||||
|
||||
Release 2.2.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -128,10 +128,15 @@ public class TestQueue {
|
|||
assertEquals(secondSubQueue.getJobQueueInfo().getChildren().size(), 0);
|
||||
// test
|
||||
assertEquals(manager.getSchedulerInfo("first"), "queueInfo");
|
||||
assertEquals(manager.getJobQueueInfos()[0].getQueueName(), secondSubQueue
|
||||
.getJobQueueInfo().getQueueName());
|
||||
assertEquals(manager.getJobQueueInfos()[1].getQueueName(), firstSubQueue
|
||||
.getJobQueueInfo().getQueueName());
|
||||
Set<String> queueJobQueueInfos = new HashSet<String>();
|
||||
for(JobQueueInfo jobInfo : manager.getJobQueueInfos()){
|
||||
queueJobQueueInfos.add(jobInfo.getQueueName());
|
||||
}
|
||||
Set<String> rootJobQueueInfos = new HashSet<String>();
|
||||
for(Queue queue : root.getChildren()){
|
||||
rootJobQueueInfos.add(queue.getJobQueueInfo().getQueueName());
|
||||
}
|
||||
assertEquals(queueJobQueueInfos, rootJobQueueInfos);
|
||||
// test getJobQueueInfoMapping
|
||||
assertEquals(
|
||||
manager.getJobQueueInfoMapping().get("first").getQueueName(), "first");
|
||||
|
|
Loading…
Reference in New Issue