Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CDCImporter process FinishedRecord, and advise CDC client #28953

Merged
merged 8 commits into from
Nov 8, 2023
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected void runBlocking() {
} else {
doWithoutSorting(channelProgressPairs);
}
if (channelProgressPairs.isEmpty()) {
if (channelProgressPairs.isEmpty() && ackCache.estimatedSize() == 0) {
break;
}
azexcy marked this conversation as resolved.
Show resolved Hide resolved
}
Expand Down Expand Up @@ -239,6 +239,7 @@ public void ack(final String ackId) {
each.getLeft().getChannel().ack(Collections.singletonList(ackPosition.getLastRecord()));
each.getLeft().getJobProgressListener().onProgressUpdated(new PipelineJobProgressUpdatedParameter(ackPosition.getDataRecordCount()));
}
ackCache.invalidate(ackId);
}

@Override
Expand Down