Hallo,

got a really nasty problem. When i create a lucene index and i call 
graph.shutdown() the database never shuts down. The program never
terminates and the database never frees the locks on the files. I 
always have to crash the program/database.

public static void main(String[] args) {
String pathToDatabase = "plocal:D:/Freebase/orientdb/databases/freebaseDB";
OrientGraph graph = new OrientGraph(pathToDatabase, false);

OrientVertexType type = graph.createVertexType("City");
type.createProperty("latitude", OType.DOUBLE);
type.createProperty("longitude", OType.DOUBLE);
type.createProperty("name", OType.STRING);
type.createIndex("City.name", "FULLTEXT", null, null, "LUCENE", new 
String[] { "name" });

graph.addVertex("class:City", new Object[] { "name", "London" });
graph.addVertex("class:City", new Object[] { "name", "Rome" });

graph.commit();
 Iterable<Vertex> vertexes = graph.getVertices("City.name", "London");
 for (Vertex v : vertexes) {
System.out.println(v.getId());
}
graph.shutdown();
}

When i change the index to a "regular" index the program works fin and the 
database shuts down.
There is no exception, no stacktrace or anything. It behaves like a 
deadlock.

I use the latest orientdb 1.7-SNAPSHOT and:


<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-lucene</artifactId>
<version>1.7-SNAPSHOT</version>
</dependency>



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to