VirtualSelect opened a new pull request, #21100:
URL: https://github.com/apache/hudi/pull/21100

   ### Describe the issue this Pull Request addresses
   
   Closes #21038. Sorted Flink bulk inserts currently start a new worker 
whenever a file-group transition closes the only open write handle.
   
   ### Summary and Changelog
   
   Run a singleton close on the calling thread via a direct executor. Reuse the 
existing completion and failure handling so the exception chain is unchanged, a 
failed handle remains available for cleanup retry, and status is published only 
after success. Empty and multi-handle behavior are unchanged; the latter still 
waits for all close attempts.
   
   ### Impact
   
   Removes one worker start per singleton close. No public API, storage-format, 
or configuration change. A local Flink 1.20.1 writer probe with parallelism 1, 
64 groups and 256 records recorded 64 → 0 close-worker starts, and read back 
the same 256 ordered keys in both runs. The three timed repetitions after 
warm-up yielded about 244 vs 220 rows/s on this runner; they do not establish a 
throughput improvement.
   
   ### Risk Level
   
   low. Targeted JDK 21 test replay of the changed source against the existing 
Flink reactor classpath was 20/21 on baseline (caller-thread assertion only) 
and 21/21 with the patch. This includes IOException and runtime exception 
retry, repeated status collection, existing multi-handle failure coverage, and 
sorted bucket Parquet readback. Checkstyle 9.3 passed; a full clean Maven 
reactor and distributed Flink job were not run locally. Codex assisted with 
implementation and regression validation.
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable


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