wuchong commented on a change in pull request #9008: [FLINK-12942][docs-zh] Translate Elasticsearch Connector page into Ch… URL: https://github.com/apache/flink/pull/9008#discussion_r300869109
########## File path: docs/dev/connectors/elasticsearch.zh.md ########## @@ -334,22 +306,14 @@ env.enableCheckpointing(5000) // checkpoint every 5000 msecs </div> </div> -<p style="border-radius: 5px; padding: 5px" class="bg-danger"> -<b>NOTE</b>: Users can disable flushing if they wish to do so, by calling -<b>disableFlushOnCheckpoint()</b> on the created <b>ElasticsearchSink</b>. Be aware -that this essentially means the sink will not provide any strong -delivery guarantees anymore, even with checkpoint for the topology enabled. -</p> +<p style =“border-radius:5px; padding:5px”class =“bg-danger”> +<b>注意</b>:如果用户希望在创建的 <b>ElasticsearchSink</b> 上禁用刷新,可以通过调用 <b>disableFlushOnCheckpoint()</b> 。意识到这基本上意味着接收器不会提供任何强大的功能即使启用了 topology 的 checkpoint ,也可以保证交付。</p> -### Handling Failing Elasticsearch Requests +### 处理失败的 Elasticsearch 请求 -Elasticsearch action requests may fail due to a variety of reasons, including -temporarily saturated node queue capacity or malformed documents to be indexed. -The Flink Elasticsearch Sink allows the user to specify how request -failures are handled, by simply implementing an `ActionRequestFailureHandler` and -providing it to the constructor. +由于各种原因,Elasticsearch 操作请求可能会失败,包括暂时饱和的节点队列容量或要编入索引的格式错误的文档。Flink Elasticsearch Sink 允许用户指定请求的方式通过简单地实现 `ActionRequestFailureHandler` 来处理失败并将它提供给构造函数。 Review comment: ```suggestion 由于各种原因,发给 Elasticsearch 的操作请求可能会失败,如暂时饱和的节点队列容量或索引异常文档。Flink Elasticsearch Sink 允许用户指定如何处理请求失败,通过简单地实现`ActionRequestFailureHandler`接口并传给 ElasticsearchSink 的构造函数即可。 ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
