-
Notifications
You must be signed in to change notification settings - Fork 67
Replace non-threadsafe HashSet with ConcurrentDictionary in RequestTrackingTelemetryModule.IsHandlerToFilter #1211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a descriptive title, and explain how this change is fixing the issue.
And modify changelog.md to add one line about this bug fix.
In general, this looks good to me. |
|
lol. I was just reading the same article! :) |
@cijothomas, Do we need to modify it if the fix is within same version? (i.e. this code was not shipped before) |
oooohhhhhhhhhhh. i read this backwards.. it's replacing the HashSet with ConcurrentDictionary. I agree with this change |
* readonly * changelog.md update
Is there any chance to release this fix in some quicker way then usual several months cycle? I consider it as a critial bug causing all of our application crashing randomly and there is no other way how to fix it than restarting entire application (in IIS). So currently we had to turn off ApplicationInsights completely. |
Hi @jirigregor This fix is available now in our 2.11-beta1 release. Regarding our release cadence, we currently release something monthly. |
Fix Issue # .
Fixes IndexOutOfRangeException:
WAC FrontEnd unhandled exception [0] [ExceptionType:System.IndexOutOfRangeException]
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value)
at Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.IsHandlerToFilter(IHttpHandler handler)
at Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule.NeedProcessRequest(HttpContext httpContext)
...