ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [38/50] [abbrv] ambari git commit: AMBARI-13698. python stack tests fail (aonishuk)
Date Wed, 04 Nov 2015 13:37:05 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/8aba9a4d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8aba9a4d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8aba9a4d

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 8aba9a4d6802c8cceb441e9e2af49c11cbbf2826
Parents: d501a38
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Tue Nov 3 17:13:46 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Tue Nov 3 17:13:46 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/8aba9a4d/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 65864c8..e002008 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/8aba9a4d/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 b377e9b..51d2af8 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