Skip to content

[hudi-client] Improve native log and CDC write handle test coverage #19352

Description

@cshuo

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions