hiSandog opened a new pull request, #25901: URL: https://github.com/apache/pulsar/pull/25901
### Motivation ByteUnitToIntegerConverter silently truncated byte sizes larger than Integer.MAX_VALUE because it cast the parsed long to int. ### Modifications Use Math.toIntExact so overflowing values are rejected as conversion errors, and split the converter tests to cover valid int-sized values separately from overflow cases. ### Verifications - git diff --check - ./gradlew :pulsar-cli-utils:test --tests org.apache.pulsar.cli.converters.ByteConversionTest (could not run locally: Java Runtime not found) -- 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]
