zhuzhurk commented on code in PR #19747:
URL: https://github.com/apache/flink/pull/19747#discussion_r875506238


##########
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/JobMasterTest.java:
##########
@@ -1420,6 +1422,13 @@ public void testRequestPartitionState() throws Exception 
{
         }
     }
 
+    private static ExecutionAttemptID 
deepCopyExecutionAttemptId(ExecutionAttemptID toCopy)
+            throws IOException, ClassNotFoundException {
+        return InstantiationUtil.deserializeObject(
+                InstantiationUtil.serializeObject(toCopy),
+                ExecutionGraphTestUtils.class.getClassLoader());
+    }
+

Review Comment:
   Good idea! I didn't realize there is a `InstantiationUtils#clone`. Will 
remove this method and directly use it.



-- 
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