use of org.neo4j.consistency.ConsistencyCheckService.Result in project neo4j by neo4j.
the class ConsistencyCheckServiceIntegrationTest method shouldSucceedIfStoreIsConsistent.
@Test
public void shouldSucceedIfStoreIsConsistent() throws Exception {
// given
Date timestamp = new Date();
ConsistencyCheckService service = new ConsistencyCheckService(timestamp);
Config configuration = Config.embeddedDefaults(settings());
// when
ConsistencyCheckService.Result result = runFullConsistencyCheck(service, configuration);
// then
assertTrue(result.isSuccessful());
File reportFile = result.reportFile();
assertFalse("Unexpected generation of consistency check report file: " + reportFile, reportFile.exists());
}
use of org.neo4j.consistency.ConsistencyCheckService.Result in project neo4j by neo4j.
the class ParallelBatchImporterTest method assertConsistent.
private void assertConsistent(File storeDir) throws ConsistencyCheckIncompleteException, IOException {
ConsistencyCheckService consistencyChecker = new ConsistencyCheckService();
Result result = consistencyChecker.runFullConsistencyCheck(storeDir, Config.embeddedDefaults(stringMap(GraphDatabaseSettings.pagecache_memory.name(), "8m")), ProgressMonitorFactory.NONE, NullLogProvider.getInstance(), false);
assertTrue("Database contains inconsistencies, there should be a report in " + storeDir, result.isSuccessful());
}
use of org.neo4j.consistency.ConsistencyCheckService.Result in project neo4j by neo4j.
the class MultipleIndexPopulationStressIT method runTest.
private void runTest(int nodeCount, int run, boolean multiThreaded) throws Exception {
// WHEN creating the indexes under stressful updates
populateDbAndIndexes(nodeCount, multiThreaded);
ConsistencyCheckService cc = new ConsistencyCheckService();
Result result = cc.runFullConsistencyCheck(directory.graphDbDir(), Config.embeddedDefaults(stringMap(GraphDatabaseSettings.pagecache_memory.name(), "8m")), NONE, NullLogProvider.getInstance(), false);
assertTrue(result.isSuccessful());
dropIndexes();
}
Aggregations