MartijnVisser opened a new pull request, #30262:
URL: https://github.com/apache/flink/pull/30262

   ## What is the purpose of the change
   
   All in-flight async lookup futures share one converter, which is not 
thread-safe, so lookups returning ARRAY, MAP or MULTISET values corrupt each 
other's rows or fail the job.
   
   ## Brief change log
   
   - Every pooled JoinedRowResultFuture gets its own converter; identity 
conversions keep sharing one.
   - A timeout's replacement future takes over the converter of the future it 
retires.
   
   ## Verifying this change
   
   Added AsyncLookupJoinRunnerConverterTest, which checks that no two futures 
convert with the same converter, for in-flight lookups and for timeout 
replacements. Both tests fail without the fix. An end-to-end lookup join with 
64 concurrent completions had 3,061 to 3,759 of 19,968 rows wrong over 3 runs 
on master and none with this change.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no; open() 
clones the converter buffer-capacity + 1 times, each with its own reuse buffer
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (Claude Opus 5.5)
   


-- 
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]

Reply via email to