Aleksandr Efimov created IMPALA-15834:
-----------------------------------------
Summary: Early LIMIT cancellation can leave sender profiles
incomplete
Key: IMPALA-15834
URL: https://issues.apache.org/jira/browse/IMPALA-15834
Project: IMPALA
Issue Type: Bug
Reporter: Aleksandr Efimov
Assignee: Aleksandr Efimov
Reproduced with backend sources at
{{6f80aa7a08eea02938f329ffb97a357a67ebafe3}}, without adaptive batching changes.
Use one coordinator, one executor and a text table with statistics: 32 files,
each containing 20,000 rows with disjoint increasing BIGINT keys and a 224-byte
STRING payload.
{code:sql}
SET MT_DOP=32;
SET NUM_NODES=0;
SET BATCH_SIZE=1024;
SET COMPUTE_PROCESSING_COST=false;
SET DISABLE_CODEGEN=false;
SET DISABLE_CODEGEN_ROWS_THRESHOLD=0;
SET ASYNC_CODEGEN=false;
SELECT k, payload FROM profile_repro
ORDER BY k LIMIT 4000 OFFSET 2000;
{code}
The query returns the correct rows, but its JSON profile after EOF can lack
fields added during sender teardown. One run had codegen markers on only 29/32
senders. Adding {{DEBUG_ACTION='CONSTRUCT_QUERY_STATE_REPORT:SLEEP@1000'}}
produced 32/32 in three runs.
A cancelled instance calls {{DoneRemainingExecuting()}}, whose
{{NotifyRemaining()}} wakes the backend monitor before all instances close. The
coordinator treats the non-OK backend status as completion and freezes the
incomplete profile.
Successful LIMIT queries should retain final sender profiles while preserving
prompt error propagation.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)