weijietong opened a new pull request #2000: DRILL-7607: support dynamic credit 
based flow control
URL: https://github.com/apache/drill/pull/2000
 
 
   # [DRILL-7607](https://issues.apache.org/jira/browse/DRILL-7607): support 
dynamic credit based flow control
   
   ## Description
   change the static credit based flow control to dynamic credit based flow 
control.
   The logic is as below:
   Initially, the sender sends the batch according to the initial static sender 
semaphore. After the receiver receives enough data ,it calculates the runtime 
credit value , sends the runtime credit value to the sender as the ACK 
response.  Then the sender receives this runtime credit value, changes to this 
runtime credit value from the initial credit value.
   
   The runtime generated credit value will only be generated one time. It will 
not be changed again to make the flow control logic simple.
   
   The ACK response credit value has three type numeric value with different 
meaning: 
   
   -1 : meaning ACK for a fail response
   0 :  no runtime credit value to suggest to the sender , the sender still 
sends its data as its initial static credit value(current: 3)  
   value > 0  :    meaning a suggested runtime credit value from the receiver.
   
   ## Documentation
   NO
   
   ## Testing
   TestBitRpc,testConnectionBackpressure
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to