You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 18:22:06 UTC

[GitHub] [beam] damccorm opened a new issue, #20639: Error handling in ElasticIO write method

damccorm opened a new issue, #20639:
URL: https://github.com/apache/beam/issues/20639

   ElasticIO write method could sometimes raise Elastic internal errors, like invalid mapping, too many request or other. In this case, it can be usefull to retrieve uncommitted documents into output PCollection to isolate them. What the best way to achieve this ? Could it be implemented directly into ElasticIO connector ?
   
   Imported from Jira [BEAM-11309](https://issues.apache.org/jira/browse/BEAM-11309). Original Jira may contain additional context.
   Reported by: lionelsetan.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] egalpin closed issue #20639: Error handling in ElasticIO write method

Posted by GitBox <gi...@apache.org>.
egalpin closed issue #20639: Error handling in ElasticIO write method
URL: https://github.com/apache/beam/issues/20639


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] egalpin commented on issue #20639: Error handling in ElasticIO write method

Posted by GitBox <gi...@apache.org>.
egalpin commented on issue #20639:
URL: https://github.com/apache/beam/issues/20639#issuecomment-1227519551

   This is now supported (as of 2.38.0, but strongly recommend using >=2.41.0) by doing the following:
   
   ```java
   PCollectionTuple esWriteResults = myPcollection.apply(ElasticsearchIO.write().withThrowWriteErrors(false));
   
   PCollection<Document> failedDocs = esWriteResults.get(ElasticsearchIO.Write.FAILED_WRITES);
   failedDocs.apply("do something with failed writes", ...)
   ```


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org