Details
-
Bug
-
Status: Resolved
-
P1
-
Resolution: Duplicate
-
2.8.0
-
None
Description
Configuring retry functionality on ElasticsearchIO.write(), i.e.
ElasticsearchIO.write()
{{ .withRetryConfiguration(ElasticsearchIO.RetryConfiguration.create(3, Duration.millis(30_000)))}}
Causes us to get this error when flushBundle is trying to checkForErrors (specifically when parseResponse is trying to ready the response). The error is:
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
The problem is that the retry functionality has already read the response. By turning off the retry functionality, the problem is resolved.