OOM in unit tests was fixed.
@@ -188,6 +188,7 @@ public final class ODirectMemoryOnlyDiskCache extends OAbstractWriteCache implem
cacheEntry.acquireExclusiveLock();
+ cacheEntry.clearPageOperations();
return cacheEntry;
}
@@ -282,6 +283,7 @@ public final class ODirectMemoryOnlyDiskCache extends OAbstractWriteCache implem
@Override
public final void releaseFromWrite(final OCacheEntry cacheEntry, final OWriteCache writeCache, boolean changed) {
+ cacheEntry.clearPageOperations();
cacheEntry.releaseExclusiveLock();
doRelease(cacheEntry);
