szetszwo commented on PR #6613: URL: https://github.com/apache/ozone/pull/6613#issuecomment-3481778455
> How is this going to look on the server? If the server gives up its handler thread after sending each piece of the block to the client then for each onNext() from the client, ... Not sure about you question. Here is an example: - Client: opens the block and requests with 10KB. Client: sends an onNext() request with 10KB. Server: Since this is the first request, it opens the file. Server: invokes a readChunk call to read 1MB (rounding up the chunk boundary) Server: sends an onNext() response with 1MB data. - Client: requests 20KB Client: returns the data since it is already in client buffer (No onNext() request) - Client: requests 50MB Client: sends an onNext() request with 50MB. Server: loop 50 times below (a) invokes a readChunk call to read 1MB (b) sends an onNext() response with 1MB data. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
