Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17623

Elasticsearch sink should support user resource cleanup

    XMLWordPrintableJSON

Details

    Description

      There should be a way for an ElasticsearchSinkFunction implementation to use resources with the same lifecycle as the Elasticsearch sink, for example, an RestHighLevelClient.

      Currently there is no way to clean up such resources.

      This can be achieved by either of the below:

      1. Expose a `close()` method in the ElasticsearchSinkFunction interface, and invoke the close method from ElasticsearchSinkBase.close.
      2. Make the ElasticsearchSink class extendable.

       

      Attachments

        Issue Links

          Activity

            People

              yunw Yun Wang
              yunw Yun Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: