App locks during tenant setup when using SqlServerCache as IDistributedCache. #16485
Answered
by
willnationsdev
willnationsdev
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
willnationsdev
Aug 3, 2024
Replies: 1 comment 4 replies
-
I suggest you add What you describe seems like a deadlock, perhaps related to the sync-over-async necessary in the *Configuration classes. You can BTW debug into OC, since the NuGet packages are built with SourceLink. Furthermore, you can try to reproduce this with the full OC source too. Also see #16149. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update:
I discovered that if I remove some of the sub-recipes that are executed towards the end of my setup recipe (ones that define certain ContentTypes and some default ContentItems for them), then the deadlock never triggers. When I stripped out the "content" step from those nested recipes, then performing the setup of a new tenant stopped having deadlocks (yay). So, the issue seems somehow related to my attempts to create content items at the end of my setup recipe. And this deadlock only occurs if I have distributed features turned on (OrchardCore.Tenants.Distributed in the Default tenant and my distributed cache module in all tenants via being an activated "feature" within my setup …