-
Notifications
You must be signed in to change notification settings - Fork 160
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
Fix curl integration race condition #2847
Conversation
… finished ($still_running at false) before curl_multi_info_read. In that case, the spans could have been removed from the storage
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2847 +/- ##
============================================
+ Coverage 81.06% 81.09% +0.02%
+ Complexity 2516 2515 -1
============================================
Files 146 146
Lines 14653 14648 -5
============================================
Hits 11879 11879
+ Misses 2774 2769 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
1133a8a
to
c4c916f
Compare
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.
The difference is essentially that $saveSpans gets always set. I think that's right.
BenchmarksBenchmark execution time: 2024-09-12 12:24:53 Comparing candidate commit c4c916f in PR branch Found 1 performance improvements and 5 performance regressions! Performance is the same for 172 metrics, 0 unstable metrics. scenario:BM_TeaSapiSpindown
scenario:EmptyFileBench/benchEmptyFileBaseline-opcache
scenario:LaravelBench/benchLaravelBaseline-opcache
scenario:SamplingRuleMatchingBench/benchRegexMatching2
scenario:SamplingRuleMatchingBench/benchRegexMatching4
scenario:WordPressBench/benchWordPressOverhead
|
Description
Spotted by the CI, though not frequent.
e.g. https://app.circleci.com/pipelines/github/DataDog/dd-trace-php/17462/workflows/f2a5d19c-4f05-4f57-aed9-f400f6677938/jobs/5150058
Fix a race condition where curl_multi_exec is called many times while finished ($still_running at false) before curl_multi_info_read.
In that case, the spans could have been removed from the storage.
+
Remove weird code using the last instance of a previous loop value ($requestSpan)Reviewer checklist