[ https://issues.apache.org/jira/browse/HDFS-8804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640768#comment-14640768 ]
Jing Zhao commented on HDFS-8804: --------------------------------- Both {{duplicate}} and {{slice}} only play with the limit/position and the content of the buffer is shared. So calling {{duplicate}} makes sure we do not need to change the limit/position of the original buffer directly. > Erasure Coding: use DirectBufferPool in DFSStripedInputStream for buffer > allocation > ----------------------------------------------------------------------------------- > > Key: HDFS-8804 > URL: https://issues.apache.org/jira/browse/HDFS-8804 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Jing Zhao > Assignee: Jing Zhao > Attachments: HDFS-8804.000.patch > > > Currently we directly allocate direct ByteBuffer in DFSStripedInputstream for > the stripe buffer and the buffers holding parity data. It's better to get > ByteBuffer from DirectBufferPool. -- This message was sent by Atlassian JIRA (v6.3.4#6332)