[
https://issues.apache.org/jira/browse/TINKERPOP-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019660#comment-18019660
]
Cole Greer commented on TINKERPOP-3189:
---------------------------------------
This issue is suspiciously similar to TINKERPOP-3141 and TINKERPOP-3142, except
applied to edges instead of nodes. This is a good starting point for any
investigations.
> 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
> Priority: Major
>
> [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)