Lazy loading is not thread safe #35528
Labels
area-change-tracking
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
community-contribution
customer-reported
type-bug
Milestone
Bug description
When acessing a lazy loading property that is kinda heavy do load (a lot of data in the db), and doing it with heavy concurrency, the lazy loader fails
sometimes the lazy loading property becomes null, and then after a short period of time it gets the value
and sometimes the lazy loader throw exeptions
Your code
Stack traces
Verbose output
EF Core version
9.0.1
Database provider
Microsoft.EntityFrameworkCore.SqlServer
Target framework
.NET 9.0
Operating system
Windows 10
IDE
Visual Studio 2022 17.12.4
The text was updated successfully, but these errors were encountered: