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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to