You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ww...@apache.org on 2019/02/24 15:01:44 UTC

[hadoop] branch branch-3.1 updated: YARN-9316. TestPlacementConstraintsUtil#testInterAppConstraintsByAppID fails intermittently. Contributed by Prabhu Joseph.

This is an automated email from the ASF dual-hosted git repository.

wwei pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new dab22e7  YARN-9316. TestPlacementConstraintsUtil#testInterAppConstraintsByAppID fails intermittently. Contributed by Prabhu Joseph.
dab22e7 is described below

commit dab22e74a4258ab9f0e0b4971971ece9043ca827
Author: Weiwei Yang <ww...@apache.org>
AuthorDate: Sun Feb 24 22:42:27 2019 +0800

    YARN-9316. TestPlacementConstraintsUtil#testInterAppConstraintsByAppID fails intermittently. Contributed by Prabhu Joseph.
    
    (cherry picked from commit 9cd5c5447f008b38be43b21ca596d8a36ad0cd55)
---
 .../scheduler/constraint/TestPlacementConstraintsUtil.java         | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementConstraintsUtil.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementConstraintsUtil.java
index 5dbdc8a..2aa9971 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementConstraintsUtil.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementConstraintsUtil.java
@@ -874,6 +874,8 @@ public class TestPlacementConstraintsUtil {
 
     long ts = System.currentTimeMillis();
     ApplicationId application1 = BuilderUtils.newApplicationId(ts, 123);
+    ApplicationId application2 = BuilderUtils.newApplicationId(ts, 124);
+    ApplicationId application3 = BuilderUtils.newApplicationId(ts, 125);
 
     // Register App1 with anti-affinity constraint map.
     RMNode n0r1 = rmNodes.get(0);
@@ -917,8 +919,6 @@ public class TestPlacementConstraintsUtil {
     srcTags2.add("app2");
     constraintMap.put(srcTags2, constraint2);
 
-    ts = System.currentTimeMillis();
-    ApplicationId application2 = BuilderUtils.newApplicationId(ts, 124);
     pcm.registerApplication(application2, constraintMap);
 
     // Anti-affinity with app1/hbase-m so it should not be able to be placed
@@ -947,10 +947,7 @@ public class TestPlacementConstraintsUtil {
     srcTags3.add("app3");
     constraintMap.put(srcTags3, constraint3);
 
-    ts = System.currentTimeMillis();
-    ApplicationId application3 = BuilderUtils.newApplicationId(ts, 124);
     pcm.registerApplication(application3, constraintMap);
-
     /**
      * Place container:
      *  n0: app1/hbase-m(1), app3/hbase-m


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org