Skip to content

Flaky test: CountIfAggregationTest - Reason: Tried to read 875705136 bytes, larger than what's remained in source 2404 bytes. Source details: file (offset 2.44KB/size 2.44KB) current (position 95B/ size 2.44KB) #16901

@mbasmanova

Description

@mbasmanova

Bug description

https://github.com/facebookincubator/velox/actions/runs/23499006573/job/68388496658

2026-03-24T16:34:41.4855156Z [----------] 6 tests from CountIfAggregationTest
2026-03-24T16:34:41.4855530Z [ RUN      ] CountIfAggregationTest.countIfConst
2026-03-24T16:34:41.4855844Z [       OK ] CountIfAggregationTest.countIfConst (141 ms)
2026-03-24T16:34:41.4856197Z [ RUN      ] CountIfAggregationTest.oneAggregateSingleGroup
2026-03-24T16:34:41.4857038Z [       OK ] CountIfAggregationTest.oneAggregateSingleGroup (45 ms)
2026-03-24T16:34:41.4857699Z [ RUN      ] CountIfAggregationTest.oneAggregateMultipleGroups
2026-03-24T16:34:41.4859001Z E20260324 16:34:25.246307 71919 Exceptions.h:87] Line: /__w/velox/velox/velox/serializers/PrestoSerializer.cpp:53, Function:computeChecksum, Expression:  Tried to read 875705136 bytes, larger than what's remained in source 2404 bytes. Source details: file (offset 2.44KB/size 2.44KB) current (position 95B/ size 2.44KB), Source: RUNTIME, ErrorCode: INVALID_STATE
2026-03-24T16:34:41.4860163Z unknown file: Failure
2026-03-24T16:34:41.4860442Z C++ exception with description "Exception: VeloxRuntimeError
2026-03-24T16:34:41.4860740Z Error Source: RUNTIME
2026-03-24T16:34:41.4860938Z Error Code: INVALID_STATE
2026-03-24T16:34:41.4861498Z Reason: Tried to read 875705136 bytes, larger than what's remained in source 2404 bytes. Source details: file (offset 2.44KB/size 2.44KB) current (position 95B/ size 2.44KB)
2026-03-24T16:34:41.4862101Z Retriable: False
2026-03-24T16:34:41.4862313Z Context: Operator: Aggregation[4] 1
2026-03-24T16:34:41.4862562Z Function: computeChecksum
2026-03-24T16:34:41.4863091Z File: /__w/velox/velox/velox/serializers/PrestoSerializer.cpp
2026-03-24T16:34:41.4863534Z Line: 53
2026-03-24T16:34:41.4863767Z Stack trace:
2026-03-24T16:34:41.4864095Z # 0  _ZN8facebook5velox7process10StackTraceC1Ei
2026-03-24T16:34:41.4865027Z # 1  _ZN8facebook5velox14VeloxExceptionC1EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bNS0_24CompileTimeStringLiteralENS1_4TypeES7_
2026-03-24T16:34:41.4866722Z # 2  _ZN8facebook5velox6detail14veloxCheckFailINS0_17VeloxRuntimeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS1_18VeloxCheckFailArgsET0_NS0_24CompileTimeStringLiteralE
2026-03-24T16:34:41.4868638Z # 3  _ZN8facebook5velox10serializer6presto17PrestoVectorSerde11deserializeEPNS0_15ByteInputStreamEPNS0_6memory10MemoryPoolESt10shared_ptrIKNS0_7RowTypeEEPS9_INS0_9RowVectorEEiPKNS0_11VectorSerde7OptionsE
2026-03-24T16:34:41.4870792Z # 4  _ZN8facebook5velox10serializer6presto17PrestoVectorSerde11deserializeEPNS0_15ByteInputStreamEPNS0_6memory10MemoryPoolESt10shared_ptrIKNS0_7RowTypeEEPS9_INS0_9RowVectorEEPKNS0_11VectorSerde7OptionsE
2026-03-24T16:34:41.4872650Z # 5  _ZN8facebook5velox17VectorStreamGroup4readEPNS0_15ByteInputStreamEPNS0_6memory10MemoryPoolESt10shared_ptrIKNS0_7RowTypeEEPNS0_11VectorSerdeEPS7_INS0_9RowVectorEEPKNSB_7OptionsE
2026-03-24T16:34:41.4873709Z # 6  _ZN8facebook5velox10serializer24SerializedPageFileReader9nextBatchERSt10shared_ptrINS0_9RowVectorEE
2026-03-24T16:34:41.4874530Z # 7  _ZN8facebook5velox4exec20FileSpillMergeStream9nextBatchEv
2026-03-24T16:34:41.4875087Z # 8  _ZN8facebook5velox4exec16SpillMergeStream3popEv
2026-03-24T16:34:41.4875758Z # 9  _ZN8facebook5velox4exec11GroupingSet23mergeNextWithAggregatesEiiRKSt10shared_ptrINS0_9RowVectorEE
2026-03-24T16:34:41.4876308Z # 10 _ZN8facebook5velox4exec15HashAggregation9getOutputEv
2026-03-24T16:34:41.4876974Z # 11 _ZZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEEENKUlvE3_clEv
2026-03-24T16:34:41.4877973Z # 12 _ZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEE
2026-03-24T16:34:41.4878616Z # 13 _ZN8facebook5velox4exec6Driver3runESt10shared_ptrIS2_E
2026-03-24T16:34:41.4879269Z # 14 _ZN5folly6detail8function5call_IZN8facebook5velox4exec6Driver7enqueueESt10shared_ptrIS6_EEUlvE_Lb1ELb0EvJEEET2_DpT3_RNS1_4DataE
2026-03-24T16:34:41.4879868Z # 15 _ZN5folly6detail8function14FunctionTraitsIFvvEEclEv
2026-03-24T16:34:41.4880360Z # 16 _ZN5folly18ThreadPoolExecutor7runTaskERKSt10shared_ptrINS0_6ThreadEEONS0_4TaskE
2026-03-24T16:34:41.4881147Z # 17 _ZN5folly21CPUThreadPoolExecutor9threadRunESt10shared_ptrINS_18ThreadPoolExecutor6ThreadEE
2026-03-24T16:34:41.4882327Z # 18 _ZSt13__invoke_implIvRMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEERPS1_JRS4_EET_St21__invoke_memfun_derefOT0_OT1_DpOT2_
2026-03-24T16:34:41.4883683Z # 19 _ZSt8__invokeIRMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEJRPS1_RS4_EENSt15__invoke_resultIT_JDpT0_EE4typeEOSC_DpOSD_
2026-03-24T16:34:41.4884932Z # 20 _ZNSt5_BindIFMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEPS1_S4_EE6__callIvJEJLm0ELm1EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE
2026-03-24T16:34:41.4885751Z # 21 _ZNSt5_BindIFMN5folly18ThreadPoolExecutorEFvSt10shared_ptrINS1_6ThreadEEEPS1_S4_EEclIJEvEET0_DpOT_
2026-03-24T16:34:41.4886546Z # 22 _ZN5folly6detail8function5call_ISt5_BindIFMNS_18ThreadPoolExecutorEFvSt10shared_ptrINS4_6ThreadEEEPS4_S7_EELb1ELb0EvJEEET2_DpT3_RNS1_4DataE
2026-03-24T16:34:41.4887126Z # 23 0x00000000000dbae4
2026-03-24T16:34:41.4887344Z # 24 start_thread
2026-03-24T16:34:41.4889465Z # 25 clone
2026-03-24T16:34:41.4889738Z " thrown in the test body.
2026-03-24T16:34:41.4890072Z [  FAILED  ] CountIfAggregationTest.oneAggregateMultipleGroups (209 ms)

CC: @kgpai @pratikpugalia

System information

n/a

Relevant logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingflaky-testtriageNewly created issue that needs attention.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions