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

Junrui Li updated FLINK-33581:
------------------------------
    Release Note: 
The non-ConfigOption objects in the StreamExecutionEnvironment, 
CheckpointConfig, and ExecutionConfig and their corresponding getter/setter 
interfaces is now be deprecated in FLINK-1.19. And these objects and methods is 
planned to be removed in Flink-2.0. The deprecated interfaces include the 
getter and setter methods of RestartStrategy, CheckpointStorage, and 
StateBackend.

More details can be found at 
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=278464992.

  was:
The non-ConfigOption objects in the StreamExecutionEnvironment, 
CheckpointConfig, and ExecutionConfig and their corresponding getter/setter 
interfaces is now be deprecated in FLINK-1.19. And these objects and methods is 
planned to be removed in Flink-2.0. Detailed information regarding the 
deprecations is as follows:

1. RestartStrategy:
Suggested alternative: 
Users can configure the RestartStrategyOptions related ConfigOptions, such as 
"restart-strategy.type", in the configuration, instead of passing a 
RestartStrategyConfiguration object.

2.CheckpointStorage:
Suggested alternative: 
Users can configure "state.checkpoint-storage" in the configuration as the 
fully qualified name of the checkpoint storage or use some FLINK-provided 
checkpoint storage shortcut names such as "jobmanager" and "filesystem", and 
provide the necessary configuration options for building that storage, instead 
of passing a CheckpointStorage object.

3.StateBackend:
Suggested alternative: 
Users can configure "state.backend.type" in the configuration as the fully 
qualified name of the state backend or use some FLINK-provided state backend 
shortcut names such as "hashmap" and "rocksdb", and provide the necessary 
configuration options for building that StateBackend, instead of passing a 
StateBackend object.

More details can be found at 
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=278464992.


> FLIP-381: Deprecate configuration getters/setters that return/set complex 
> Java objects
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-33581
>                 URL: https://issues.apache.org/jira/browse/FLINK-33581
>             Project: Flink
>          Issue Type: Technical Debt
>          Components: API / DataStream
>            Reporter: Junrui Li
>            Assignee: Junrui Li
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.19.0
>
>         Attachments: image-2023-11-30-17-59-42-650.png
>
>
> Deprecate the non-ConfigOption objects in the StreamExecutionEnvironment, 
> CheckpointConfig, and ExecutionConfig, and ultimately removing them in FLINK 
> 2.0



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

Reply via email to