Joe McDonnell has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/16672 )

Change subject: IMPALA-10267: Impala crashes in 
HdfsScanner::WriteTemplateTuples() with negative num_tuples
......................................................................

IMPALA-10267: Impala crashes in HdfsScanner::WriteTemplateTuples() with 
negative num_tuples

This fix enhances method HdfsAvroScanner::ProcessRange() with a DCHECK()
to help catch negative num_tuples. The DCHEK() specifically checks that
num_records_in_block_ is always greater than record_pos_.

Testing:
1. Unit testing.

Change-Id: If88fd3aa4c96a69e37d060031f7432d27d069c62
Reviewed-on: http://gerrit.cloudera.org:8080/16672
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Joe McDonnell <[email protected]>
---
M be/src/exec/hdfs-avro-scanner.cc
1 file changed, 1 insertion(+), 0 deletions(-)

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

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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If88fd3aa4c96a69e37d060031f7432d27d069c62
Gerrit-Change-Number: 16672
Gerrit-PatchSet: 3
Gerrit-Owner: Qifan Chen <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>

Reply via email to