-
Notifications
You must be signed in to change notification settings - Fork 27
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
Operation to stop does not match the current operation. #64
Comments
CC: @lmolkova |
It seems like a known issue: microsoft/ApplicationInsights-dotnet#693 If it is this issue, it should be fixed in Microsoft.ApplicationInsights.DependencyCollector 2.6.0-beta3 and Microsoft.ApplicationInsights.AspNetCore 2.3.0-beta1. @Tadimsky could you please check versions of DependencyCollector and AspNetCore (and update them). If it reproduces with latest versions, could you please check which if dependency telemetry was reported on the same machine immediately after this message? (unless you have very high-loaded service and this does not make sense?) Could you please also share some of your telemetries for this operation? Please use following Analytics queries
Please remove any sensitive information like iKey (or anything else). You can also email this info to me. |
Hey @lmolkova this is happening for me in our Production services:
I'll send you an email with the traces. |
@Tadimsky thanks for the info! The error happens when telemetry we are going to track in StopOperation does not match current Activity. We have tracked such telemetries before (by mistake) and started to enforce this in the latest ApplicationInsights Base SDK. Otherwise, it leads to broken correlation. So, what I see from the logs is: Service Whiteboards API makes remoting call to SharesService (I’m omitting not interesting pieces)
Eventually when something with Id |fac5592a-4fd80273c9a61f11.80081fb1_ is being reported, it could not, because Activity with |fac5592a-4fd80273c9a61f11.80081fb1_1 is not stopped. Some strange things:
So my assumption is: According to @Tadimsky, each service is packed into it's own package and each instance runs on it's own machine, i.e. it does not look like SharedProcess SF issue. |
@lmolkova I'm getting this error message too in my current project. But only in production. Not while debugging locally. I'm using this telemetry client methods: No StartOperation or StopOperation. The Application Insights message is: "AI (Internal): Operation to stop does not match the current operation." No further informations. |
@an4286sc What's the service fabric runtime and AI ServiceFabric version you are on? Would you be able to share the project that can reproduce the issue? That would be the easiest way for us to trouble shoot. Other than that, when you see the "AI (Internal): Operation to stop does not match the current operation.", it should give you the TelemetryId, e.g., '|fac5592a-4fd80273c9a61f11.80081fb1_', could you run analytic query like below, this will give us all telemetries happened during the request.
|
@yantang-msft See the query results in the attached file. |
@an4286sc I do see discrepancies of the operation ids. And what's the version of Microsoft.ServiceFabric.Services.Remoting? Can you try exclusive process model and see if that solves the problem? |
@Tadimsky @an4286sc I have reproduced this issue and identified the root cause, it's happening for me after I upgraded Microsoft.ApplicationInsights.AspNetCore 2.3.0-beta2. Hopefully you're seeing this error for the same reason. We are working on the fix, but for some process reason, it will take some time before we can release the fix. A temporary workaround would be downgrade the Microsoft.ApplicationInsights.AspNetCore to 2.2.1. |
@yantang-msft I am on |
@Tadimsky Yes, I confirm 2.3.0-beta1 is also affected. |
…mes and thus break the correlation.
…mes and thus break the correlation. (#70)
@yantang-msft is this expected to be fixed in |
@Tadimsky Yes, the bug as AI SF side is fixed. Does the huge decrease after 6/25 happened after you upgrade the AI SF package? |
@Tadimsky can you run the query as you did last time and share the result? |
I'm getting an error using the Service Remoting telemetry.
It appears that the operation that is being stopped is invalid:
It looks like Application Insights is trying to stop
a2a37cb4_
but it's currently running activitya2a37cb4_1
. Notice the1
at the end.Any ideas why this would be happening?
I'm using 2.1.1-beta1
The text was updated successfully, but these errors were encountered: