Searched defs:snapshots (Results 1 - 4 of 4) sorted by relevance
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestPersistentSnapshotDeletionPolicy.java | 66 protected SnapshotDeletionPolicy getDeletionPolicy(Map<String, String> snapshots) throws IOException { argument 68 if (snapshots != null) { 69 for (Entry<String, String> e: snapshots.entrySet()) { 87 // Re-initialize and verify snapshots were persisted 130 // Write two documents to the snapshots directory - illegal. 156 assertEquals("Should have no snapshots !", 0, psdp.getSnapshots().size()); 163 // While PSDP is open, it keeps a lock on the snapshots directory and thus 164 // prevents reading the snapshots information. This test checks that the 175 // This should fail, since the snapshots directory is locked - we didn't close it ! 179 fail("should not have reached here - the snapshots director [all...] |
H A D | TestSnapshotDeletionPolicy.java | 47 public static final String INDEX_PATH = "test.snapshots"; 86 protected SnapshotDeletionPolicy getDeletionPolicy(Map<String, String> snapshots) throws IOException { argument 87 return new SnapshotDeletionPolicy(new KeepOnlyLastCommitDeletionPolicy(), snapshots); 237 // Create 3 snapshots: snapshot0, snapshot1, snapshot2 248 // open a new IndexWriter w/ no snapshots to keep and assert that all snapshots are gone. 253 assertEquals("no snapshots should exist", 1, IndexReader.listCommits(dir).size()); 297 // Do one last commit, so that after we release all snapshots, we stay w/ one commit 364 // Tests the ability to construct a SDP from existing snapshots, and 365 // asserts that those snapshots/commi [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestPersistentSnapshotDeletionPolicy.java | 66 protected SnapshotDeletionPolicy getDeletionPolicy(Map<String, String> snapshots) throws IOException { argument 68 if (snapshots != null) { 69 for (Entry<String, String> e: snapshots.entrySet()) { 87 // Re-initialize and verify snapshots were persisted 130 // Write two documents to the snapshots directory - illegal. 156 assertEquals("Should have no snapshots !", 0, psdp.getSnapshots().size()); 163 // While PSDP is open, it keeps a lock on the snapshots directory and thus 164 // prevents reading the snapshots information. This test checks that the 175 // This should fail, since the snapshots directory is locked - we didn't close it ! 179 fail("should not have reached here - the snapshots director [all...] |
H A D | TestSnapshotDeletionPolicy.java | 47 public static final String INDEX_PATH = "test.snapshots"; 86 protected SnapshotDeletionPolicy getDeletionPolicy(Map<String, String> snapshots) throws IOException { argument 87 return new SnapshotDeletionPolicy(new KeepOnlyLastCommitDeletionPolicy(), snapshots); 237 // Create 3 snapshots: snapshot0, snapshot1, snapshot2 248 // open a new IndexWriter w/ no snapshots to keep and assert that all snapshots are gone. 253 assertEquals("no snapshots should exist", 1, IndexReader.listCommits(dir).size()); 297 // Do one last commit, so that after we release all snapshots, we stay w/ one commit 364 // Tests the ability to construct a SDP from existing snapshots, and 365 // asserts that those snapshots/commi [all...] |
Completed in 23 milliseconds