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-22.1: revert "sql: add database ID to sampled query log" #85026

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

THardy98
Copy link

@THardy98 THardy98 commented Jul 25, 2022

Reverts: #84195, PR that introduces the DatabaseID to the SampledQuery
telemetry log.

This reverts commit 0b9023d, reversing
changes made to 8265e2a.

Removes the DatabaseID field from the SampledQuery telemetry log due to
the potential of indefinite blocking in the case of a lease acquisition
failure. Protobuf field not reserved as no official build was released
with these changes yet.

Release note (sql change): Removes the DatabaseID field from the
SampledQuery telemetry log due to the potential of indefinite blocking
in the case of a lease acquisition failure.

Release justification: Category 2: Bug fixes and low-risk updates to new functionality

@THardy98 THardy98 requested a review from a team as a code owner July 25, 2022 19:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@THardy98 THardy98 force-pushed the revert_database_id_22.1 branch from 4fa7e40 to 504b37f Compare July 25, 2022 19:27
@THardy98 THardy98 requested review from a team and maryliag July 25, 2022 19:28
@THardy98 THardy98 changed the title Revert "Merge pull request #84354 from cockroachdb/blathers/backport-release-22.1-84195" release-22.1: revert "sql: add database ID to sampled query log" Jul 25, 2022
Copy link
Contributor

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

@rail
Copy link
Member

rail commented Jul 26, 2022

Protobuf field not reserved as no official build was released
with these changes yet.

FYI, there is an extraordinary release (v22.1.5) in progress which uses this commit.

Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

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


pkg/util/log/eventpb/telemetry.proto line 63 at r1 (raw file):

  // Statement fingerprint ID of the query.
  uint64 statement_fingerprint_id = 12 [(gogoproto.customname) = "StatementFingerprintID", (gogoproto.jsontag) = ',omitempty'];

from Rail's comment: keep the fingerprint as 13 and reserve 12

cockroachdb/blathers/backport-release-22.1-84195"

Reverts: cockroachdb#84195, PR that introduces the DatabaseID to the `SampledQuery`
telemetry log.

This reverts commit 0b9023d, reversing
changes made to 8265e2a.

Removes the DatabaseID field from the SampledQuery telemetry log due to
the potential of indefinite blocking in the case of a lease acquisition
failure. Protobuf field not reserved as no official build was released
with these changes yet.

Release note (sql change): Removes the DatabaseID field from the
SampledQuery telemetry log due to the potential of indefinite blocking
in the case of a lease acquisition failure.
@THardy98 THardy98 force-pushed the revert_database_id_22.1 branch from 504b37f to 841b4f0 Compare July 27, 2022 14:55
Copy link
Author

@THardy98 THardy98 left a comment

Choose a reason for hiding this comment

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

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


pkg/util/log/eventpb/telemetry.proto line 63 at r1 (raw file):

Previously, maryliag (Marylia Gutierrez) wrote…

from Rail's comment: keep the fingerprint as 13 and reserve 12

Reserved 12 and reverted back to 13.
Small gen.go change to accomodate reserved fields in the proto.

Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

small nit
:lgtm:

Reviewed 1 of 5 files at r1, 1 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @maryliag and @THardy98)


pkg/util/log/eventpb/telemetry.proto line 63 at r1 (raw file):

Previously, THardy98 (Thomas Hardy) wrote…

Reserved 12 and reverted back to 13.
Small gen.go change to accomodate reserved fields in the proto.

same comment as the other PR, put the list of reserved as the last thing

@THardy98 THardy98 merged commit 6bc6b75 into cockroachdb:release-22.1 Jul 27, 2022
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