Yue Zhang created FLINK-41639:
---------------------------------
Summary: MemorySize.toString() does not round-trip with localized
digits
Key: FLINK-41639
URL: https://issues.apache.org/jira/browse/FLINK-41639
Project: Flink
Issue Type: Bug
Components: API / Core
Reporter: Yue Zhang
MemorySize.toString() formats the value with the JVM formatting locale.
MemorySize.parse() reads only ASCII digits, so the string returned by
toString() can be rejected in locales such as ar-EG.
To reproduce, set the Java formatting locale to ar-EG, parse "2 mb", and pass
the result of toString() back to MemorySize.parse().
The second parse throws NumberFormatException with "text does not start with a
number". The string form should use locale-independent digits so it can be
parsed back to the same size.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)