You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Liya Fan (Jira)" <ji...@apache.org> on 2020/07/03 04:29:00 UTC

[jira] [Commented] (ARROW-9315) [Java] Fix the failure of testAllocationManagerType

    [ https://issues.apache.org/jira/browse/ARROW-9315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150730#comment-17150730 ] 

Liya Fan commented on ARROW-9315:
---------------------------------

This problem is related to the order of class loading:

DefaultAllocationManagerOption#getDefaultAllocationManagerType =>
DefaultAllocationManagerOption#getFactory =>
init NettyAllocationManager#EMPTY_BUFFER =>
init ArrowBuf =>
init BaseAllocator (line 74) => 
init DEFAULT_CONFIG =>
ImmutableConfig (constructor) =>
ImmutableConfig#getAllocationManagerFactory =>
BaseAllocator.Config#getAllocationManagerFactory =>
NPE

> [Java] Fix the failure of testAllocationManagerType
> ---------------------------------------------------
>
>                 Key: ARROW-9315
>                 URL: https://issues.apache.org/jira/browse/ARROW-9315
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Liya Fan
>            Assignee: Liya Fan
>            Priority: Major
>
> It appears sometimes in the CI build. 
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.503 s <<< FAILURE! - in org.apache.arrow.memory.TestAllocationManager
> [ERROR] testAllocationManagerType  Time elapsed: 0.483 s  <<< ERROR!
> java.lang.ExceptionInInitializerError
> 	at org.apache.arrow.memory.TestAllocationManager.testAllocationManagerType(TestAllocationManager.java:35)
> Caused by: java.lang.NullPointerException: allocationManagerFactory
> 	at org.apache.arrow.memory.TestAllocationManager.testAllocationManagerType(TestAllocationManager.java:35)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)