davidradl commented on code in PR #57: URL: https://github.com/apache/flink-connector-http/pull/57#discussion_r4232161336
########## docs/content.zh/docs/connectors/datastream/http.md: ########## @@ -82,7 +83,21 @@ These options are specified on the builder using the setProperty method. | http.sink.writer.request.mode | optional | Sets the Http Sink request submission mode. Two modes are available: `single` and `batch`. Defaults to `batch` if not specified. | | http.sink.request.batch.size | optional | Applicable only for `http.sink.writer.request.mode = batch`. Sets number of individual events/requests that will be submitted as one HTTP request by HTTP sink. The default value is 500 which is same as HTTP Sink `maxBatchSize` | - +### Retries and handling errors (Sink) +Retries are disabled by default: `http.sink.max-retries` defaults to `0`, so the first failed request fails the job. + +When `http.sink.max-retries` is greater than `0`, the sink retries requests that fail before a response is received (for +example, connection errors) and responses whose status code is listed in `http.sink.retry-codes`. The delay between +retries is set by `http.sink.retry-strategy.type` and the matching fixed-delay or exponential-delay options. Any other +response that is not successful or ignored is not retried and fails the job. A request that still fails with a retryable +error after the last retry also fails the job. + +In batch submission mode, each HTTP request carries several records and gets one response status, which applies to every Review Comment: can we get more granular information? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
