You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/06/06 06:02:10 UTC

[GitHub] [hadoop] supratimdeka opened a new pull request #917: HDDS-1621. writeData in ChunkUtils should not use AsynchronousFileChannel. Contributed by Supratim Deka

supratimdeka opened a new pull request #917: HDDS-1621. writeData in ChunkUtils should not use AsynchronousFileChannel. Contributed by Supratim Deka
URL: https://github.com/apache/hadoop/pull/917
 
 
   https://issues.apache.org/jira/browse/HDDS-1621
   
   2 changes:
   1. invoking a force+close on the channel inside writeData if dfs.container.chunk.write.sync is true. The force is triggered outside of the file lock, to avoid unnecessary lock contention.
   2. change AsynchronousFileChannel to FileChannel for writing the file. This is the right thing to do because writeStateMachineData is already scheduling the write chunk requests asynchronously on threads from XceiverServerRatis.chunkExecutor.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org