ashulin commented on code in PR #3131:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3131#discussion_r998427889


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/TaskStatistics.java:
##########
@@ -42,20 +44,20 @@ public class TaskStatistics implements Serializable {
     TaskStatistics(Long jobVertexId, int parallelism) {
         this.jobVertexId = checkNotNull(jobVertexId, "JobVertexID");
         checkArgument(parallelism > 0, "the parallelism of task <= 0");
-        this.subtaskStats = new SubtaskStatistics[parallelism];
+        this.subtaskStats = Arrays.asList(new SubtaskStatistics[parallelism]);

Review Comment:
   ```suggestion
           this.subtaskStats = new ArrayList<>(parallelism);
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to