Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
In SOLR 4.4 and possibly higher Its possible to have multiple directory factories defined. This can become very problematic because, in a large xml file, it is tricky to determine which file system is being used, in case someone appends an alternate file system at the end. The result : Core files are stored in a different location.
<directoryFactory name="DirectoryFactory" class="org.apache.solr.core.HdfsDirectoryFactory"> .... </directoryFactory> <directoryFactory name="DirectoryFactory2" class="my.company.CustomDirectoryFactory"> .... </directoryFactory>
It would be better if the directoryFactory failed when multiple factories were defined, since clearly, this is a user error which will result in non-deterministic core behaviour (at best).