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

<lockType/> not used consistently in all places Directory objects are instantiated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      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-2654.patch
          62 kB
          Mark Miller
        2. SOLR-2654.patch
          62 kB
          Mark Miller
        3. SOLR-2654.patch
          62 kB
          Mark Miller
        4. SOLR-2654.patch
          64 kB
          Mark Miller
        5. SOLR-2654.patch
          53 kB
          Mark Miller
        6. SOLR-2654.patch
          50 kB
          Mark Miller
        7. SOLR-2654.patch
          42 kB
          Mark Miller
        8. SOLR-2654.patch
          42 kB
          Mark Miller
        9. SOLR-2698.patch
          63 kB
          Mark Miller

          Issue Links

            Activity

              People

              • Assignee:
                markrmiller@gmail.com Mark Miller
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: