KarmaGYZ commented on a change in pull request #12619: URL: https://github.com/apache/flink/pull/12619#discussion_r439900240
########## File path: flink-connectors/flink-connector-elasticsearch-base/src/test/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSinkBaseTest.java ########## @@ -412,6 +413,19 @@ public void testDoesNotWaitForPendingRequestsIfFlushingDisabled() throws Excepti testHarness.close(); } + @Test + public void testOpenAndCloseInSinkFunction() throws Exception { + SimpleClosableSinkFunction<String> sinkFunction = new SimpleClosableSinkFunction<>(); + final DummyElasticsearchSink<String> sink = new DummyElasticsearchSink<>( + new HashMap<>(), sinkFunction, new DummyRetryFailureHandler()); + + sink.open(mock(Configuration.class)); Review comment: ```suggestion sink.open(new Configuration())); ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org