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/08/25 16:48:12 UTC
[GitHub] [beam] egalpin commented on issue #20639: Error handling in ElasticIO write method
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