zhangyue19921010 commented on a change in pull request #4078: URL: https://github.com/apache/hudi/pull/4078#discussion_r777924466
########## File path: hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieArchivedTimeline.java ########## @@ -218,7 +219,7 @@ private HoodieInstant readCommit(GenericRecord record, boolean loadDetails) { // Sort files by version suffix in reverse (implies reverse chronological order) Arrays.sort(fsStatuses, new ArchiveFileVersionComparator()); - List<HoodieInstant> instantsInRange = new ArrayList<>(); + Set<HoodieInstant> instantsInRange = new HashSet<>(); Review comment: ``` @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } HoodieInstant that = (HoodieInstant) o; return state == that.state && Objects.equals(action, that.action) && Objects.equals(timestamp, that.timestamp); } ``` -- 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-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org