-
Notifications
You must be signed in to change notification settings - Fork 494
[SDK] BatchLogRecordProcessor::ForceFlush is not waking up bg thread #3448
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
[SDK] BatchLogRecordProcessor::ForceFlush is not waking up bg thread #3448
Conversation
|
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
Ah CLA's... poking our legal people about this now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3448 +/- ##
==========================================
- Coverage 89.92% 89.91% -0.01%
==========================================
Files 219 219
Lines 7041 7042 +1
==========================================
Hits 6331 6331
- Misses 710 711 +1
🚀 New features to boost your workflow:
|
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.
LGTM after the format and CLA problems are solved.
I'm sorry, I'm still waiting for our legal folk to approve the CLA... This fix is totally trivial and has zero creative expression behind it, so I doubt it's actually copyrightable if somebody else wants to submit it independently. Otherwise, please stand by :( |
Waiting for CLA, we know this takes time. @KJTsanaktsidis The fix itself looks correct, and you were able to investigate and fix a multi threaded related issue in the opentelemetry-cpp code base, so you definitively have the skills it takes here. On the bright side, once CLA is resolved, the next contribution(s) will be much easier to process, should you find more ;-) |
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.
LGTM, pending CLA and minor format.
/easycla |
7c9cb59
to
a2f5680
Compare
@marcalff OK CLA is signed and formatting is fixed 🎉 should be good to go now. |
Calling
BatchLogRecordProcessor::ForceFlush
was not waking up the background to actually perform the flush. So, this was simply sleeping on the condvar for the entire timeout, and then returningfalse
without ever flushing anything.I probably should put together a test for this - I'll try and find some time early next week to do that.