Skip to content

Commit 398bb8a

Browse files
committed
fix comment
Signed-off-by: Pei Yu <125331682@qq.com>
1 parent e0d1775 commit 398bb8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-elasticsearch/src/main/java/org/apache/flink/cdc/connectors/elasticsearch/v2/Elasticsearch8AsyncWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ private void handleFailedRequest(
166166
LOG.debug("The BulkRequest has failed", error);
167167
numRecordsOutErrorsCounter.inc(requestEntries.size());
168168

169-
if (isRetryable(error.getCause())) {
169+
Throwable retryableError = error.getCause() != null ? error.getCause() : error;
170+
if (isRetryable(retryableError)) {
170171
resultHandler.retryForEntries(requestEntries);
171172
}
172173
}

0 commit comments

Comments
 (0)