mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
Impalad crash (hitting DCHECK) when both enable_workload_mgmt and gen_experimental_profile enabled. This is because lambda function process_exec_profile expect "Averaged Fragment" node exist in query profile. But it is actually not exist in V2 query profile. This patch fix the issue by gathering ScratchBytesWritten, ScannerIoWaitTime, and DataCacheHitBytes counters differently in V2 profile. Testing: - Add TestQueryLogTableHS2::test_with_experimental_profile. - Manually start minicluster with both enable_workload_mgmt and gen_experimental_profile flag enabled. Run few queries and confirm no crash happen. Also verify that the columns of sys.impala_query_log that summarize the scan node counters are correct. Change-Id: Iccb4ad9279b0d66479b1e7816ffc732028e71734 Reviewed-on: http://gerrit.cloudera.org:8080/23396 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>