kaijchen commented on PR #3882: URL: https://github.com/apache/ozone/pull/3882#issuecomment-1292893176
> IMO, the metedata service might not have to know the blocksize of storage layer and just send request size and storage type(EC or ratis or Standalone)to storage layers. the task of calculating how many block is needed should be take by storage layer(scm) and return appropriate block numbers. I agree, however the current RPC is `AllocateBlock(blockSize, numBlocks)`, it's probably better to change it to `AllocateBlock(totalSize)` for this abstraction. -- 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]
