def _wait_for_num_open_sessions(self, vector, impala_service, expected, err):
   """Helper method to wait for the number of open sessions to reach 'expected'."""
   metric_name = get_open_sessions_metric(vector)
   try:
     actual = impala_service.wait_for_metric_value(metric_name, expected)
   except AssertionError:
     LOG.exception("Error: " % err)
     raise
   assert actual == expected, err
Exemple #2
0
 def _wait_for_num_open_sessions(self, vector, impala_service, num, err):
     """Helper method to wait for the number of open sessions to reach 'num'."""
     metric_name = get_open_sessions_metric(vector)
     assert impala_service.wait_for_metric_value(metric_name,
                                                 num) == num, err
 def wait_for_num_open_sessions(impala_service, num, err):
   """Helper method to wait for the number of open sessions to reach 'num'."""
   metric_name = get_open_sessions_metric(vector)
   assert impala_service.wait_for_metric_value(metric_name, num) == num, err