[
https://issues.apache.org/jira/browse/TINKERPOP-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17749200#comment-17749200
]
ASF GitHub Bot commented on TINKERPOP-2976:
-------------------------------------------
codecov-commenter commented on PR #2176:
URL: https://github.com/apache/tinkerpop/pull/2176#issuecomment-1658338051
##
[Codecov](https://app.codecov.io/gh/apache/tinkerpop/pull/2176?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
Report
> Merging
[#2176](https://app.codecov.io/gh/apache/tinkerpop/pull/2176?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
(01c6571) into
[3.5-dev](https://app.codecov.io/gh/apache/tinkerpop/commit/1d5b509462b23922abfcc24b6a56b6341ef5ac8f?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
(1d5b509) will **increase** coverage by `0.00%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## 3.5-dev #2176 +/- ##
==========================================
Coverage 69.94% 69.95%
- Complexity 9027 9033 +6
==========================================
Files 866 866
Lines 41068 41068
Branches 5476 5476
==========================================
+ Hits 28726 28730 +4
Misses 10440 10440
+ Partials 1902 1898 -4
```
[see 8 files with indirect coverage
changes](https://app.codecov.io/gh/apache/tinkerpop/pull/2176/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD
build times. [Learn
more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
> InvalidOperationException: Collection was modified in GraphBinary
> serialization
> -------------------------------------------------------------------------------
>
> Key: TINKERPOP-2976
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2976
> Project: TinkerPop
> Issue Type: Bug
> Components: dotnet
> Affects Versions: 3.5.6, 3.6.4
> Reporter: Florian Hockmann
> Priority: Minor
>
> This was first reported for JanusGraph.Net:
> [https://github.com/JanusGraph/janusgraph-dotnet/issues/140]
> but the issue is most likely in Gremlin.Net.
> {code:java}
> System.InvalidOperationException: Collection was modified; enumeration
> operation may not execute.
> at
> System.Collections.Generic.Dictionary2.KeyCollection.Enumerator.MoveNext()
> at
> Gremlin.Net.Structure.IO.GraphBinary.TypeSerializerRegistry.GetSerializerFor(Type
> valueType)
> at Gremlin.Net.Structure.IO.GraphBinary.GraphBinaryWriter.WriteAsync(Object
> value, Stream stream, CancellationToken cancellationToken)
> [...]{code}
> The problem is most likely that the driver iterates over all supported types
> in a {{foreach}} loop to find a type to which the type to be serialized can
> be assigned which means that the same serializer can be used. Then this
> serializer is registered for the new type which modifies the collection the
> {{foreach}} is iterated on, leading to this error.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)