Repository navigation
Ignore idle Synapse client callbacks - #13298
gh-worker-dd-mergequeue-cf854d[bot] merged 4 commits into
Conversation
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The guards consistently skip span creation and propagation when Synapse cannot submit a request, while exit advice safely handles a skipped entry. The completed static review identified no actionable regression.
🤖 Bits Code Review · Commit e062a5c
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What Does This Do
Ignore Synapse client callbacks that have no pending request or whose connection is not ready to submit a request. Skip request decoration when the entry advice did not create a scope.
Motivation
The transport can invoke
requestReadyrepeatedly, including while a connection is idle or a request is already in progress. Our advice treated every callback as a new request, creating phantom spans and overwriting the real request's stored context. It also attempted propagation and request decoration when no request was available, causing suppressed null dereferences and incorrect trace linkage.The guards now follow Synapse's request-submission conditions so only a pending request starts a client span or receives propagated headers.
Additional Notes
Observed instrumentation failure:
The exit advice dereferenced the missing request before closing its scope. Ignoring callbacks that cannot submit a request avoids this path and preserves the existing request context.
Validation: both complete Synapse naming-convention suites passed in 20 consecutive runs: 200 test executions, zero failures or skips. Each run used fresh test workers and disabled test-result caching.
Related precedent: #10892 addressed earlier Synapse propagation and span-tagging defects. The callback guards address a separate gap that predates that change.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsJira ticket: N/A