nsivabalan commented on a change in pull request #4034:
URL: https://github.com/apache/hudi/pull/4034#discussion_r756407890
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
##########
@@ -339,11 +340,17 @@ public void refreshTimeline() throws IOException {
resumeCheckpointStr = Option.empty();
} else if
(HoodieTimeline.compareTimestamps(HoodieTimeline.FULL_BOOTSTRAP_INSTANT_TS,
HoodieTimeline.LESSER_THAN, lastCommit.get().getTimestamp())) {
- throw new HoodieDeltaStreamerException(
- "Unable to find previous checkpoint. Please double check if this
table "
- + "was indeed built via delta streamer. Last Commit :" +
lastCommit + ", Instants :"
- +
commitTimelineOpt.get().getInstants().collect(Collectors.toList()) + ",
CommitMetadata="
- + commitMetadata.toJsonString());
+ // if previous commit metadata did not have the checkpoint key, try
traversing previous commits until we find one.
+ Option<String> prevCheckpoint =
getPreviousCheckpoint(commitTimelineOpt.get());
Review comment:
I could not find a easier way to get this one. Have fixed all other
feedback.
--
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]