huaxingao commented on code in PR #14499:
URL: https://github.com/apache/iceberg/pull/14499#discussion_r2497187339


##########
arrow/src/main/java/org/apache/iceberg/arrow/ArrowAllocation.java:
##########
@@ -21,14 +21,29 @@
 import org.apache.arrow.memory.RootAllocator;
 
 public class ArrowAllocation {
+  private static final String ALLOCATION_MANAGER_TYPE_PROPERTY =
+      "arrow.memory.allocation.manager.type";
+
   static {
-    ROOT_ALLOCATOR = new RootAllocator(Long.MAX_VALUE);
+    if (System.getProperty(ALLOCATION_MANAGER_TYPE_PROPERTY) == null) {
+      System.setProperty(ALLOCATION_MANAGER_TYPE_PROPERTY, "Netty");
+    }

Review Comment:
   Could we add a brief comment explaining why we set 
`arrow.memory.allocation.manager.type` to `Netty`, and consider logging at 
debug when we default it to Netty so it’s visible at runtime?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to