Try our conversational search powered by Generative AI!

ProjectMessageNotifier: Operations that change non-concurrent collections must have exclusive access

Vote:
 

Hi!

We have recently discovered a new error in our logs:

2024-04-11 14:14:08.974 [Error] System.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor..ctor(DbProviderFactory dbProviderFactory, ContextCache contextCache, ConnectionStringOptions connectionStringSettings, Int32 retries, TimeSpan retryDelay, TimeSpan databaseQueryTimeout)
   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutorFactory.Create(ConnectionStringOptions connectionStringOption)
   at EPiServer.Data.Providers.Internal.SqlDatabaseDelegatorFactory.EPiServer.Data.Internal.IAsyncDatabaseExecutorFactory.CreateDefaultHandler()
   at ResolveService(ILEmitResolverBuilderRuntimeContext, ServiceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at EPiServer.Data.DataInitialization.<>c__DisplayClass6_1.<ConfigureContainer>b__8()
   at EPiServer.DataAccess.Internal.NotificationSubscriptionDB.ClearSubscriptionAsync(Uri subscriptionKey)
   at EPiServer.Notification.Internal.DefaultSubscriptionService.ClearSubscriptionAsync(Uri subscriptionKey)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageNotifier.UnsubscribeFromAllActivitiesFromPublishedVersion(ContentReference contentLink)
   at EPiServer.Cms.Shell.UI.Rest.Projects.Notifications.Internal.ProjectMessageNotifier.ActivityCreated(Object sender, ActivityCreatedEventArgs e)

Is this something that someone else have seen?
What is the action that has caused this? The stacktrace does not indicate a scheduled job, so is it a user action?

Best regards
Johan

#320571
Apr 16, 2024 7:14
Vote:
 

Just discovered that this might be related to https://world.optimizely.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=CMS-32880, could that be correct?

#320572
Apr 16, 2024 8:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.