prashantwason opened a new pull request, #18183: URL: https://github.com/apache/hudi/pull/18183
### Describe the issue this Pull Request addresses This PR adds HUDI version and engine-specific properties to commit metadata files. This enhances tracking of HUDI releases being used in production and provides ability to debug issues which may be caused by wrong version of code being used. Related JIRA: HUDI-2933 ### Summary and Changelog **Summary:** Commit metadata now includes hudi.version, writeconfig, and engine information to help with debugging and tracking HUDI versions in production. **Changelog:** - Added abstract `getInfo()` method to `HoodieEngineContext` interface - Implemented `getInfo()` in all engine contexts (Spark, Flink, Java, Local) returning engine-specific information - Added `updateExtraMetadata()` method to `BaseHoodieClient` that adds hudi.version, writeconfig, engine info to commit metadata - Updated `BaseHoodieWriteClient` and `BaseHoodieTableServiceClient` to call `updateExtraMetadata()` before commits - Updated `HoodieTableConfig.getFileComment()` to include hudi version and hostname in hoodie.properties comments ### Impact - Commit metadata files will now include additional properties: `hudi.version`, `writeconfig`, `engine`, and engine-specific info - hoodie.properties file comments will include hudi version and hostname - No breaking changes to public APIs ### Risk Level low - This adds metadata to commit files without changing core write/read paths. The additional metadata is purely informational. ### Documentation Update none - This is an internal enhancement that does not require user-facing documentation changes. ### 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]
