[jira] [Commented] (DRILL-8342) Add Automatic Retry for Rate Limited APIs

2022-10-22 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/DRILL-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17622716#comment-17622716
 ] 

ASF GitHub Bot commented on DRILL-8342:
---

cgivre opened a new pull request, #2691:
URL: https://github.com/apache/drill/pull/2691

   # [DRILL-8342](https://issues.apache.org/jira/browse/DRILL-8342): Add 
Automatic Retry for Rate Limited APIs
   
   ## Description
   Many APIs have a burst limit for number of requests.  This PR adds a retry 
capability to the HTTP Storage Plugin, whereby if a 429 response code is 
received, Drill will wait a configurable amount of time, and retry the request 
once. 
   To prevent runaway pagination, this retry will only happen once per request. 
   This PR adds a new configuration option called retryDelay which is the 
number of milliseconds that Drill should wait between retrys.
   
   ## Documentation
   When using automatic pagination, you may encounter APIs that have burst 
limits or other limits
   as to the maximum number of requests in a minute or other amount of time.  
Drill allows you to
   set a `retryDelay` parameter which is the number of milliseconds that Drill 
should wait before
   resending the request.  This defaults to 1 second.  This option is set in 
the configuration for
   the HTTP plugin.
   
   ## Testing
   Added unit test.




> Add Automatic Retry for Rate Limited APIs
> -
>
> Key: DRILL-8342
> URL: https://issues.apache.org/jira/browse/DRILL-8342
> Project: Apache Drill
>  Issue Type: Improvement
>  Components: Storage - HTTP
>Affects Versions: 1.20.2
>Reporter: Charles Givre
>Assignee: Charles Givre
>Priority: Major
> Fix For: 2.0.0
>
>
> Many APIs have a burst limit for number of requests.  This PR adds a retry 
> capability to the HTTP Storage Plugin, whereby if a 429 response code is 
> received, Drill will wait a configurable amount of time, and retry the 
> request once. 
> To prevent runaway pagination, this retry will only happen once per request. 
> This PR adds a new configuration option called retryDelay which is the number 
> of milliseconds that Drill should wait between retrys.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (DRILL-8342) Add Automatic Retry for Rate Limited APIs

2022-10-22 Thread Charles Givre (Jira)
Charles Givre created DRILL-8342:


 Summary: Add Automatic Retry for Rate Limited APIs
 Key: DRILL-8342
 URL: https://issues.apache.org/jira/browse/DRILL-8342
 Project: Apache Drill
  Issue Type: Improvement
  Components: Storage - HTTP
Affects Versions: 1.20.2
Reporter: Charles Givre
Assignee: Charles Givre
 Fix For: 2.0.0


Many APIs have a burst limit for number of requests.  This PR adds a retry 
capability to the HTTP Storage Plugin, whereby if a 429 response code is 
received, Drill will wait a configurable amount of time, and retry the request 
once. 

To prevent runaway pagination, this retry will only happen once per request. 

This PR adds a new configuration option called retryDelay which is the number 
of milliseconds that Drill should wait between retrys.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)