forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
130270: kvserver,inspectz: add rac2 inspectz support r=sumeerbhola a=kvoli The existing flow control tables are: ``` crdb_internal.kv_flow_controller crdb_internal.kv_flow_control_handles crdb_internal.kv_flow_token_deductions ``` Which are used in testing to assert on flow control stream state and transitions. Introduce another set of three tables, most of which are identical to the exsting tables but populating the table data using rac2. ``` crdb_internal.kv_flow_controller_v2 crdb_internal.kv_flow_control_handles_v2 crdb_internal.kv_flow_token_deductions_v2 ``` `crdb_internal.kv_flow_controller_v2` has two additional columns, tracking the amount of available (regular|elastic) send tokens. The schema is: ``` CREATE TABLE crdb_internal.kv_flow_controller_v2 ( tenant_id INT NOT NULL, store_id INT NOT NULL, available_eval_regular_tokens INT NOT NULL, available_eval_elastic_tokens INT NOT NULL, available_send_regular_tokens INT NOT NULL, available_send_elastic_tokens INT NOT NULL ); ``` Note that unless rac2 is enabled, the tables are unlikely to show anything interesting. Both tables (v1 and v2) are kept for compatibility, with an intent to replace the v1 tables with the v2 ones after v1 replication flow control is removed entirely from the code. Resolves: cockroachdb#128091 Release note: None Co-authored-by: Austen McClernon <[email protected]>
- Loading branch information
Showing
45 changed files
with
1,760 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.