Async index abort should work even during traversals without index updates
Given that traversedNode can be called in reindexing also the test
case should ensure that initial index update is done
@@ -401,6 +401,8 @@ public class AsyncIndexUpdateLeaseTest extends OakBaseTest {
@Test
public void testLeaseUpdateAndNumberOfChanges() throws Exception {
+ // take care of initial reindex before
+ new AsyncIndexUpdate(name, store, provider).run();
final long lease = 50;
testContent(store, AsyncUpdateCallback.LEASE_CHECK_INTERVAL / 2);
Set<Long> leaseTimes = Sets.newHashSet();
