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

   ### Describe the issue this Pull Request addresses
   
   Refs apache/hudi#20808. When a Flink session builds the same job graph more 
than once, Hudi's JVM-wide counter can assign different UIDs to the same 
operators. Flink then cannot map their savepoint state to the resubmitted job.
   
   ### Summary and Changelog
   
   #### Commit: fix(flink): allow overriding the operator UID suffix 
(`d133fb747c3`)
   
   - Add an optional `uid-suffix` per Hudi source or sink. When unset, keep the 
existing counter and UID format. When set, use the supplied value without 
advancing the counter.
   - To restore an existing savepoint, set `'uid-suffix' = ''` to reproduce 
`uid_stream_write_orders`, or `'uid-suffix' = '1'` to reproduce 
`uid_stream_write_1_orders`.
   - Add regression coverage for both legacy formats and for a named suffix 
remaining stable across repeated allocations. All 20 `TestPipelines` tests 
passed with Flink 1.20.1; a cluster savepoint restore was not run.
   
   ### Impact
   
   Existing jobs keep their current numbering. Jobs that need stable operator 
UIDs across submissions can opt in; repeated uses of the same table in a job 
can use distinct suffixes.
   
   ### Risk Level
   
   Low. The default code path is unchanged. When opting in, users must match 
the original suffix to recover existing state and avoid duplicate UIDs within a 
job.
   
   ### Documentation Update
   
   The `FlinkOptions.UID_SUFFIX` description explains how to match numbered and 
unnumbered UIDs. No separate website change is included.
   
   ### Contributor's checklist
   
   - [ ] 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