maytasm opened a new issue #11230:
URL: https://github.com/apache/druid/issues/11230


   ### Description
   
   Make sleep time for org.apache.druid.java.util.common.RetryUtils configurable
   
   Modify the code so that org.apache.druid.java.util.common.RetryUtils and 
take in parameters configuring the time between each sleep.
   
   ### Motivation
   
   Currently, the sleep time between retry for the 
org.apache.druid.java.util.common.RetryUtils is defined as `min(60000ms, 1000ms 
* pow(2, n - 1))`. The minimum of 60000ms may not always be desirable, 
especially in code path that is initiated by the user via the UI and that the 
user is waiting for the response. 
   
   Some example are the need for retry mechanism in 
`/druid-ext/basic-security/authentication` metadata updates and POST methods of 
`/druid/coordinator/v1/config/compaction` and 
`/druid/coordinator/v1/config/compaction/taskslots?ratio={someRatio}&max={someMaxSlots}`
   


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to