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

In 3X, <lockType/> not used consistently in all places Directory objects are instantiated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.6.1
    • None
    • None
    • None

    Description

      nipunb noted on the mailing list then when configuring solr to use an alternate <lockType/> (ie: simple) the stats for the SolrIndexSearcher list NativeFSLockFactory being used by the Directory.

      The problem seems to be that SolrIndexConfig is not consulted when constructing Directory objects used for IndexReader (it's only used by SolrIndexWriter)
      I don't think this is a problem in most cases since the IndexReaders should all be readOnly in the core solr code) but plugins could attempt to use them in other ways. In general it seems like a really bad bug waiting to happen.

      Attachments

        1. SOLR-2991.patch
          1 kB
          Alexander Kanarsky

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markrmiller@gmail.com Mark Miller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: