[ https://issues.apache.org/jira/browse/HADOOP-17144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188694#comment-17188694 ]
Hemanth Boyina edited comment on HADOOP-17144 at 9/1/20, 5:41 PM: ------------------------------------------------------------------ {quote}Lz4Decompressor#setInputFromSavedData copies the part of the userBuf to compressedDirectBuf (working buffer) considering the capacit {quote} directBufferSize will be the size of raw data , so the compressedDirectBuf and UncompressedDirectBuf will have of same size {code:java} ((ByteBuffer) compressedDirectBuf).put(userBuf, userBufOff, compressedDirectBufLen); {code} userBuf will be total compressed buffer and compressedDirectBufLen is total number of compressed bytes , so the total userBuf will be kept in compressedDirectBuf here and the same is used for decompression With existing code for a raw data of length 204800 , the compressedDirectBuf and UncompressedDirectBuf will have capacity of 204800 , the compressed bytes size is 197622 , so the total compressed bytes is getting kept in compressedDirectBuf kindly correct me if i am missing something here was (Author: hemanthboyina): {quote}Lz4Decompressor#setInputFromSavedData copies the part of the userBuf to compressedDirectBuf (working buffer) considering the capacit {quote} directBufferSize will be the size of raw data , so the compressedDirectBuf and UncompressedDirectBuf will have of same size {code:java} ((ByteBuffer) compressedDirectBuf).put(userBuf, userBufOff, compressedDirectBufLen); {code} > 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