Quanlong Huang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24288
Change subject: IMPALA-12679: Deflake rpc_count check in TestFetch.test_rows_sent_counters ...................................................................... IMPALA-12679: Deflake rpc_count check in TestFetch.test_rows_sent_counters The test expects the RPCCount in profile is in range of [5, 9]. However, in parallel e2e tests the cluster is busy. The query needs more time to run into the FINISHED state, which leads to the client (test code) sends more GetOperationStatus RPCs to check the query state. The total number of RPCs could exceed 9. To count the RPCs, this patch improves wait_for_impala_state() to also return the number of state checks that have been performed. Also saves one RPC from get_runtime_profile() by using the runtime_profile in fetch result directly. The expected rpc_count is num_state_checks + 5. The additional 5 RPCs are GetResultSetMetadata, FetchResults * 2, GetLog, GetRuntimeProfile. Note that Impyla (0.21a3) uses two FetchResults RPCs to fetch the results. It doesn't check hasMoreRows=false in the response of the first FetchResults, so sends an additional FetchResults to get an empty batch then stop. Testing - Ran TestFetch.test_rows_sent_counters 20 times. - Ran tests in custom_cluster/test_admission_controller.py and custom_cluster/test_events_custom_configs.py that use wait_for_any_impala_state() Change-Id: Icb790895e4ed31eda0b858fb6f1484eca401af73 --- M tests/common/impala_connection.py M tests/custom_cluster/test_admission_controller.py M tests/custom_cluster/test_events_custom_configs.py M tests/query_test/test_fetch.py 4 files changed, 16 insertions(+), 9 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/88/24288/1 -- To view, visit http://gerrit.cloudera.org:8080/24288 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Icb790895e4ed31eda0b858fb6f1484eca401af73 Gerrit-Change-Number: 24288 Gerrit-PatchSet: 1 Gerrit-Owner: Quanlong Huang <[email protected]>
