[ 
https://issues.apache.org/jira/browse/HADOOP-17144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17184793#comment-17184793
 ] 

Masatake Iwasaki commented on HADOOP-17144:
-------------------------------------------

{quote}user's compressed data input will be first kept in userBuf and in 
setInputFromSavedData userBuf will be put in compressedDirectBuf , as the 
compressed data length could be greater than source length we need to expanded 
the buffer
{quote}
The userBuf contains whole input data which is not processed in one path. 
Lz4Decompressor#setInputFromSavedData copies the part of the userBuf to 
compressedDirectBuf (working buffer) considering the capacity. User repeatedly 
calls {{decompress}} and {{needsInput}} until all data in the userBuf are 
consumed (then feeds new input by {{setInput}}). We can not expect the 
compressedDirectBuf can hold whole input at a time.

> Update Hadoop's lz4 to v1.9.2
> -----------------------------
>
>                 Key: HADOOP-17144
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17144
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Hemanth Boyina
>            Assignee: Hemanth Boyina
>            Priority: Major
>         Attachments: HADOOP-17144.001.patch, HADOOP-17144.002.patch, 
> HADOOP-17144.003.patch, HADOOP-17144.004.patch
>
>
> Update hadoop's native lz4 to v1.9.2 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to