Skip to content
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

release-20.1: util/tracing: fix DistSQL trace collection #51845

Merged

Conversation

andreimatei
Copy link
Contributor

Backport 1/1 commits from #50913.

/cc @cockroachdb/release


Before this patch, the collection of traces from remote DistSQL flows
was broken: the traces for the remote processors were collected as
orphans. The spans corresponding to each processor were collected with a
missing parent - the span corresponding to the SetupFlow RPC which
creates the processor (the relationship there is a FollowsFrom because
the execution of the processors is generally async wrt the RPC). This
was causing the Recording.String() method to ignore them - it was simply
skipping orphans.

Release note (bug fix): A bug causing traces collected through the
sql.trace.txn.enable_threshold setting to be sometimes incomplete was
fixed.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde 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 (waiting on @RaduBerinde)

Before this patch, the collection of traces from remote DistSQL flows
was broken: the traces for the remote processors were collected as
orphans. The spans corresponding to each processor were collected with a
missing parent - the span corresponding to the SetupFlow RPC which
creates the processor (the relationship there is a FollowsFrom because
the execution of the processors is generally async wrt the RPC). This
was causing the Recording.String() method to ignore them - it was simply
skipping orphans.

Release note (bug fix): A bug causing traces collected through the
sql.trace.txn.enable_threshold setting to be sometimes incomplete was
fixed.
@andreimatei andreimatei merged commit 9a822f5 into cockroachdb:release-20.1 Jul 27, 2020
@andreimatei andreimatei deleted the backport20.1-50913 branch July 27, 2020 16:45
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.

None yet

3 participants