roryqi commented on PR #10619:
URL: https://github.com/apache/gravitino/pull/10619#issuecomment-4167962485

   > Arrow’s Java examples use try-with-resources for both Dataset and 
BufferAllocator, implying they are co-managed resources and are closed in 
reverse order (dataset before allocator). See 
https://arrow.apache.org/java/18.2.0/dataset.html
   > 
   > There are also upstream Arrow issues showing that if resources backed by 
the allocator aren’t released, the allocator can fail to close cleanly or 
retain memory. e.g. 
[apache/arrow-java#1037](https://github.com/apache/arrow-java/issues/1037)
   
   OK to change the order.


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