You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot get any results after nested transaction was executed.
Transactionouter = graph.tx();
//Try to find vertex that does not exist//There is an index exists on propNameGraphTraversal<Vertex, Vertex> traversal = graph.traversal().V().has(label, propName, propValue);
if (traversal.hasNext()) {
return;
}
//Add vertex in nested transactionTitanTransactioninner = graph.newTransaction();
inner.addVertex(T.label, label, propName, propValue);
inner.commit();
booleanstored = graph.traversal().V().has(label, propName, propValue).hasNext();
if (!stored) {
//ERROR: Can't get added vertex
}
stored = graph.traversal().V().has(label, propName, propValue).limit(1).hasNext();
assertstored != null;
outer.commit();
The problem exists because of an indexCache inside StandardTitanTx that cached previous result.
The text was updated successfully, but these errors were encountered:
ifedan
changed the title
Query does not return results after nested transaction commit
Query does not return results after nested transaction committed
Feb 15, 2017
Cannot get any results after nested transaction was executed.
The problem exists because of an indexCache inside StandardTitanTx that cached previous result.
The text was updated successfully, but these errors were encountered: