DBZ-1583 Propagate Replicator exception to Kafka Connect

This commit is contained in:
Chris Cranford 2019-10-29 11:10:26 -04:00 committed by Gunnar Morling
parent 13c6c67a1d
commit c25bb23a04

View File

@ -154,7 +154,7 @@ public void start(Configuration config) {
@Override
public List<SourceRecord> poll() throws InterruptedException {
if (replicatorError != null) {
throw new ConnectException("Failing connector task, at least one of the replicators has failed");
throw new ConnectException("Failing connector task, at least one of the replicators has failed", replicatorError);
}
List<SourceRecord> records = queue.poll();
recordSummarizer.accept(records);