Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 1560 invoked from network); 9 Sep 2009 22:00:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Sep 2009 22:00:21 -0000 Received: (qmail 99751 invoked by uid 500); 9 Sep 2009 22:00:20 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 99686 invoked by uid 500); 9 Sep 2009 22:00:20 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 99675 invoked by uid 99); 9 Sep 2009 22:00:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 22:00:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 22:00:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 072D8234C1EA for ; Wed, 9 Sep 2009 14:59:58 -0700 (PDT) Message-ID: <1319013287.1252533598028.JavaMail.jira@brutus> Date: Wed, 9 Sep 2009 14:59:58 -0700 (PDT) From: "Andrzej Bialecki (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1366) UnsupportedOperationException may be thrown when using custom IndexReader In-Reply-To: <616531992.1250591774943.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753289#action_12753289 ] Andrzej Bialecki commented on SOLR-1366: ----------------------------------------- FYI, for now I solved this by extending my IndexReader to support this call and return the original directory that lists all index files plus a few resources that I care about. However, this is just glossing over the deeper problem - replication handler shouldn't assume the directory is file-based. > 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: replication (java), 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.