Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 2.8.0
-
None
Description
I was playing around with _attribute_((warn_unused_result)) (IMPALA-2615) and found this:
void AttachPool(MemPool* pool, bool commit_batch) { DCHECK(scan_node_->HasRowBatchQueue()); DCHECK(batch_ != NULL); DCHECK(pool != NULL); batch_->tuple_data_pool()->AcquireData(pool, false); if (commit_batch) CommitRows(0); <== drops Status }
This may have been valid at some point in time, but can now leave the scanner in an unexpected state if allocating the new RowBatch fails.
BaseSequenceScanner::ProcessSplit() also drops the AddScanRanges() status.