You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/14 04:15:14 UTC

[GitHub] [doris-flink-connector] doubly-yi commented on issue #80: [Bug] retry infinite 2pc

doubly-yi commented on issue #80:
URL: https://github.com/apache/doris-flink-connector/issues/80#issuecomment-1350373647

   I had a similar problem and I wanted to not keep retrying after a failed write. And I set the maximum number of retries does not take effect.
   ```java
   DorisExecutionOptions.Builder executionBuilder = DorisExecutionOptions.builder();
   executionBuilder.setMaxRetries(2);
   ```
   ```java
   DorisSink.sink(
   
                   DorisReadOptions.builder().build(),
                   DorisExecutionOptions.builder()
                           //.setBatchSize(1)
                           //.setBatchIntervalMs(0L)
                           .setMaxRetries(1)
                           .setStreamLoadProp(properties)
                           .build(),
                   DorisOptions.builder()
                           .setFenodes(feNodes)
                           .setTableIdentifier(tableIdentifier)
                           .setUsername(username)
                           .setPassword(password)
                           .build()
           );
   ```


-- 
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: commits-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org