Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PartitionedIndexStorage cleans lucene directories
PartitionedIndexStorage#prepareFolder(File) method prepares a folder in the filesystem to be used by the lucene index partition. Currently it does so by cleaning up all sub-folders and sub-files in the filesystem. This works for the case when lucene files live in the same filesystem as all other files. It does not work for tests where we have an in-memory lucene RAMDirectory and separate FileSystemAbstraction implementation. This commit makes PartitionedIndexStorage clean lucene directories separately using Directory#deleteFile(String) method. It also merges AbstractIndexStorage into the PartitionedIndexStorage since the later is the only implementation. Added some tests and javadocs.
- Loading branch information
1 parent
159f24c
commit f0e9f54
Showing
3 changed files
with
379 additions
and
90 deletions.
There are no files selected for viewing
87 changes: 0 additions & 87 deletions
87
...ene-index/src/main/java/org/neo4j/kernel/api/impl/index/storage/AbstractIndexStorage.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.