codope commented on code in PR #12391:
URL: https://github.com/apache/hudi/pull/12391#discussion_r1865217951
##########
hudi-common/src/main/java/org/apache/hudi/common/table/cdc/HoodieCDCExtractor.java:
##########
@@ -217,6 +217,11 @@ private void initInstantAndCommitMetadata() {
try {
Set<String> requiredActions = new HashSet<>(Arrays.asList(COMMIT_ACTION,
DELTA_COMMIT_ACTION, REPLACE_COMMIT_ACTION, CLUSTERING_ACTION));
HoodieActiveTimeline activeTimeLine = metaClient.getActiveTimeline();
+ if (instantRange.getStartInstant().isPresent() &&
!metaClient.getArchivedTimeline().empty()
Review Comment:
why do we even need to check whether archived timeline is empty or not? Even
if it's empty and start instant in the instant range is before active timeline
start, then we still throw error.
--
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]