-
Notifications
You must be signed in to change notification settings - Fork 714
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
Parent can only be null in a local root #1295
Comments
From the related bug report ... And I gave it another shot and caught it. I did not modify the Please double check my reasoning here. So the regular (passing) case is when the context does not have the parent trace id - it is the local root: With the AssertError caught the context is different - it is not the local root: Then I went up the call stack to the So I called manually the I tested the Finally I tested the So some race condition is happening but might not be the same as what we are expecting (unprotected My TraceRunnable: https://gist.github.com/FranPregernik/0d0e0ddff5f0f642f8f12313f42667e1 |
Any chance you can check it out @anuraaga? |
Hi @jcchavezs, @anuraaga! Any update on this? |
Hi @jcchavezs, @anuraaga, @FranPregernik I have same issue. Do you know how to fix it or can advise some workaround? |
I'm impacted by the same issue. After digging in, it appears to happen due to a race condition within I've added a test case illustrating the issue here: andylintner@86a9086 |
Fixes openzipkin#1295 Previous to this fix, a call to Tracer::toSpan concurrent with a call to flush the span from pendingSpans could result in an assertion error. We now only fetch the pendingSpan once for a single call to toSpan.
Fixes openzipkin#1295 Previous to this fix, a call to Tracer::toSpan concurrent with a call to flush the span from pendingSpans could result in an assertion error. We now only fetch the pendingSpan once for a single call to toSpan.
Fixes openzipkin#1295 Previous to this fix, a call to Tracer::toSpan concurrent with a call to flush the span from pendingSpans could result in an assertion error. We now only fetch the pendingSpan once for a single call to toSpan.
Describe the bug
related issue: spring-cloud/spring-cloud-sleuth#1814
I am using Spring Cloud Sleuth 3.0.1 and Brave 5.3.12
The bug is really sporadic but does cause the worfkflow engine (flowable, which I have instrumented manually) to not call the next tasks in the BPMN workflow.
The error is this:
I think it is on this line in TraceRunable:
I am of the opinion that the TraceRunanble should not prevent the delegate Runnable in any way. We might benefit from a check before calling the
nextSpan
method or catching this exception somehow.Sample
I can't reliably reproduce it, it is sporadic. We have on the order of 100 tests using flowable but I get one error every now and then.
Flowable can be set up with a custom implementation of a JobExectuor. I have it set up like so:
The text was updated successfully, but these errors were encountered: