ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] ambari git commit: AMBARI-13698. python stack tests fail (aonishuk)
Date Tue, 03 Nov 2015 15:13:49 GMT
AMBARI-13698. python stack tests fail (aonishuk)


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

Branch: refs/heads/branch-2.1
Commit: eb7b2903fac171eca6ce8590c621e8177864015b
Parents: a1a1942
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Tue Nov 3 17:13:48 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Tue Nov 3 17:13:48 2015 +0200

----------------------------------------------------------------------
 .../src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py        | 2 ++
 .../src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py  | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/eb7b2903/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py b/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py
index 666a6ed..b60bb69 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_master.py
@@ -93,6 +93,7 @@ class TestHBaseMaster(RMFTestCase):
     )
     
     self.assertResourceCalled('Execute', '/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf
stop master',
+        only_if = 'ls /var/run/hbase/hbase-hbase-master.pid >/dev/null 2>&1 &&
ps -p `cat /var/run/hbase/hbase-hbase-master.pid` >/dev/null 2>&1',
         on_timeout = '! ( ls /var/run/hbase/hbase-hbase-master.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-master.pid` >/dev/null 2>&1 ) ||
ambari-sudo.sh -H -E kill -9 `cat /var/run/hbase/hbase-hbase-master.pid`',
         timeout = 30,
         user = 'hbase',
@@ -191,6 +192,7 @@ class TestHBaseMaster(RMFTestCase):
     )
 
     self.assertResourceCalled('Execute', '/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf
stop master',
+        only_if = 'ls /var/run/hbase/hbase-hbase-master.pid >/dev/null 2>&1 &&
ps -p `cat /var/run/hbase/hbase-hbase-master.pid` >/dev/null 2>&1',
         on_timeout = '! ( ls /var/run/hbase/hbase-hbase-master.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-master.pid` >/dev/null 2>&1 ) ||
ambari-sudo.sh -H -E kill -9 `cat /var/run/hbase/hbase-hbase-master.pid`',
         timeout = 30,
         user = 'hbase',

http://git-wip-us.apache.org/repos/asf/ambari/blob/eb7b2903/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py b/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py
index ff0929a..a29e58c 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_hbase_regionserver.py
@@ -66,6 +66,7 @@ class TestHbaseRegionServer(RMFTestCase):
     )
     
     self.assertResourceCalled('Execute', '/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf
stop regionserver',
+        only_if = 'ls /var/run/hbase/hbase-hbase-regionserver.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-regionserver.pid` >/dev/null 2>&1',
         on_timeout = '! ( ls /var/run/hbase/hbase-hbase-regionserver.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-regionserver.pid` >/dev/null 2>&1
) || ambari-sudo.sh -H -E kill -9 `cat /var/run/hbase/hbase-hbase-regionserver.pid`',
         timeout = 30,
         user = 'hbase',
@@ -114,6 +115,7 @@ class TestHbaseRegionServer(RMFTestCase):
     )
 
     self.assertResourceCalled('Execute', '/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf
stop regionserver',
+        only_if = 'ls /var/run/hbase/hbase-hbase-regionserver.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-regionserver.pid` >/dev/null 2>&1',
         on_timeout = '! ( ls /var/run/hbase/hbase-hbase-regionserver.pid >/dev/null 2>&1
&& ps -p `cat /var/run/hbase/hbase-hbase-regionserver.pid` >/dev/null 2>&1
) || ambari-sudo.sh -H -E kill -9 `cat /var/run/hbase/hbase-hbase-regionserver.pid`',
         timeout = 30,
         user = 'hbase',


Mime
View raw message