You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by kw...@apache.org on 2019/07/10 01:37:25 UTC
[impala] branch master updated: IMPALA-8744: Fix
test_session_expiration.py to work with Python 2.6
This is an automated email from the ASF dual-hosted git repository.
kwho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new 414b012 IMPALA-8744: Fix test_session_expiration.py to work with Python 2.6
414b012 is described below
commit 414b0122674c1b7cd7022df9d0d39d9b7401e48a
Author: Michael Ho <kw...@cloudera.com>
AuthorDate: Mon Jul 8 13:24:07 2019 -0700
IMPALA-8744: Fix test_session_expiration.py to work with Python 2.6
This patches fixes a formatting string to use "{0}" rather than "{}"
as Python 2.6 doesn't support "{}"
Testing done:
- Ran the test on Centos6 platform with Python 2.6
Change-Id: I3a914a9ca881181d47bee68641b9c7affbfc0d54
Reviewed-on: http://gerrit.cloudera.org:8080/13819
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
tests/custom_cluster/test_session_expiration.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/custom_cluster/test_session_expiration.py b/tests/custom_cluster/test_session_expiration.py
index 61b31d6..6103447 100644
--- a/tests/custom_cluster/test_session_expiration.py
+++ b/tests/custom_cluster/test_session_expiration.py
@@ -128,7 +128,7 @@ class TestSessionExpiration(CustomClusterTestSuite):
for protocol in ['beeswax', 'hiveserver2']:
num_expired = impalad.service.get_metric_value("impala-server.num-sessions-expired")
num_connections_metrics_name = \
- "impala.thrift-server.{}-frontend.connections-in-use".format(protocol)
+ "impala.thrift-server.{0}-frontend.connections-in-use".format(protocol)
num_connections = impalad.service.get_metric_value(num_connections_metrics_name)
# Connect to Impala using either beeswax or HS2 client and verify the number of