From d97016ef6e9e51389ef090e2a9732515cdbc5d67 Mon Sep 17 00:00:00 2001 From: Alexander Patrikalakis Date: Wed, 2 Mar 2016 14:23:28 +0900 Subject: [PATCH] Assert that loaded key count is 2000 after commit This test makes the assumption that the underlying store has the ability to read uncommitted transactions. http://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/Cursor.html This may very well be the behavior of Berkeley JE transactions as they are created in titan-berkeleyje, but it is not part of the OrderedKeyValueStore interface/specification. Actually, it seems like the isolation/lock modes are configurable in titan-berkeleyje. --- .../com/thinkaurelius/titan/diskstorage/KeyValueStoreTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titan-test/src/main/java/com/thinkaurelius/titan/diskstorage/KeyValueStoreTest.java b/titan-test/src/main/java/com/thinkaurelius/titan/diskstorage/KeyValueStoreTest.java index 0eb13df11f..2ed73c3d6b 100644 --- a/titan-test/src/main/java/com/thinkaurelius/titan/diskstorage/KeyValueStoreTest.java +++ b/titan-test/src/main/java/com/thinkaurelius/titan/diskstorage/KeyValueStoreTest.java @@ -196,8 +196,8 @@ public void scanTest() throws BackendException { String[] values = generateValues(); loadValues(values); RecordIterator iterator0 = getAllData(tx); - Assert.assertEquals(numKeys, KeyValueStoreUtil.count(iterator0)); clopen(); + Assert.assertEquals(numKeys, KeyValueStoreUtil.count(iterator0)); RecordIterator iterator1 = getAllData(tx); RecordIterator iterator2 = getAllData(tx);