cndaimin opened a new pull request #4104:
URL: https://github.com/apache/hadoop/pull/4104


   HDFS client 'pread' represents 'position read', this kind of read just need 
a range of data instead of reading the whole file/block. By using 
BlockReaderFactory#setLength, client tells datanode the block length to be read 
from disk and sent to client.
   To EC file, the block length to read is not well set, by default using 
'block.getBlockSize() - offsetInBlock' to both pread and sread. Thus datanode 
read much more data and send to client, and abort when client closes 
connection. There is a lot waste of resource to this situation.


-- 
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]

Reply via email to