davisusanibar commented on code in PR #15223:
URL: https://github.com/apache/arrow/pull/15223#discussion_r1072216629


##########
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowRecordBatch.java:
##########
@@ -89,7 +107,9 @@ public ArrowRecordBatch(
     List<ArrowBuffer> arrowBuffers = new ArrayList<>(buffers.size());
     long offset = 0;
     for (ArrowBuf arrowBuf : buffers) {
-      arrowBuf.getReferenceManager().retain();
+      if (retainBuffers) {

Review Comment:
   Could you try to explain why working with compression options impact or is 
needed to add this flag  "retainBuffers"? 
   
   What will be the error if this flag retainBuffers is not added?



-- 
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]

Reply via email to