aajisaka commented on a change in pull request #2003:
URL: https://github.com/apache/hadoop/pull/2003#discussion_r422719035
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/SnappyCompressor.java
##########
@@ -234,8 +234,6 @@ public int compress(byte[] b, int off, int len)
finished = true;
}
- // Get atmost 'len' bytes
- n = Math.min(n, len);
Review comment:
This change is not needed. Reverted the change.
I would like to add a test case for this problem.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]