You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fan Hong (Jira)" <ji...@apache.org> on 2023/08/08 11:19:00 UTC

[jira] [Created] (FLINK-32810) Improve managed memory usage in ListStateWithCache

Fan Hong created FLINK-32810:
--------------------------------

             Summary: Improve managed memory usage in ListStateWithCache
                 Key: FLINK-32810
                 URL: https://issues.apache.org/jira/browse/FLINK-32810
             Project: Flink
          Issue Type: Improvement
          Components: Library / Machine Learning
            Reporter: Fan Hong


Right now, by default, `ListStateWithCache` will use up all the managed memory allocated for`ManagedMemoryUseCase.OPERATOR`.

It could bring some bugs in some situations. For example, there exist more than one `ListStateWithCache`s in a single operator, or there are other places using managed memory of `ManagedMemoryUseCase.OPERATOR`.

 

An approach to resolve such cases is to let the developer of the operator be aware about the usage of managed memory of `ManagedMemoryUseCase.OPERATOR`, instead of implicitly use up all of it.  Therefore, I think it is better to add a parameters `fraction` to specify how much memory is used in the `ListStateWithCache`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)