Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.7.1
-
None
-
None
-
New
Description
At the moment, it is not possible to have a "tree topology" for replication. The reason is that in order to publish a IndexRevision on a non-root, non-leaf node, one would need to open an IndexWriter on the index. However, the replication directly modifies the index directory without using an IndexWriter, so the indexwriter would not see the changes the replication made.
IndexRevision uses the IndexWriter for deleting unused files when the
revision is released, as well as to obtain the SnapshotDeletionPolicy.
In order to implement this, two things are needed:
- Revision, which doesn't use IndexWriter.
- Replicator which keeps track of how many refs a file has (basically what
IndexFileDeleter does)