Cole Greer created TINKERPOP-3189:
-------------------------------------
Summary: Cannot drop then add Edge with same ID within single
transaction
Key: TINKERPOP-3189
URL: https://issues.apache.org/jira/browse/TINKERPOP-3189
Project: TinkerPop
Issue Type: Bug
Components: tinkergraph
Affects Versions: 3.7.4
Reporter: Cole Greer
[First reported in our
discord|https://discord.com/channels/838910279550238720/1414895648578207815/1414914136571248692],
when using transaction in TinkerGraph, you cannot create a new edge if an edge
with the same ID had previously been deleted within the same transaction.
This can be reproduced by adding the following unit test to
TinkerTransactionGraphTest:
{code:java}
@Test
public void shouldAllowDropAddEdgeInSameTransaction() {
final TinkerTransactionGraph g = TinkerTransactionGraph.open();
final GraphTraversalSource gtx = g.tx().begin();
gtx.addV().property(T.id, 1).iterate();
gtx.addV().property(T.id, 2).iterate();
gtx.V(1).addE("edge").to(__.V(2)).property(T.id, 3).iterate();
gtx.tx().commit();
gtx.E().drop().iterate();
gtx.V(1).addE("edge").to(__.V(2)).property(T.id, 3).iterate();
gtx.tx().commit();
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)