Chu Cheng Li created HDDS-18018:
-----------------------------------

             Summary: Let GetBlock return only the chunks of the requested range
                 Key: HDDS-18018
                 URL: https://issues.apache.org/jira/browse/HDDS-18018
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Client, Ozone Datanode
            Reporter: Chu Cheng Li


On the default read path a read starts with a GetBlock, and the response 
carries the {{ChunkInfo}} of every chunk of the block with all of its 
checksums. A reader that wants a few KB still gets the whole list. For a 4 KB 
S3 range GET from an 80 MB block the GetBlock response is 32 KB, and for a full 
256 MB block it is about 100 KB. The datanode builds it, the network carries it 
and the client parses it for each such read.

HDDS-17865 covers the datanode CPU cost of building the response. This issue is 
about not sending the chunks that the reader does not need.

Proposal: add an optional offset and length to {{GetBlockRequestProto}}.
* When they are set, the datanode returns only the chunks that overlap the 
range, and the client sends another GetBlock when a later read leaves that 
range.
* The fields are optional, so an old datanode ignores them and returns the 
whole list, which the client must still accept.
* The partial parse of HDDS-16727 can find these chunks without decoding the 
others.

Found during the Flink ForSt test for HDDS-17894.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to