Hello Michael Ho, Tim Armstrong, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/12746
to look at the new patch set (#3).
Change subject: IMPALA-8299: Fix crash in GroupingAggregator on uninited hash
table
......................................................................
IMPALA-8299: Fix crash in GroupingAggregator on uninited hash table
If HashTable::Init() fails, in some cases we may try to call
HashTable::Close() on the table in GroupingAggregator::Close(), which
can cause a crash.
The solution is to set the hash table to a nullptr if Init() fails.
I also verified that the other use of HashTable, PhjBuilder, handles
this case correctly.
Testing:
- Manually verified that the crash no longer occurs if HashTable::Init
fails.
Change-Id: I381657c43f93eb4871b93d54532cb886198fd0b2
---
M be/src/exec/grouping-aggregator-partition.cc
M be/src/exec/grouping-aggregator.h
2 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/46/12746/3
--
To view, visit http://gerrit.cloudera.org:8080/12746
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I381657c43f93eb4871b93d54532cb886198fd0b2
Gerrit-Change-Number: 12746
Gerrit-PatchSet: 3
Gerrit-Owner: Thomas Marshall <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Ho <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>