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

   ### Describe the issue this Pull Request addresses
   
   Closes #19311
   
   When native log format is enabled, MDT file-group initialization still 
creates a legacy inline log containing an empty delete block. Empty file groups 
therefore do not have the native `.log.hfile` expected by the file-system view 
and may not be discovered before receiving records.
   
   ### Summary and Changelog
   
   - Create a zero-record native `.log.hfile` for each empty MDT file group 
when native log format is enabled.
   - Store the instant time and writer schema in native footer metadata; the 
native log version is added by the footer metadata utility.
   - Keep the existing empty delete-block initialization for legacy inline log 
format.
   - Centralize both initialization paths in `HoodieMetadataWriteUtils`.
   - Add a test that opens the generated HFile and verifies its footer metadata.
   
   ### Impact
   
   Empty MDT file groups are discoverable by the file-system view when native 
log format is enabled. There are no public API or configuration changes.
   
   ### Risk Level
   
   Low. The change is limited to initial empty MDT file-group creation, 
preserves the legacy inline path, and includes native HFile footer read 
coverage.
   
   ### Documentation Update
   
   None. There are no user-facing API or configuration changes.
   
   ### Contributor's checklist
   
   - [x] Read through contributor's guide
   - [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