Skip to content

Exception on entity fetch by key #432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
letarak opened this issue Apr 8, 2025 · 0 comments
Open

Exception on entity fetch by key #432

letarak opened this issue Apr 8, 2025 · 0 comments

Comments

@letarak
Copy link

letarak commented Apr 8, 2025

The exception was thrown at the production but could not be reproduced

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
   at Xtensive.Orm.Internals.Prefetch.Fetcher.UpdateCacheFromAllEntityGroupTasks()
   at Xtensive.Orm.Internals.Prefetch.Fetcher.ExecuteTasks(IReadOnlyCollection`1 containers, Boolean skipPersist, Boolean isAsync, CancellationToken token)
   at Xtensive.Orm.Internals.Prefetch.PrefetchManager.ExecuteTasks(Boolean skipPersist, Boolean isAsync, CancellationToken token)
   at Xtensive.Orm.Providers.SqlSessionHandler.FetchEntityState(Key key)
   at Xtensive.Orm.QueryEndpoint.SingleOrDefault(Key key)
   at Xtensive.Orm.QueryEndpoint.SingleOrDefault[T](Key key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant