[ 
https://issues.apache.org/jira/browse/FLINK-33316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17777552#comment-17777552
 ] 

Dong Lin commented on FLINK-33316:
----------------------------------

[~fanrui] I think it makes sense to cherry-pick this to the next Flink 
1.17/1.18 minor release. But I am not sure it is necessary to include this 
patch in the ongoing Flink 1.18.0 release at the risk of further delaying this 
release.

Note that this issue increases the memory usage during Flink job initialization 
for large batch jobs, which strictly speaking has limited impact because very 
few users currently use Flink for such scenarios. For those pioneer/advanced 
users (like your team), I think it is reasonable for them to patch their own 
internal copy of Flink repo to get this issue fixed.

Also note that when Flink is (close to) production ready for large batch jobs 
in the future, we should have stress/performance tests during release testing 
to catch issues like this. The fact that we don't have this also signals that 
Flink is not really production ready for large-scale batch jobs yet.

 

> Avoid unnecessary heavy getStreamOperatorFactory
> ------------------------------------------------
>
>                 Key: FLINK-33316
>                 URL: https://issues.apache.org/jira/browse/FLINK-33316
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Runtime / Configuration
>    Affects Versions: 1.17.0, 1.18.0
>            Reporter: Rui Fan
>            Assignee: Rui Fan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.19.0
>
>
> See FLINK-33315 for details.
> This Jira focus on avoid unnecessary heavy getStreamOperatorFactory, it can 
> optimize the memory and cpu cost of Replica_2 in FLINK-33315.
> Solution: We can store the serializedUdfClassName at StreamConfig, and using 
> the getStreamOperatorFactoryClassName instead of the heavy 
> getStreamOperatorFactory in OperatorChain#getOperatorRecordsOutCounter.



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

Reply via email to