You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/18 15:55:59 UTC

[GitHub] [incubator-seatunnel] ashulin commented on a diff in pull request #3131: [Engine] [Checkpoint] fix Checkpoint can't deserialize with protostuff

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: commits-unsubscribe@seatunnel.apache.org

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