davidradl commented on code in PR #27056:
URL: https://github.com/apache/flink/pull/27056#discussion_r2387874405
##########
flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java:
##########
@@ -287,6 +287,10 @@ public static long parseBytes(String text) throws
IllegalArgumentException {
throw new NumberFormatException("text does not start with a
number");
}
+ if(unit.startsWith(".")) {
Review Comment:
I suggest changing this to test the valid characters allowed - maybe with
one or more regex's. I assume the unit should be 1 or more digits followed by a
supported unit characters.
--
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]