Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09B2E11803 for ; Mon, 9 Jun 2014 14:24:03 +0000 (UTC) Received: (qmail 85591 invoked by uid 500); 9 Jun 2014 14:24:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 85487 invoked by uid 500); 9 Jun 2014 14:24:02 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 85478 invoked by uid 99); 9 Jun 2014 14:24:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 14:24:02 +0000 Date: Mon, 9 Jun 2014 14:24:02 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DERBY-6597) LUCENESUPPORT.LISTINDEXES() fails with FileNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas resolved DERBY-6597. ---------------------------------- Resolution: Fixed Fix Version/s: 10.11.0.0 > LUCENESUPPORT.LISTINDEXES() fails with FileNotFoundException > ------------------------------------------------------------ > > Key: DERBY-6597 > URL: https://issues.apache.org/jira/browse/DERBY-6597 > Project: Derby > Issue Type: Bug > Components: SQL, Tools > Affects Versions: 10.11.0.0 > Reporter: Knut Anders Hatlen > Assignee: Rick Hillegas > Fix For: 10.11.0.0 > > Attachments: derby-6597-01-aa-writePropertiesOutsideIndexingLoop.diff > > > DROP TABLE seems to cascade and drop any Lucene indexes defined on the table. However, there seems to be some traces of meta-data left, so that LUCENESUPPORT.LISTINDEXES thinks the index is still there, and fails with FileNotFoundException when trying to access the index: > {noformat} > ij version 10.11 > ij> connect 'jdbc:derby:memory:db;create=true'; > ij> create table t(x int primary key, c clob); > 0 rows inserted/updated/deleted > ij> call syscs_util.syscs_register_tool('luceneSupport', true); > 0 rows inserted/updated/deleted > ij> call lucenesupport.createindex('app', 't', 'c', null); > 0 rows inserted/updated/deleted > ij> drop table t; > 0 rows inserted/updated/deleted > ij> select * from table ( lucenesupport.listindexes() ) li; > SCHEMANAME |TABLENAME |COLUMNNAME |LASTUPDATED |LUCENEVERSION |ANALYZER |ANALYZERMAKER > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > ERROR XJ001: Java exception: 'java.io.FileNotFoundException: /tmp/db/LUCENE/APP/T/C/derby-lucene.properties'. > ERROR XJ001: Java exception: '/tmp/db/LUCENE/APP/T/C/derby-lucene.properties: java.io.FileNotFoundException'. > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)