cshuo commented on issue #20808: URL: https://github.com/apache/hudi/issues/20808#issuecomment-7121009303
Thanks, @smiralexan. My proposal keeps the current UID allocation behavior by default and adds an optional uid-suffix override. In the case you reproduced, setting the suffix to match the original operator UID would allow the job to restore from its savepoint. I think removing the counter by default can work too. It would make UIDs stable across resubmissions, with two compatibility trade-offs: - If two branches read the same table, users would need to set uid-suffix on at least one branch. Today, the counter handles that automatically. - After upgrading Hudi, a job could generate an unnumbered UID where the old job had a numbered one, causing restore from an existing savepoint to fail. Since both proposals need `uid-suffix` option, I’d suggest adding it first and keeping the current default for backward compatibility. We can revisit removing the counter by default in a major release, with migration guidance for existing jobs. cc @danny0405 WDYT -- 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]
