Sxnan commented on code in PR #20147:
URL: https://github.com/apache/flink/pull/20147#discussion_r932017388


##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:
##########
@@ -2203,13 +2197,24 @@ public StreamGraph getStreamGraph() {
      */
     @Internal
     public StreamGraph getStreamGraph(boolean clearTransformations) {
+        updateCacheTransformation();

Review Comment:
   We can skip the check if `cachedTransformation` is empty. But I think we 
should still check event if all the transformations are cached, since the cache 
can become invalid.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to