Skip to content

tracing: fix a crash#73383

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
andreimatei:tracing.fix-child-not-found
Dec 2, 2021
Merged

tracing: fix a crash#73383
craig[bot] merged 1 commit intocockroachdb:masterfrom
andreimatei:tracing.fix-child-not-found

Conversation

@andreimatei
Copy link
Copy Markdown
Contributor

When a child span finishes, it tries to deregister itself from the
parent. We assert that the parent has a reference to this child. This
assertion fired because there is a case where the parent does not have a
reference to the child - when the parent had too many open children at
the time when the child was created, it will not register the child. In
effect, such a child is a root. This patch makes the child in question
aware of the fact that it is really a root.

Fixes #73351

Release note: None

When a child span finishes, it tries to deregister itself from the
parent. We assert that the parent has a reference to this child. This
assertion fired because there is a case where the parent does not have a
reference to the child - when the parent had too many open children at
the time when the child was created, it will not register the child. In
effect, such a child is a root. This patch makes the child in question
aware of the fact that it is really a root.

Fixes cockroachdb#73351

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@abarganier abarganier 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

Copy link
Copy Markdown
Contributor Author

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

TFTR

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 2, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 2, 2021

Build succeeded:

@craig craig bot merged commit ca800e2 into cockroachdb:master Dec 2, 2021
@andreimatei andreimatei deleted the tracing.fix-child-not-found branch January 21, 2022 17:59
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: tpccbench/nodes=6/cpu=16/multi-az failed

3 participants