use of org.neo4j.io.pagecache.randomharness.RandomPageCacheTestHarness in project neo4j by neo4j.
the class PageCacheHarnessTest method concurrentFlushingMustNotPutInterleavedDataIntoFile.
@Test(timeout = LONG_TIMEOUT_MILLIS)
public void concurrentFlushingMustNotPutInterleavedDataIntoFile() throws Exception {
final RecordFormat recordFormat = new StandardRecordFormat();
final int filePageCount = 2_000;
try (RandomPageCacheTestHarness harness = new RandomPageCacheTestHarness()) {
harness.setConcurrencyLevel(16);
harness.setUseAdversarialIO(false);
harness.setCachePageCount(filePageCount / 2);
harness.setFilePageCount(filePageCount);
harness.setCachePageSize(pageCachePageSize);
harness.setFilePageSize(pageCachePageSize);
harness.setInitialMappedFiles(3);
harness.setCommandCount(15_000);
harness.setFileSystem(fs);
harness.disableCommands(MapFile, UnmapFile, ReadRecord, ReadMulti);
harness.setVerification(filesAreCorrectlyWrittenVerification(recordFormat, filePageCount));
harness.run(LONG_TIMEOUT_MILLIS, MILLISECONDS);
}
}
Aggregations