-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: deprecate database and index fields on HotRanges proto #137043
base: master
Are you sure you want to change the base?
server: deprecate database and index fields on HotRanges proto #137043
Conversation
pkg/server/serverpb/status.proto
Outdated
@@ -1484,9 +1484,9 @@ message HotRangesResponseV2 { | |||
// table_name has been deprecated in favor of tables = 16; | |||
string table_name = 4 [deprecated = true]; | |||
// database_name has been deprecated in favor of databases = 17; | |||
string database_name = 5; | |||
string database_name = 5 [deprecated = true]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think typically we opt for reserved
- is there a reason we're doing a softer deprecation here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason other than muscle memory - I'll change this.
a8f65bb
to
9fb2ee0
Compare
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
9fb2ee0
to
d00c8c9
Compare
d00c8c9
to
421b874
Compare
421b874
to
bfebae3
Compare
In changeset cockroachdb#134106, the database, table, and index fields of the HotRanges protobuf were moved to synonymous keys so that there could be multiple of each. This means a hot range could now have multiple indexes, tables and databases contained within it in the UI. During this change however, only the old table key of the protobuf was deprecated, the database and index fields were not flagged for deprecation. This small change fixes this oversight. Release note: None
bfebae3
to
ca76f7d
Compare
server: deprecate database and index fields on HotRanges proto
In changeset #134106, the database, table, and index fields of the HotRanges protobuf were moved to synonymous keys so that there could be multiple of each. This means a hot range could now have multiple indexes, tables and databases contained within it in the UI.
During this change however, only the old table key of the protobuf was deprecated, the database and index fields were not flagged for deprecation. This small change fixes this oversight.
Epic: CRDB-43151
Release note: None