Hello again,

I wanted to update you that I opened a related PR for this issue for the
next 3.6.x version.
https://github.com/apache/tinkerpop/pull/2738

Thanks in advance,

Mavroudis Mantonitsas

Στις Πέμ 22 Αυγ 2024 στις 1:09 μ.μ., ο/η Μαυρουδής Μαντονίτσας <
m.mantonit...@gmail.com> έγραψε:

> Hello,
>
> I found an issue with the .Net driver driver when upgrading to .NET 8.0.
> The issue occurs when searching for a vertex that does not exist
> e.g. var vertex = await _g.V(id).Promise(t => t.Next());
> If the vertex does not exist it throws this exception :
> "System.InvalidOperationException: Enumeration already finished."
>
> After investigation I found out that the problem is located here :
> https://github.com/apache/tinkerpop/blob/master/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/DefaultTraversal.cs#L212
>
> Current is always in a state of throwing an exception if the  Traversers are
> empty. Before MoveNext() is called it throws "Enumeration has not started.
> Call MoveNext." and after the call the above exception
> ("System.InvalidOperationException: Enumeration already finished.").
>
> I played around a little and found that a check if the Enumerator did
> move, like this
>
> return MoveNext() ? Current : default;
>
>  solved the issue for me.
>
> I do not have an account to open a Jira ticket so I'm reporting this issue
> here.
>
> Mavroudis Mantonitsas
>

Reply via email to