Skip to content

distsqlrun: fix panic due to multiple calls to tracing.FinishSpan #39606

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

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented Aug 12, 2019

This commit removes calls to tracing.FinishSpan from the samplerProcessor
and sampleAggregatorProcessor. These calls are no longer necessary after
memory accounting was added in #39144, which includes a call to tracing.FinishSpan
in InternalClose().

Fixes #39262

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

:lgtm: though I'd wait for someone more familiar with this code to give it a look as well. Thanks for tracking this down!

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde and @tbg)

@rytaft
Copy link
Collaborator Author

rytaft commented Aug 13, 2019

Thanks to you and @tbg for the reproduction steps! @RaduBerinde is OOO, so maybe @jordanlewis could take a look from the DistSQL perspective?

This commit removes calls to tracing.FinishSpan from the samplerProcessor
and sampleAggregatorProcessor. These calls are no longer necessary after
memory accounting was added in cockroachdb#39144, which includes a call to
tracing.FinishSpan in InternalClose().

Fixes cockroachdb#39262

Release note: None
@rytaft rytaft force-pushed the fix-double-finish branch from 1e31863 to 9bc96c8 Compare August 13, 2019 12:02
@awoods187
Copy link
Contributor

@rytaft he's out too. I'll see if anyone else can take a look.

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @RaduBerinde and @tbg)

@rytaft
Copy link
Collaborator Author

rytaft commented Aug 13, 2019

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Aug 13, 2019
39606: distsqlrun: fix panic due to multiple calls to tracing.FinishSpan r=rytaft a=rytaft

This commit removes calls to `tracing.FinishSpan` from the `samplerProcessor`
and `sampleAggregatorProcessor`. These calls are no longer necessary after
memory accounting was added in #39144, which includes a call to `tracing.FinishSpan`
in `InternalClose()`.

Fixes #39262

Release note: None

Co-authored-by: Rebecca Taft <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 13, 2019

Build succeeded

@craig craig bot merged commit 9bc96c8 into cockroachdb:master Aug 13, 2019
@rytaft rytaft deleted the fix-double-finish branch April 2, 2020 22:15
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.

roachtest: kv/contention/nodes=4 failed
5 participants