lilei1128 opened a new pull request, #16539:
URL: https://github.com/apache/iceberg/pull/16539
generateContentLength() used random().nextInt(10_000) which could return 0.
When a DV's contentSizeInBytes is 0, SnapshotSummary skips writing the
"added-files-size" field due to the setIf(addedSize > 0, ...) guard,
causing testFileSizeSummaryWithDVs to fail with hasSize(19) vs actual 18.
Fix by returning 1 + random().nextInt(10_000) to guarantee a positive
value.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]