Github user tzulitai commented on a diff in the pull request:
https://github.com/apache/flink/pull/1962#discussion_r123150036
--- Diff:
flink-connectors/flink-connector-elasticsearch-base/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSinkBase.java
---
@@ -208,6 +222,13 @@ public void invoke(T value) throws Exception {
checkErrorAndRethrow();
elasticsearchSinkFunction.process(value, getRuntimeContext(),
requestIndexer);
+
+ // if there is a connectivity failure, then retry
+ if (failureThrowable.get() != null &&
--- End diff --
I'm wondering whether or not checking the exception type would be enough
for verifying the connectivity failure.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---