Shilun Fan created HDDS-15174:
---------------------------------
Summary: Add tests for Ozone Iceberg statistics file copy plan
Key: HDDS-15174
URL: https://issues.apache.org/jira/browse/HDDS-15174
Project: Apache Ozone
Issue Type: Sub-task
Components: iceberg
Reporter: Shilun Fan
Assignee: Shilun Fan
The Ozone Iceberg RewriteTablePath implementation builds copy plan entries for
table statistics files through RewriteTablePathOzoneUtils.statsFileCopyPlan.
This helper validates that the before and after statistics file lists match in
count and file size, then creates path mappings from the original statistics
files to the rewritten statistics files. However, this utility logic is not
directly covered by unit tests.
This task adds unit tests for the statistics file copy plan helper, including:
- empty statistics file lists
- mismatched before/after statistics file counts
- mismatched statistics file sizes
- successful before-to-after path pair generation
The change improves unit test coverage for the Iceberg rewrite path utility
without changing production behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]