Problem
The native log format and CDC write handles in hudi-client-common currently have no direct line coverage, leaving record routing, file rollover, CDC supplemental logging modes, merge ordering, statistics publication, and error handling insufficiently protected.
Scope
Add focused tests for:
HoodieNativeLogFormatWriter
HoodieNativeLogAppendHandle
FileGroupReaderBasedNativeLogAppendHandle
HoodieNativeCDCLogger
HoodieNativeCDCFileWriter
HoodieAvroNativeCDCLogger
HoodieSortedMergeHandle
HoodieMergeHandleWithChangeLog
The tests should cover native log data/delete routing and rollover, all CDC supplemental logging modes, CDC file creation and statistics, file-group-reader append behavior, sorted merge ordering, change-log emission, and representative failure branches.
Acceptance criteria
- Each listed class reaches at least 70% line coverage.
- Targeted
hudi-client-common tests and style checks pass.
- The pull request documents before/after per-class line coverage.
- No production behavior changes are introduced.
Problem
The native log format and CDC write handles in
hudi-client-commoncurrently have no direct line coverage, leaving record routing, file rollover, CDC supplemental logging modes, merge ordering, statistics publication, and error handling insufficiently protected.Scope
Add focused tests for:
HoodieNativeLogFormatWriterHoodieNativeLogAppendHandleFileGroupReaderBasedNativeLogAppendHandleHoodieNativeCDCLoggerHoodieNativeCDCFileWriterHoodieAvroNativeCDCLoggerHoodieSortedMergeHandleHoodieMergeHandleWithChangeLogThe tests should cover native log data/delete routing and rollover, all CDC supplemental logging modes, CDC file creation and statistics, file-group-reader append behavior, sorted merge ordering, change-log emission, and representative failure branches.
Acceptance criteria
hudi-client-commontests and style checks pass.