[ 
https://issues.apache.org/jira/browse/DERBY-6597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14016594#comment-14016594
 ] 

Knut Anders Hatlen commented on DERBY-6597:
-------------------------------------------

Doesn't look like the DROP TABLE operation has anything to do with this 
problem. It fails the same way even without it:

{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> select * from table ( lucenesupport.listindexes() ) li;
SCHEMANAME                                                                      
                                                |TABLENAME                      
                                                                                
                 |COLUMNNAME                                                    
                                                                  |LASTUPDATED  
                |LUCENEVERSION       |ANALYZER                                  
                                                                                
      |ANALYZERMAKER                                                            
                                                       
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ERROR XJ001: Java exception: 'java.io.FileNotFoundException: 
/tmp/khatlen/ij-dev/db/LUCENE/APP/T/C/derby-lucene.properties'.
ERROR XJ001: Java exception: 
'/tmp/khatlen/ij-dev/db/LUCENE/APP/T/C/derby-lucene.properties: 
java.io.FileNotFoundException'.
{noformat}

Maybe the problem is that the table was empty when CREATEINDEX was called on it?

> Dependent Lucene indexes only partially dropped after DROP TABLE
> ----------------------------------------------------------------
>
>                 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
>
> 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)

Reply via email to