GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Reading variable sized data (a small entry followed by a large entry) leads to IndexOutOfBoundsException · Issue #183 · lmdbjava/lmdbjava Closed DescriptionThis is a bit of a doozy. We're in the process of moving an application to lmdbjava. We observe that when running the tests the following occurs:
For example: This occurs using the very standard code to iterate over all the keys in a table: try (final CursorIterable<ByteBuf> cursor = table.iterate(txn)) { for (final KeyVal<ByteBuf> kv : cursor) { final ByteBuf keyBuffer = kv.key(); final ByteBuf valueBuffer = kv.val();
Additionally if we run a single test using the -Dtest=$TestName syntax the test passes fine. Clearly there is some erorr related to static state that is leading to inter-test dependencies. If we eliminate static state by running each Test in its own JVM all the tests pass. If we run the tests run the tests in the same JVM fails. I've tried to dig into this and get some idea of what's happening and I doi believe the problem is related to the ByteBufProxy class. There are some red flags in this class:
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |