Fang-Yu Rao has posted comments on this change. ( https://gerrit.cloudera.org/25634 )
Change subject: IMPALA-15902: Fix crash on a stale scratch batch in late materialization ...................................................................... Patch Set 1: Code-Review+1 Thanks a lot for preparing the fix so promptly Zoltan! Not knowing too much about the related code paths, I did the following to verify the patch. - Removed the three resets (tuple_idx, num_tuples, num_tuples_transferred) in ScratchTupleBatch::ReleaseResources() in be/src/exec/scratch-tuple-batch.h, ran test_collection_stops_in_partial_scratch_batch() after compiling Impala. This triggered a crash. - Further removed that parse_status_.MergeStatus() line in KeepAssemblingCollection(), ran test_cancel_in_partial_scratch_batch() after compiling Impala again. This triggered another crash due to parse_status_ not being set to CANCELLED_INTERNALLY, so GetNextInternal() kept running. In both crashes, I could see we hit the DCHECK at https://gerrit.cloudera.org/c/25634/1/be/src/exec/parquet/hdfs-parquet-scanner.cc#531 with the following stack trace. 14 impalad!impala::HdfsParquetScanner::GetNextInternal(impala::RowBatch*) [hdfs-parquet-scanner.cc : 531 + 0xc] 15 impalad!impala::HdfsParquetScanner::ProcessSplit() [hdfs-parquet-scanner.cc : 459 + 0x14] 16 impalad!impala::HdfsScanNode::ProcessSplit(std::vector<impala::FilterContext, std::allocator<impala::FilterContext> > const&, impala::MemPool*, impala::io::ScanRange*, long*) [hdfs-scan-node.cc : 511 + 0xa] 17 impalad!impala::HdfsScanNode::ScannerThread(bool, long) [hdfs-scan-node.cc : 429 + 0x1d] I need more time to get the full picture of this subtle bug, but I don't mind if you bump up the vote, since this is a critical fix. Of course, another pair of fresh eyes are also welcomed. -- To view, visit https://gerrit.cloudera.org/25634 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic023cb0cc751d7342a37f9e37ec27182a0ee1120 Gerrit-Change-Number: 25634 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Mihaly Szjatinya <[email protected]> Gerrit-Comment-Date: Sat, 28 Nov 2026 01:09:29 +0000 Gerrit-HasComments: No
