arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (ARROW-105) Unit tests fail if assertions are disabled
Date Mon, 13 Feb 2017 16:38:42 GMT

     [ https://issues.apache.org/jira/browse/ARROW-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wes McKinney reopened ARROW-105:
--------------------------------
      Assignee: Laurent Goujon

> Unit tests fail if assertions are disabled
> ------------------------------------------
>
>                 Key: ARROW-105
>                 URL: https://issues.apache.org/jira/browse/ARROW-105
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Memory
>            Reporter: Laurent Goujon
>            Assignee: Laurent Goujon
>            Priority: Minor
>             Fix For: 0.1.0
>
>
> Some unit tests fail with the following stack trace if assertions are disabled.
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.arrow.memory.BaseAllocator.verifyAllocator(BaseAllocator.java:589)
> 	at org.apache.arrow.memory.BaseAllocator.verifyAllocator(BaseAllocator.java:570)
> 	at org.apache.arrow.memory.RootAllocator.verify(RootAllocator.java:37)
> 	at org.apache.arrow.memory.TestBaseAllocator.testAllocator_claimedReservation(TestBaseAllocator.java:574)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
> 	Suppressed: java.lang.IllegalStateException: Memory was leaked by query. Memory leaked:
(64)
> Allocator(claimedReservation) 0/64/64/8192 (res/actual/peak/limit)
> 		at org.apache.arrow.memory.BaseAllocator.close(BaseAllocator.java:497)
> 		at org.apache.arrow.memory.TestBaseAllocator.testAllocator_claimedReservation(TestBaseAllocator.java:580)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 		at java.lang.reflect.Method.invoke(Method.java:606)
> 		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 		at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:120)
> 		at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:65)
> 		at mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:29)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 		at java.lang.reflect.Method.invoke(Method.java:606)
> 		at mockit.internal.util.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:95)
> 		at mockit.internal.annotations.MockMethodBridge.callMock(MockMethodBridge.java:76)
> 		at mockit.internal.annotations.MockMethodBridge.invoke(MockMethodBridge.java:41)
> 		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
> 		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 		at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 		at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 		at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 		... 6 more
> 	Suppressed: java.lang.IllegalStateException: Memory was leaked by query. Memory leaked:
(64)
> Allocator(ROOT) 0/64/64/8192 (res/actual/peak/limit)
> 		at org.apache.arrow.memory.BaseAllocator.close(BaseAllocator.java:497)
> 		at org.apache.arrow.memory.TestBaseAllocator.testAllocator_claimedReservation(TestBaseAllocator.java:581)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 		at java.lang.reflect.Method.invoke(Method.java:606)
> 		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 		at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.executeTestMethod(JUnit4TestRunnerDecorator.java:120)
> 		at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:65)
> 		at mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:29)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 		at java.lang.reflect.Method.invoke(Method.java:606)
> 		at mockit.internal.util.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:95)
> 		at mockit.internal.annotations.MockMethodBridge.callMock(MockMethodBridge.java:76)
> 		at mockit.internal.annotations.MockMethodBridge.invoke(MockMethodBridge.java:41)
> 		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
> 		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 		at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 		at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 		at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 		... 6 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message