RyanSkraba commented on code in PR #3745:
URL: https://github.com/apache/avro/pull/3745#discussion_r3190601211
##########
lang/java/avro/src/main/java/org/apache/avro/file/BZip2Codec.java:
##########
@@ -45,7 +47,7 @@ public String getName() {
@Override
public ByteBuffer compress(ByteBuffer uncompressedData) throws IOException {
- NonCopyingByteArrayOutputStream baos = new
NonCopyingByteArrayOutputStream(DEFAULT_BUFFER_SIZE);
+ NonCopyingByteArrayOutputStream baos =
restrictedCapacityOutputStream(DEFAULT_BUFFER_SIZE);
Review Comment:
I just want to confirm: did you actually want this to be restricted? I
thought the last round of review landed on *not* setting a limit on compression
(despite Claude's enthusiasm!)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]