Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6102

CurrentModification Exception in BaseAllocator when debugging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.13.0
    • None

    Description

      The following ConcurrentModificationException was observed

      Running org.apache.drill.TestTpchDistributed#tpch19_1
      11:45:47.482 [main] ERROR o.a.d.exec.server.BootStrapContext - Pool did not terminate
      11:45:47.486 [main] ERROR o.a.d.exec.server.BootStrapContext - Error while closing
      java.util.ConcurrentModificationException: null
      at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:732) ~[na:1.7.0_141]
      at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:822) ~[na:1.7.0_141]
      at org.apache.drill.exec.memory.BaseAllocator.print(BaseAllocator.java:751) ~[drill-memory-base-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.memory.BaseAllocator.print(BaseAllocator.java:747) ~[drill-memory-base-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.memory.BaseAllocator.print(BaseAllocator.java:747) ~[drill-memory-base-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.memory.BaseAllocator.toString(BaseAllocator.java:542) ~[drill-memory-base-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.memory.BaseAllocator.close(BaseAllocator.java:495) ~[drill-memory-base-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:76) [drill-common-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:64) [drill-common-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.server.BootStrapContext.close(BootStrapContext.java:256) ~[classes/:na]
      at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:76) [drill-common-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.common.AutoCloseables.close(AutoCloseables.java:64) [drill-common-1.13.0-SNAPSHOT.jar:1.13.0-SNAPSHOT]
      at org.apache.drill.exec.server.Drillbit.close(Drillbit.java:254) [classes/:na]
      at org.apache.drill.test.BaseTestQuery.closeClient(BaseTestQuery.java:311) [test-classes/:1.13.0-SNAPSHOT]
      at sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source) ~[na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_141]
      at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_141]
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:na]
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na]
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:na]
      at mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:44) [jmockit-1.3.jar:na]
      at mockit.integration.junit4.internal.MockFrameworkMethod.invokeExplosively(MockFrameworkMethod.java:29) [jmockit-1.3.jar:na]
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) ~[na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_141]
      at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_141]
      at mockit.internal.util.MethodReflection.invokeWithCheckedThrows(MethodReflection.java:95) [jmockit-1.3.jar:na]
      at mockit.internal.annotations.MockMethodBridge.callMock(MockMethodBridge.java:76) [jmockit-1.3.jar:na]
      at mockit.internal.annotations.MockMethodBridge.invoke(MockMethodBridge.java:41) [jmockit-1.3.jar:na]
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java) [junit-4.11.jar:na]
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) [junit-4.11.jar:na]
      at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) [junit-4.11.jar:na]
      at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
      at org.junit.runners.Suite.runChild(Suite.java:127) [junit-4.11.jar:na]
      at org.junit.runners.Suite.runChild(Suite.java:26) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
      at org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na]
      at org.junit.runner.JUnitCore.run(JUnitCore.java:138) [junit-4.11.jar:na]
      at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113) [surefire-junit47-2.17.jar:2.17]
      at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:94) [surefire-junit47-2.17.jar:2.17]
      at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:58) [surefire-junit47-2.17.jar:2.17]
      at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134) [surefire-junit47-2.17.jar:2.17]
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) [surefire-booter-2.17.jar:2.17]
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) [surefire-booter-2.17.jar:2.17]
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [surefire-booter-2.17.jar:2.17]

      This is happening because we don't synchronize on the DEBUG_LOCK in the BaseAllocator#print method.

      Attachments

        Issue Links

          Activity

            People

              timothyfarkas Timothy Farkas
              timothyfarkas Timothy Farkas
              Parth Chandra Parth Chandra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: