[ 
https://issues.apache.org/jira/browse/BEAM-5370?focusedWorklogId=143883&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-143883
 ]

ASF GitHub Bot logged work on BEAM-5370:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Sep/18 07:33
            Start Date: 13/Sep/18 07:33
    Worklog Time Spent: 10m 
      Work Description: echauchot closed pull request #6374: [BEAM-5370] Set a 
cause exception in ElasticsearchIO#getBackendVersion
URL: https://github.com/apache/beam/pull/6374
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java
 
b/sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java
index 9d8eaf268ab..b60dc4777a0 100644
--- 
a/sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java
+++ 
b/sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java
@@ -1273,7 +1273,7 @@ static int getBackendVersion(ConnectionConfiguration 
connectionConfiguration) {
       return backendVersion;
 
     } catch (IOException e) {
-      throw (new IllegalArgumentException("Cannot get Elasticsearch version"));
+      throw (new IllegalArgumentException("Cannot get Elasticsearch version", 
e));
     }
   }
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 143883)
    Time Spent: 40m  (was: 0.5h)

> Set a cause exception in ElasticsearchIO#getBackendVersion
> ----------------------------------------------------------
>
>                 Key: BEAM-5370
>                 URL: https://issues.apache.org/jira/browse/BEAM-5370
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-elasticsearch
>    Affects Versions: 2.6.0
>            Reporter: Shinsuke Sugaya
>            Assignee: Etienne Chauchot
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I could not check a root cause of IllegalArgumentException in 
> ElasticsearchIO#getBackendVersion.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to