nsivabalan commented on code in PR #12813:
URL: https://github.com/apache/hudi/pull/12813#discussion_r1966381146
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/StreamSync.java:
##########
@@ -1326,6 +1323,18 @@ public Option<String> getClusteringInstantOpt() {
}
}
+ private Option<String> getLatestCommittedInstant() {
+ try {
+ // If timelineLayout version changes, initialize the meta client again.
+ if (commitsTimelineOpt.get().getTimelineLayoutVersion() !=
writeClient.getConfig().getWriteVersion().getTimelineLayoutVersion()) {
+ return
getLatestInstantWithValidCheckpointInfo(Option.of(initializeMetaClient().getActiveTimeline().getCommitsTimeline().filterCompletedInstants()));
Review Comment:
can we do
```
if (....) {
this.commitsTimelineOpt =
Option.of(initializeMetaClient().getActiveTimeline().getCommitsTimeline().filterCompletedInstants());
}
return getLatestInstantWithValidCheckpointInfo(commitsTimelineOpt);
```
--
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]