[Neo tickets] #253: Break the Dependency of Neo4j-Kernel on neo4j-index classes

neo4j.org noreply at neo4j.org
Tue Aug 10 23:19:44 CEST 2010


#253: Break the Dependency of Neo4j-Kernel on neo4j-index classes
------------------------+---------------------------------------------------
 Reporter:  peter       |       Owner:  johans
     Type:  bug report  |      Status:  new   
 Priority:  major       |   Milestone:        
Component:  kernel      |    Keywords:        
------------------------+---------------------------------------------------
 Neo4j kernel is trying to load classes that need to be imported from
 neo4j-index in an OSGi bundle scenario. This is not working and breaks the
 setup where neo4j-kernel and neo4j-index can be separate bundles in OSGi
 deployments.

 The offending code is in GraphDbInstance.start():

 // hack for lucene index recovery if in path
         if ( !config.isReadOnly() || config.isBackupSlave() )
         {
             try
             {
                 Class clazz = Class.forName( Config.LUCENE_DS_CLASS );
                 cleanWriteLocksInLuceneDirectory( storeDir + "/lucene" );
                 byte luceneId[] = "162373".getBytes();
                 registerLuceneDataSource( "lucene", clazz.getName(),
                         config.getTxModule(), storeDir + "/lucene",
                         config.getLockManager(), luceneId, params );
             }
             catch ( ClassNotFoundException e )
             { // ok index util not on class path
             }

-- 
Ticket URL: <https://trac.neo4j.org/ticket/253>
neo4j.org <http://trac.neo4j.org/>
The Neo4J.org Issue Tracker


More information about the Tickets mailing list