Chu Cheng Li created HDDS-17916:
-----------------------------------
Summary: Seek on a multi-block key sends GetBlock for every block
Key: HDDS-17916
URL: https://issues.apache.org/jira/browse/HDDS-17916
Project: Apache Ozone
Issue Type: Improvement
Components: Ozone Client
Reporter: Chu Cheng Li
Assignee: Chu Cheng Li
A seek on a key sends one GetBlock for every block of the key, not only for the
block it reads. S3G seeks for every range GET, so a range GET on a multipart
object costs one GetBlock for each part.
Example: a 4 KiB range GET on an object with 16 parts sends 16 GetBlock
requests. The same GET on a single-block object sends 1.
Cause: {{MultipartInputStream.initialize()}} calls
{{BlockInputStream.initialize()}} on all blocks (HDDS-11220). Only an
under-construction block needs this, to get its length from the datanode. OM
already has the length of the other blocks.
Proposal: at seek, initialize only an under-construction block. The other
blocks initialize on first read. {{StreamBlockInputStream}} already works this
way.
Found with Flink ForSt state on S3 (HDDS-17894), which reads multipart SST
files with small range GETs.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]