Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/24778 )

Change subject: IMPALA-14399: Fix crash after HdfsScanner::Open error
......................................................................

IMPALA-14399: Fix crash after HdfsScanner::Open error

If HdfsScanner::Open returns an error status, such as if the query has
exceeded its memory limit during ScalarExprEvaluator::Clone,
scratch_mem_* profile counters aren't initialized and CloseInternal
crashes trying to call Merge on them.

Initializes the pointers nullptr and only calls Merge if they've had
counters assigned.

Change-Id: Ifea6d0b4c4908ebc44ec45bcaff858f3066fb8f5
Reviewed-on: http://gerrit.cloudera.org:8080/24778
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M be/src/exec/hdfs-columnar-scanner.cc
M be/src/exec/hdfs-columnar-scanner.h
2 files changed, 18 insertions(+), 14 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/24778
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifea6d0b4c4908ebc44ec45bcaff858f3066fb8f5
Gerrit-Change-Number: 24778
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to