mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
IMPALA-13987: Fix stress_catalog_init_delay_ms check in RELEASE
stress_catalog_init_delay_ms does not exist in RELEASE build and causing KeyError in impala_cluster.py. This patch fix it by specifying default value when inspecting ImpaladService.get_flag_current_values() return value. Testing: Run start-impala-cluster.py in RELEASE build and it works. Change-Id: Ia4400a7e711d21d23cc37878f18f2e0389b741b0 Reviewed-on: http://gerrit.cloudera.org:8080/22803 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
6ec2fb0210
commit
0816986b15
@@ -246,11 +246,11 @@ class ImpalaCluster(object):
|
||||
for impalad in self.impalads:
|
||||
# lookup /varz page. webserver should up already.
|
||||
flags = impalad.service.get_flag_current_values()
|
||||
if flags['is_coordinator'] != 'true':
|
||||
if flags.get('is_coordinator', 'true') != 'true':
|
||||
continue
|
||||
if flags['stress_catalog_init_delay_ms'] != '0':
|
||||
if flags.get('stress_catalog_init_delay_ms', '0') != '0':
|
||||
continue
|
||||
if flags['use_local_catalog'] != 'false':
|
||||
if flags.get('use_local_catalog', 'false') != 'false':
|
||||
wait_num_table = -1
|
||||
impalad.wait_for_coordinator_services(sleep_interval, check_processes_still_running,
|
||||
wait_num_table=wait_num_table)
|
||||
|
||||
Reference in New Issue
Block a user