Created
March 17, 2014 21:45
-
-
Save j5bot/9609066 to your computer and use it in GitHub Desktop.
Customer 47: Reproduction of Insertion Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Insert a Transaction vertex | |
* Commit the graph | |
* | |
* Get the transaction vertex again | |
*/ | |
OrientGraph orientGraph = ...; | |
OrientVertex transaction = orientGraph.addVertex(null); | |
transaction.setProperty("there", "yes"); | |
logger.warn("id before commit: " + transaction.getId().toString()); | |
orientGraph.commit(); | |
logger.warn("id after commit: " + transaction.getId().toString()); | |
String orid = transaction.getId().toString(); | |
OrientVertex refetched = orientGraph.getVertex(orid); | |
logger.warn("refetched id: " + refetched.getId().toString()); | |
orientGraph.shutdown(); | |
try { | |
Thread.sleep(6000); | |
} catch (InterruptedException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment