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

Fail when multiple DirectoryFactory instances are specified.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      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).

        Issue Links

          Activity

          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          This has already been fixed with Solr 4.5 and above with SOLR-4953 and SOLR-5108

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - This has already been fixed with Solr 4.5 and above with SOLR-4953 and SOLR-5108

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development