kaijchen opened a new pull request, #3898: URL: https://github.com/apache/ozone/pull/3898
## What changes were proposed in this pull request? Currently, AllocateBlock takes two major arguments: size and num. There are some problems in the current API: 1. For EC replication type, the allocated size for clients to write is `size` * `ec.numData` * `num`, which is not a good abstraction from the HDDS client's view. 2. It assumes all blocks are in same size. However, sometimes it's useful to let SCM allocate arbitrary size the client wants (e.g. when client know the key size in advance). In this Jira, I wish to add a `requestedSize` field in the AllocateBlock RPC. SCM will calculate how many blocks to allocate based on `requestedSize`, and return size of each block allocated to client. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-7428 ## How was this patch tested? TODO -- 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]
