Yue Zhang created FLINK-41732:
---------------------------------

             Summary: Mutating the array returned by MemoryUnit.getUnits 
changes subsequent configuration parsing
                 Key: FLINK-41732
                 URL: https://issues.apache.org/jira/browse/FLINK-41732
             Project: Flink
          Issue Type: Bug
          Components: API / Core
            Reporter: Yue Zhang


Obtain the array from MemorySize.MemoryUnit.MEGA_BYTES.getUnits(), change its 
first entry, then call MemorySize.parseBytes("1m") in the same JVM.

The parser rejects the documented suffix with IllegalArgumentException. A 
caller changing an array it obtained for inspection should not change which 
configuration strings other callers can parse.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to