Trying to write simple test code with OrientDB 3.0 snapshot.
Is there a problem with this code? I do not understand why it get struck up there and never ever gets terminated.
@Test
public void testOrientDB() throws IOException {
OrientGraphFactory factory = new OrientGraphFactory("remote:localhost/mlm", "root", "password").setupPool(1, 10);
OrientGraph db = factory.getTx();
try {
OSequence seq = db.getRawDatabase().getMetadata().getSequenceLibrary().getSequence("companyIdSequence");
Vertex v = db.addVertex("Person");
v.properties("id", "" + seq.next());
db.commit();
} catch (Exception e) {
e.printStackTrace();
} finally {
db.close();
factory.close();
}
}
I am not sure if there is an issue with this test code
From an external evaluation we found that the problem is due to different versions of the client (3.0.0m1) and server (SNAPSHOT). Forcing both to use the same snapshot solves the problem