You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2026/08/21 16:47:00 UTC

[jira] [Created] (FLINK-40456) AsyncWaitOperator can permanently drop an element's result when a timeout races with a retry

Sergey Nuyanzin created FLINK-40456:
---------------------------------------

             Summary: AsyncWaitOperator can permanently drop an element's result when a timeout races with a retry
                 Key: FLINK-40456
                 URL: https://issues.apache.org/jira/browse/FLINK-40456
             Project: Flink
          Issue Type: Sub-task
          Components: API / DataStream, Build System / CI
            Reporter: Sergey Nuyanzin
            Assignee: Sergey Nuyanzin


When async retries are enabled and an element also has a timeout configured, the operator can lose that element's result. The element is then never emitted and never fails — it stays "in flight" forever, so the job (or a test) hangs
  indefinitely.

  When an element times out, the operator is supposed to emit the timeout's default result and stop. But that timeout result is passed through the retry code path, which begins with a guard meaning "a retry is already in progress for this
  element — ignore this completion." If a retry for the same element was just scheduled or is being processed at that moment, the timeout result hits that guard and is silently discarded. By then the timeout handler has already cancelled the
  element's retry timer, and the element was never marked as completed — so nothing remains that could ever complete it. The element is stuck permanently.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)