Skip to content

spanconfigsubscriber: pass ctx to KVSubscriber callbacks#76311

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
andreimatei:tracing.fix-use-after-finish-store
Feb 10, 2022
Merged

spanconfigsubscriber: pass ctx to KVSubscriber callbacks#76311
craig[bot] merged 1 commit intocockroachdb:masterfrom
andreimatei:tracing.fix-use-after-finish-store

Conversation

@andreimatei
Copy link
Copy Markdown
Contributor

One of these callbacks, in store.go, was capturing a ctx and using it
async. That was a tracing span use-after-finish. This patch fixes it by
plumbing contexts and avoiding the capture.

Release note: None

@andreimatei andreimatei requested a review from a team as a code owner February 9, 2022 17:39
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

One of these callbacks, in store.go, was capturing a ctx and using it
async. That was a tracing span use-after-finish. This patch fixes it by
plumbing contexts and avoiding the capture.

Release note: None
@andreimatei andreimatei force-pushed the tracing.fix-use-after-finish-store branch from a5e973f to 14001c5 Compare February 9, 2022 18:23
Copy link
Copy Markdown
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @irfansharif)

Copy link
Copy Markdown
Contributor

@irfansharif irfansharif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@andreimatei
Copy link
Copy Markdown
Contributor Author

TFTRs!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 9, 2022

This PR was included in a batch that was canceled, it will be automatically retried

@craig craig bot merged commit 0fdf716 into cockroachdb:master Feb 10, 2022
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 10, 2022

Build succeeded:

@andreimatei andreimatei deleted the tracing.fix-use-after-finish-store branch February 10, 2022 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants