ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [20/51] [abbrv] ambari git commit: AMBARI-14446. Ambari Server Unit Test failure on trunk (org.apache.ambari.server.bootstrap.BootStrapTest.testRun).(vbrodetskyi)
Date Wed, 23 Dec 2015 15:06:59 GMT
AMBARI-14446. Ambari Server Unit Test failure on trunk (org.apache.ambari.server.bootstrap.BootStrapTest.testRun).(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d4adc1a9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d4adc1a9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d4adc1a9

Branch: refs/heads/branch-dev-patch-upgrade
Commit: d4adc1a9fb2c28ca516f3c9911540db2eb5f2d78
Parents: 1ad5db1
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Mon Dec 21 17:12:23 2015 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Mon Dec 21 17:12:23 2015 +0200

----------------------------------------------------------------------
 .../ambari/server/bootstrap/BootStrapTest.java    | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d4adc1a9/ambari-server/src/test/java/org/apache/ambari/server/bootstrap/BootStrapTest.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/java/org/apache/ambari/server/bootstrap/BootStrapTest.java
b/ambari-server/src/test/java/org/apache/ambari/server/bootstrap/BootStrapTest.java
index 5fbad18..e4a385f 100644
--- a/ambari-server/src/test/java/org/apache/ambari/server/bootstrap/BootStrapTest.java
+++ b/ambari-server/src/test/java/org/apache/ambari/server/bootstrap/BootStrapTest.java
@@ -18,15 +18,8 @@
 
 package org.apache.ambari.server.bootstrap;
 
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Properties;
-
 import junit.framework.Assert;
 import junit.framework.TestCase;
-
 import org.apache.ambari.server.api.services.AmbariMetaInfo;
 import org.apache.ambari.server.bootstrap.BootStrapStatus.BSStat;
 import org.apache.ambari.server.configuration.Configuration;
@@ -38,6 +31,11 @@ import org.junit.Before;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
 
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Properties;
 
 /**
  * Test BootStrap Implementation.
@@ -97,11 +95,13 @@ public class BootStrapTest extends TestCase {
     BootStrapStatus status = impl.getStatus(response.getRequestId());
     LOG.info("Status " + status.getStatus());
     int num = 0;
-    while ((status.getStatus() == BSStat.RUNNING) && (num < 500)) {
+    while ((status.getStatus() == BSStat.RUNNING) && (num < 50)) {
       status = impl.getStatus(response.getRequestId());
-      Thread.sleep(100);
+      Thread.sleep(1000);
       num++;
     }
+    // to give a time for bootstrap thread to finish
+    Thread.sleep(5000);
     LOG.info("Status: log " + status.getLog() + " status=" + status.getStatus()
     );
     /* Note its an echo command so it should echo host1,host2 */


Mime
View raw message