[ 
https://issues.apache.org/jira/browse/FLINK-3857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15270033#comment-15270033
 ] 

ASF GitHub Bot commented on FLINK-3857:
---------------------------------------

GitHub user sbcd90 opened a pull request:

    https://github.com/apache/flink/pull/1962

    [FLINK-3857][Streaming Connectors]Add reconnect attempt to Elasticsearch 
host

    - [ ] General
      - The pull request references the related JIRA issue ("[FLINK-3857] Add 
reconnect attempt to Elasticsearch host")
    
    - [ ] Documentation
      - Documentation added based on the changes made.
    
    - [ ] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis 
build has passed

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sbcd90/flink elasticSearchRetryIssue

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1962.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1962
    
----
commit 62990c984f0d2eca3ba89ed9c2d22c469f16b136
Author: Subhobrata Dey <[email protected]>
Date:   2016-05-04T02:16:35Z

    [FLINK-3857][Streaming Connectors]Add reconnect attempt to Elasticsearch 
host

----


> Add reconnect attempt to Elasticsearch host
> -------------------------------------------
>
>                 Key: FLINK-3857
>                 URL: https://issues.apache.org/jira/browse/FLINK-3857
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming Connectors
>    Affects Versions: 1.1.0, 1.0.2
>            Reporter: Fabian Hueske
>            Assignee: Subhobrata Dey
>
> Currently, the connection to the Elasticsearch host is opened in 
> {{ElasticsearchSink.open()}}. In case the connection is lost (maybe due to a 
> changed DNS entry), the sink fails.
> I propose to catch the Exception for lost connections in the {{invoke()}} 
> method and try to re-open the connection for a configurable number of times 
> with a certain delay.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to