lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Bialecki (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1366) UnsupportedOperationException may be thrown when using custom IndexReader
Date Wed, 19 Aug 2009 10:56:14 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744993#action_12744993
] 

Andrzej Bialecki  commented on SOLR-1366:
-----------------------------------------

Indeed, that complicates the matter ... It looks like using a non-file based IndexReader breaks
replication. This is not a regression from 1.3, but the functionality to specify custom IndexReaders
will be available in 1.4, so it should be clearly stated in docs that it prevents replication
from working properly, until we rectify this issue.

> UnsupportedOperationException may be thrown when using custom IndexReader
> -------------------------------------------------------------------------
>
>                 Key: SOLR-1366
>                 URL: https://issues.apache.org/jira/browse/SOLR-1366
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Andrzej Bialecki 
>            Assignee: Mark Miller
>             Fix For: 1.4
>
>         Attachments: searcher.patch
>
>
> If a custom IndexReaderFactory is specifiedd in solrconfig.xml, and IndexReader-s that
it produces don't support IndexReader.directory() (such as is the case with ParallelReader
or MultiReader) then an uncaught UnsupportedOperationException is thrown.
> This call is used only to retrieve the full path of the directory for informational purpose,
so it shouldn't lead to a crash. Instead we could supply other available information about
the reader (e.g. from its toString() method).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message