You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Gyula Fora (Jira)" <ji...@apache.org> on 2022/05/18 15:45:00 UTC

[jira] [Commented] (FLINK-27686) Only patch status when the status actually changed

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

Gyula Fora commented on FLINK-27686:
------------------------------------

cc [~wangyang0918] 

> Only patch status when the status actually changed
> --------------------------------------------------
>
>                 Key: FLINK-27686
>                 URL: https://issues.apache.org/jira/browse/FLINK-27686
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kubernetes Operator
>            Reporter: Gyula Fora
>            Priority: Critical
>             Fix For: kubernetes-operator-1.0.0
>
>
> The StatusHelper class currently always patches the status regardless if it changed or not.
> We should use an ObjectMapper and simply compare the ObjectNode representations and only patch if there is any change.
>  
> (I think we cannot directly compare the status objects because some of the content comes from getters and are not part of the equals implementation)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)