[ 
https://issues.apache.org/jira/browse/FLINK-41732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuepeng Pan reassigned FLINK-41732:
-----------------------------------

    Assignee: Yue Zhang

> 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)

Reply via email to