ChengbingLiu opened a new pull request, #30068: URL: https://github.com/apache/flink/pull/30068
## What is the purpose of the change Async lookup miss retries currently sleep inside completion callbacks. Under a burst of misses, the sleeping callbacks can delay other completions and retries. They can also submit a retry on a worker thread while the task thread is submitting an initial lookup to the same connector instance. [FLINK-41612](https://issues.apache.org/jira/browse/FLINK-41612) ## Brief change log - Use the operator's processing-time service for retry backoff and submit each retry through the task mailbox. - Bind the retry wrapper to the time service, including when a partial lookup cache wraps it. Cancel pending timers on close and ignore timer callbacks already queued in the mailbox. - Update the SQL hint documentation to explain how async lookup retries occupy buffer slots. ## Verifying this change - Cover completion executor progress during backoff and serialized connector submissions. - Assert the final lookup result after retry exhaustion, and cover close with both a pending timer and a callback already queued in the mailbox. Ran the four lookup-related test classes against Apache Flink master with JDK 17 and Maven 3.9.16. All 25 tests passed, along with Spotless and Checkstyle. The two regressions fail against the original delegator. The targeted reactor run skipped the repository-wide RAT scan. ## Does this pull request potentially affect one of the following parts - Dependencies: no. - Public API: no. - Serializers: no. The existing Java serialization UID is preserved. - Runtime per-record code paths: yes, for asynchronous lookup joins with lookup miss retries enabled. - Deployment or recovery: no. - S3 file system connector: no. ## Documentation - New feature: no. - The English and Chinese notes for delayed lookup retry describe the updated behavior. --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes Generated-by: OpenAI Codex (GPT-6) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
