[
https://issues.apache.org/jira/browse/FLINK-41732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuepeng Pan resolved FLINK-41732.
---------------------------------
Resolution: Fixed
Merged into master(2.5.0) via 40377f3a806441d16ed2d1e96763b8f609b2f4ea
> 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
> Assignee: Yue Zhang
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.5.0
>
>
> 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)