Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6201

Fail when multiple DirectoryFactory instances are specified.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • SolrCloud
    • 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).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jayunit100 jay vyas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: