Search in sources :

Example 6 with StoreFile

use of org.neo4j.kernel.impl.storemigration.StoreFile in project neo4j by neo4j.

the class TestBackup method ensureStoresHaveIdFiles.

private void ensureStoresHaveIdFiles(File path) throws IOException {
    for (StoreFile file : StoreFile.values()) {
        if (file.isRecordStore()) {
            File idFile = new File(path, file.fileName(StoreFileType.ID));
            assertTrue("Missing id file " + idFile, idFile.exists());
            assertTrue("Id file " + idFile + " had 0 highId", IdGeneratorImpl.readHighId(fileSystemRule.get(), idFile) > 0);
        }
    }
}
Also used : StoreFile(org.neo4j.kernel.impl.storemigration.StoreFile) StoreFile(org.neo4j.kernel.impl.storemigration.StoreFile) File(java.io.File)

Aggregations

File (java.io.File)6 StoreFile (org.neo4j.kernel.impl.storemigration.StoreFile)6 PagedFile (org.neo4j.io.pagecache.PagedFile)4 NoSuchFileException (java.nio.file.NoSuchFileException)3 PageCursor (org.neo4j.io.pagecache.PageCursor)3 BufferedOutputStream (java.io.BufferedOutputStream)2 BufferedReader (java.io.BufferedReader)2 FileOutputStream (java.io.FileOutputStream)2 IOException (java.io.IOException)2 OutputStream (java.io.OutputStream)2 Writer (java.io.Writer)2 StandardCharsets (java.nio.charset.StandardCharsets)2 StandardCopyOption (java.nio.file.StandardCopyOption)2 StandardOpenOption (java.nio.file.StandardOpenOption)2 ArrayList (java.util.ArrayList)2 Arrays (java.util.Arrays)2 Arrays.asList (java.util.Arrays.asList)2 Collection (java.util.Collection)2 List (java.util.List)2 Optional (java.util.Optional)2