org.lmdbjava.Txn$BadReaderLockException: Invalid reuse of reader locktable slot (-30783)

GitHub | kamstrup | 3 months ago
  1. 0

    BadReaderLockException on concurrent read transactions

    GitHub | 3 months ago | kamstrup
    org.lmdbjava.Txn$BadReaderLockException: Invalid reuse of reader locktable slot (-30783)

    Root Cause Analysis

    1. org.lmdbjava.Txn$BadReaderLockException

      Invalid reuse of reader locktable slot (-30783)

      at org.lmdbjava.ResultCodeMapper.<clinit>()
    2. org.lmdbjava
      TxnTest.before
      1. org.lmdbjava.ResultCodeMapper.<clinit>(ResultCodeMapper.java:54)
      2. org.lmdbjava.Env$Builder.open(Env.java:369)
      3. org.lmdbjava.TxnTest.before(TxnTest.java:81)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    4. JUnit
      JUnitCore.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      6. org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      7. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      8. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      10. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      11. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      12. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      13. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      14. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      15. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      16. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      17. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      17 frames
    5. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    6. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    8. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame