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

roachtest: ignore unrelated tags when looking for build version #33446

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Jan 2, 2019

Release note: None

@danhhz danhhz requested review from bdarnell and benesch January 2, 2019 21:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@bdarnell bdarnell left a comment

Choose a reason for hiding this comment

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

There's also a git describe command in the Makefile that we should fix at the same time.

Copy link
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Can you make the same changes here?

🙈

@danhhz danhhz requested a review from a team January 2, 2019 21:33
@danhhz
Copy link
Contributor Author

danhhz commented Jan 2, 2019

Done. That's some nice grepping

@danhhz
Copy link
Contributor Author

danhhz commented Jan 2, 2019

Thanks for the reviews!

bors r=bdarnell,benesch

craig bot pushed a commit that referenced this pull request Jan 2, 2019
33020: sql, roachpb: save representative logical plans in statement stats r=jordanlewis a=celiala

_[This is based off initial work done in #26494]_

We want to show sample logical plans on the Admin UI Statement Details page.

This change introduces logic to sample logical plans and store into statement
statistics. A future commit will surface theses plans in the Admin UI.

Every `n` times a query with a particular fingerprint is run (currently
n is hardcoded to 1000), convert its logical plan to a simplified form
suitable for serialization to JSON or protobuf, and save that plan in
memory as part of the StatementStatistics struct.

Since the admin server's `Queries` method returns the full, unscrubbed
StatementStats proto for each fingerprint, this change exposes these
plans to the admin UI, via [the newly-created]
StatementStatistics.SensitiveInfo.

Notes:
- A future commit could scrub the plans so they can be sent to the reg
  cluster.
- This implementation uses query plans; however, we can adapt this to use
  the optimizer later, if desired.
- Over time, we may also want to consider moving the statement reporting
  code into a goroutine that isn't the primary execution goroutine, both
  for performance reasons and for failure isolation ones.

Release note (sql change): Sample logical plans and store into statement
statistics.

33446: roachtest: ignore unrelated tags when looking for build version r=bdarnell,benesch a=danhhz

Release note: None

Co-authored-by: Pete Vilter <[email protected]>
Co-authored-by: Celia La <[email protected]>
Co-authored-by: Daniel Harrison <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jan 2, 2019

Build succeeded

@craig craig bot merged commit 7146751 into cockroachdb:master Jan 2, 2019
@danhhz danhhz deleted the release_process branch January 2, 2019 22:30
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