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

server: add internal_app_name_prefix to ListSessionsResponse #76307

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

gtr
Copy link
Contributor

@gtr gtr commented Feb 9, 2022

Previously, the InternalAppNamePrefix constant from catconstants was
only included in the Statements Response. This change adds that same
field to the ListSessionsResponse.

Release note (API change): InternalAppNamePrefix added to ListSessionsResponse.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@gtr gtr requested review from a team and xinhaoz February 9, 2022 16:53
@gtr gtr force-pushed the gtr-sessions-response branch from 956c4ed to c640017 Compare February 9, 2022 19:26
@xinhaoz
Copy link
Member

xinhaoz commented Feb 9, 2022


pkg/server/serverpb/status.proto, line 823 at r1 (raw file):

  // If set and non-empty, indicates the prefix to application_name
  // used for statements/queries issued internally by CockroachDB.
  string internal_app_name_prefix = 4;

Any reason this field value is 4 and not 3?

@gtr gtr force-pushed the gtr-sessions-response branch from c640017 to 6fee634 Compare February 9, 2022 21:04
@gtr gtr requested a review from a team as a code owner February 9, 2022 21:04
@gtr gtr force-pushed the gtr-sessions-response branch from 6fee634 to 707cf36 Compare February 9, 2022 21:14
@gtr
Copy link
Contributor Author

gtr commented Feb 9, 2022

pkg/server/serverpb/status.proto, line 823 at r1 (raw file):

  // If set and non-empty, indicates the prefix to application_name
  // used for statements/queries issued internally by CockroachDB.
  string internal_app_name_prefix = 4;

Any reason this field value is 4 and not 3?

Good catch! Fixed it.

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 1 of 2 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @gtr and @xinhaoz)


-- commits, line 8 at r2:
you're adding a new value on the api, so there is a release note, in this case a "api change" one

@gtr gtr force-pushed the gtr-sessions-response branch from 707cf36 to 8298732 Compare February 10, 2022 14:47
@xinhaoz
Copy link
Member

xinhaoz commented Feb 10, 2022


pkg/server/status.go, line 2298 at r3 (raw file):

		Sessions:              make([]serverpb.Session, 0),
		Errors:                make([]serverpb.ListSessionsError, 0),
		InternalAppNamePrefix: catconstants.InternalAppNamePrefix,

Make sure to add this toListSessions response for tenants too (in tenant_status.go).

Previously, the InternalAppNamePrefix constant from catconstants was
only included in the Statements Response. This change adds that same
field to the ListSessionsResponse.

Release note: none
@gtr gtr force-pushed the gtr-sessions-response branch from 8298732 to 21dd242 Compare February 10, 2022 16:40
Copy link
Member

@xinhaoz xinhaoz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @gtr, @maryliag, and @xinhaoz)

@gtr
Copy link
Contributor Author

gtr commented Feb 10, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 11, 2022

Build succeeded:

@craig craig bot merged commit c459d39 into cockroachdb:master Feb 11, 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