Aiven-Open / opensearch-connector-for-apache-kafka

Aiven's OpenSearch® Connector for Apache Kafka®
Apache License 2.0
63 stars 34 forks source link

Retry on inherited exceptions as well #221

Closed cincinnat closed 11 months ago

cincinnat commented 11 months ago

The existing retry mechanism almost never triggered when the underlying function call throws an exception. In particular, it never retries to call a function if it fails with a connection error.

The mechanics was broken by 7249ad7 Add BulkProcessor commit. So, there should not be any undesirable side-effects from retrying on all exceptions by default.

Issues: #179

cincinnat commented 11 months ago

Will reopen from different branch