Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 3.2.0
-
None
-
None
-
ghx-label-8
Description
Brief
CustomClusterTestSuite always waits for 3 daemons on startup instead of cluster_size daemons when impala_log_dir is specified.
Description
The @CustomClusterTestSuite.withArgs decorator allows a user to specify a custom cluster size for the test case being decorated. However, when this option is specified in conjunction with impala_log_dir, it will fail to wait for the correct number of daemons if any value other than DEFAULT_CLUSTER_SIZE is used.
The root cause is the difference in how the cluster is started with and without impala_log_dir: https://github.com/apache/impala/blob/3.2.0/tests/common/custom_cluster_test_suite.py#L147
To Reproduce:
- add cluster_size=5 to decorator of test_grant_revoke in tests/authorization/test_ranger.py
- $ impala-py.test tests/authorization/test_ranger.py
- observe pass
- add impala_log_dir=whatev to decorator of test_grant_revoke
- $ impala-py.test tests/authorization/test_ranger.py
- observe fail during cluster startup:
- 2019-04-04 14:25:54,140 INFO MainThread: Waiting for num_known_live_backends=3. Current value: 5