milleruntime commented on a change in pull request #1367: Retry new Bulk import on merge. Fixes
#471
URL: https://github.com/apache/accumulo/pull/1367#discussion_r333618435
##########
File path: core/src/main/java/org/apache/accumulo/core/clientImpl/bulk/BulkImport.java
##########
@@ -127,9 +131,13 @@ public void load()
SortedMap<KeyExtent,Bulk.Files> mappings;
TableOperationsImpl tableOps = new TableOperationsImpl(context);
+ Retry retry = Retry.builder().infiniteRetries().retryAfter(100, MILLISECONDS)
+ .incrementBy(100, MILLISECONDS).maxWait(2, SECONDS).backOffFactor(1.5)
Review comment:
I don't see a way to set a max total time with Retry... we either have to use ```infiniteRetries()```
or set a number of retries with ```maxRetries(long max)```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
|