zhangyue19921010 opened a new pull request, #30150: URL: https://github.com/apache/flink/pull/30150
## What is the purpose of the change A memory size of two tebibytes prints as `2199023255552 bytes` even though smaller whole units use compact suffixes. This also affects memory defaults in generated configuration documentation. [FLINK-41690](https://issues.apache.org/jira/browse/FLINK-41690) ## Brief change log Use the largest supported unit for positive exact tebibyte multiples and preserve `0 bytes` for zero. ## Verifying this change The new two-tebibyte regression failed on master. All 59 selected memory and configuration tests passed with the fix. All 11 configuration documentation generator tests passed, and the generator produced `2 tb` for the example default. The current and Flink 2.3.0 parsers both recovered the original byte counts from each formatter. ## Does this pull request potentially affect one of the following parts The text returned by `MemorySize.toString()` changes for positive whole tebibytes. The previous raw byte count and the new compact text both parse to the same byte value. ## Documentation Generated configuration documentation uses the compact form when an option has a positive whole-tebibyte default. -- 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]
