Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Sep 9, 2024
1 parent 9c05ed5 commit a1c84f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public SplitEnumerator<DorisSourceSplit, PendingSplitsCheckpoint> restoreEnumera
SplitEnumeratorContext<DorisSourceSplit> context, PendingSplitsCheckpoint checkpoint)
throws Exception {
Collection<DorisSourceSplit> splits = checkpoint.getSplits();
LOG.info("Restore {} splits from checkpoint, detail {}", splits.size(), splits);
DorisSplitAssigner splitAssigner = new SimpleSplitAssigner(splits);
return new DorisSourceEnumerator(context, splitAssigner);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void addSplits(Collection<DorisSourceSplit> splits) {

@Override
public PendingSplitsCheckpoint snapshotState(long checkpointId) {
LOG.info("Checkpointing {} splits: {}", checkpointId, splits);
return new PendingSplitsCheckpoint(splits);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void addSplitsBack(List<DorisSourceSplit> splits, int subtaskId) {

@Override
public void addReader(int subtaskId) {
// do nothing
LOG.info("Doris Source Enumerator adds reader: {}", subtaskId);
}

@Override
Expand Down

0 comments on commit a1c84f8

Please sign in to comment.