lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-2705) On reload, IndexWriterProvider holds onto the initial SolrCore it was created with
Date Wed, 10 Aug 2011 19:30:27 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Miller updated SOLR-2705:
------------------------------

    Attachment: SOLR-2705.patch

Hmm...so that improved things, but it's not quite the right fix. If multiple SolrCores are
going to share the IndexWriterProvider for any length of time, it cannot hold a ref to a SolrCore.
It's rare to have multiple reloaded SolrCores up at the same time with a Writer (I know because
it wasn't even possible a short time ago without running into IndexLock exceptions), but this
should now be fine to do. So a better solution is to pass the SolrCore to the methods of IndexWriterProver.

> On reload, IndexWriterProvider holds onto the initial SolrCore it was created with
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-2705
>                 URL: https://issues.apache.org/jira/browse/SOLR-2705
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>         Attachments: SOLR-2705.patch, SOLR-2705.patch
>
>
> dug up by Yury Kats in SOLR-2326
> The IWP needs to be updated to ref the new core on reload - else if some settings have
changed (eg newIndexDir change caused by replication), the IndexWriter will be incorrectly
reopened.
> This should really only be an issue when replication and core reloads are involved for
the most part.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message