mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
IMPALA-14103: Fix TestAdmissionControllerStress on Python 3
TestAdmissionControllerStress has an invalid except clause where it catches Exception as well as ImpalaHiveServer2Service. This is an error on Python 3, because ImpalaHiveServer2Service is not an exception class. This changes the except clause to only cause Exception. Testing: - Ran TestAdmissionControllerStress locally Change-Id: Iefe9306cd6b76bd27ca5be1d62b05aff1e5deafe Reviewed-on: http://gerrit.cloudera.org:8080/22954 Reviewed-by: Riza Suminto <riza.suminto@cloudera.com> Tested-by: Joe McDonnell <joemcdonnell@cloudera.com>
This commit is contained in:
@@ -2613,7 +2613,7 @@ class TestAdmissionControllerStress(TestAdmissionControllerBase):
|
||||
# try fetch and confirm from exception message that query was timed out.
|
||||
client.fetch(query, query_handle, discard_results=True)
|
||||
assert False
|
||||
except (Exception, ImpalaHiveServer2Service) as e:
|
||||
except Exception as e:
|
||||
assert 'expired due to client inactivity' in str(e)
|
||||
elif self.query_end_behavior == 'EOS':
|
||||
# Fetch all rows so we hit eos.
|
||||
|
||||
Reference in New Issue
Block a user