diff --git a/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/OpenSearchSink.java b/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/OpenSearchSink.java index b4c18c2bbd..8853674d90 100644 --- a/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/OpenSearchSink.java +++ b/data-prepper-plugins/opensearch/src/main/java/org/opensearch/dataprepper/plugins/sink/opensearch/OpenSearchSink.java @@ -236,8 +236,7 @@ private void doInitializeInternal() throws IOException { .setParameter("filter_path", "errors,took,items.*.error,items.*.status,items.*._index,items.*._id") .build()); bulkApiWrapper = BulkApiWrapperFactory.getWrapper(openSearchSinkConfig.getIndexConfiguration(), filteringOpenSearchClient); - bulkRetryStrategy = new BulkRetryStrategy(this, - bulkRequest -> bulkApiWrapper.bulk(bulkRequest.getRequest()), + bulkRetryStrategy = new BulkRetryStrategy(bulkRequest -> bulkApiWrapper.bulk(bulkRequest.getRequest()), this::logFailureForBulkRequests, pluginMetrics, maxRetries,