This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git


The following commit(s) were added to refs/heads/main by this push:
     new 24f5cb1f6 GH-1460: Log the allocation manager inferred from the 
classpath instead of hardcoding log with netty (#1461)
24f5cb1f6 is described below

commit 24f5cb1f6ac2f44734701bcc926cd52c4a2eb6e7
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Nov 13 05:20:41 2026 +0100

    GH-1460: Log the allocation manager inferred from the classpath instead of 
hardcoding log with netty (#1461)
    
    ## What's Changed
    
    Previous log was wrong and hardcoded:
    ```
    12:40:22.176 [main] INFO  o.a.a.m.DefaultAllocationManagerOption - 
allocation manager type not specified, using netty as the default type
    12:40:22.178 [main] INFO  o.apache.arrow.memory.CheckAllocator - Using 
DefaultAllocationManager at 
memory-unsafe/20.0.0-SNAPSHOT/arrow-memory-unsafe-20.0.0-SNAPSHOT.jar!/org/apache/arrow/memory/unsafe/DefaultAllocationManagerFactory.class
    ```
    
    New log shows for `memory-unsafe`:
    ```
    13:13:56.672 [main] INFO  o.apache.arrow.memory.CheckAllocator - Using 
DefaultAllocationManager at 
memory/memory-unsafe/target/classes/org/apache/arrow/memory/unsafe/DefaultAllocationManagerFactory.class
    13:13:56.680 [main] INFO  o.a.a.m.DefaultAllocationManagerOption - 
allocation manager type not specified, inferred 
org.apache.arrow.memory.unsafe.DefaultAllocationManagerFactory from the 
classpath
    ```
    
    For netty:
    ```
    13:13:51.165 [main] INFO  o.apache.arrow.memory.CheckAllocator - Using 
DefaultAllocationManager at 
memory/memory-netty/target/classes/org/apache/arrow/memory/netty/DefaultAllocationManagerFactory.class
    13:13:51.219 [main] INFO  o.a.a.m.DefaultAllocationManagerOption - 
allocation manager type not specified, inferred 
org.apache.arrow.memory.netty.DefaultAllocationManagerFactory from the classpath
    ```
    
    Closes #1460.
---
 .../org/apache/arrow/memory/DefaultAllocationManagerOption.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java
 
b/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java
index b5e508017..2ecf6722b 100644
--- 
a/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java
+++ 
b/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java
@@ -88,8 +88,11 @@ public class DefaultAllocationManagerOption {
         DEFAULT_ALLOCATION_MANAGER_FACTORY = getUnsafeFactory();
         break;
       case Unknown:
-        LOGGER.info("allocation manager type not specified, using netty as the 
default type");
-        DEFAULT_ALLOCATION_MANAGER_FACTORY = 
getFactory(CheckAllocator.check());
+        String allocationManagerClass = CheckAllocator.check();
+        DEFAULT_ALLOCATION_MANAGER_FACTORY = 
getFactory(allocationManagerClass);
+        LOGGER.info(
+            "allocation manager type not specified, inferred {} from the 
classpath",
+            allocationManagerClass);
         break;
       default:
         throw new IllegalStateException("Unknown allocation manager type: " + 
type);

Reply via email to