Github user sihuazhou commented on a diff in the pull request:
https://github.com/apache/flink/pull/5653#discussion_r172810998
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CompletedCheckpoint.java
---
@@ -290,16 +289,14 @@ public static boolean checkpointsMatch(
Collection<CompletedCheckpoint> first,
Collection<CompletedCheckpoint> second) {
--- End diff --
`checkpointsMatch()` can return immediately once `first.size() !=
second.size()`.---
