jduo opened a new pull request, #41051:
URL: https://github.com/apache/arrow/pull/41051

   ### Rationale for this change
   
   gRPC uses a default backpressure threshold that is too low for services that 
send large amounts of data such as Arrow Flight. This causes excessive blocking 
and reduces throughput.
   
   ### What changes are included in this PR?
   
   * Update to grpc-java 1.63.0
   * Add to FlightServer.Builder an option to set the number of bytes queued 
before blocking due to backpressure. Set the default to 10MB instead of gRPC's 
default of 64K.
   * Add a ServerInterceptor for automating setting the backpressure threshold 
on ServerCalls.
   
   ### Are these changes tested?
   
   Tested through existing unit tests.
   
   ### Are there any user-facing changes?
   
   The FlightServer.Builder class has an extra configuration option to let 
users change the backpressure threshold themselves.
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please uncomment the line 
below and explain which changes are breaking.
   -->
   <!-- **This PR includes breaking changes to public APIs.** -->
   
   <!--
   Please uncomment the line below (and provide explanation) if the changes fix 
either (a) a security vulnerability, (b) a bug that caused incorrect or invalid 
data to be produced, or (c) a bug that causes a crash (even when the API 
contract is upheld). We use this to highlight fixes to issues that may affect 
users without their knowledge. For this reason, fixing bugs that cause errors 
don't count, since those are usually obvious.
   -->
   <!-- **This PR contains a "Critical Fix".** -->


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to