зеркало из https://github.com/github/vitess-gh.git
Removing DemoteMaster from vtctl, and UI.
It is just a confusing command. The tabletmanager RPC command is still there (and used during reparent). But no need to expose it.
This commit is contained in:
Родитель
bb79b6933f
Коммит
a803f272f0
|
@ -35,7 +35,7 @@ Lists all tablets in an awk-friendly way.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell name></code> argument is required for the <code><ListAllTablets></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><cell name></code> argument is required for the <code><ListAllTablets></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ListTablets
|
||||
|
@ -52,7 +52,7 @@ Lists specified tablets in an awk-friendly way.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><ListTablets></code> command. This error occurs if the command is not called with at least one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><ListTablets></code> command This error occurs if the command is not called with at least one argument.
|
||||
|
||||
|
||||
### PruneActionLogs
|
||||
|
@ -138,7 +138,7 @@ Creates the specified keyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><CreateKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace name></code> argument is required for the <code><CreateKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### DeleteKeyspace
|
||||
|
@ -162,7 +162,7 @@ Deletes the specified keyspace. In recursive mode, it also recursively deletes a
|
|||
|
||||
#### Errors
|
||||
|
||||
* Must specify the <code><keyspace></code> argument for <code><DeleteKeyspace></code>. This error occurs if the command is not called with exactly one argument.
|
||||
* must specify the <code><keyspace></code> argument for <code><DeleteKeyspace></code> This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### FindAllShardsInKeyspace
|
||||
|
@ -179,7 +179,7 @@ Displays all of the shards in the specified keyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument is required for the <code><FindAllShardsInKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace></code> argument is required for the <code><FindAllShardsInKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### GetKeyspace
|
||||
|
@ -196,7 +196,7 @@ Outputs a JSON structure that contains information about the Keyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument is required for the <code><GetKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace></code> argument is required for the <code><GetKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### GetKeyspaces
|
||||
|
@ -237,14 +237,14 @@ Makes the <destination keyspace/shard> serve the given type. This command
|
|||
* <code>schema_apply</code> – A slaved copy of data that had been serving query traffic but that is now applying a schema change. Following the change, the tablet will revert to its serving type.
|
||||
* <code>snapshot_source</code> – A slaved copy of data where mysqld is <b>not</b> running and where Vitess is serving data files to clone slaves. Use this command to enter this mode: <pre>vtctl Snapshot -server-mode ...</pre> Use this command to exit this mode: <pre>vtctl SnapshotSourceEnd ...</pre>
|
||||
* <code>spare</code> – A slaved copy of data that is ready but not serving query traffic. The data could be a potential master tablet.
|
||||
* <code>drained</code> – A tablet that is reserved for a background process. For example, a tablet used by a vtworker process, where the tablet is likely lagging in replication.
|
||||
* <code>worker</code> – A tablet that is in use by a vtworker process. The tablet is likely lagging in replication.
|
||||
|
||||
|
||||
|
||||
|
||||
#### Errors
|
||||
|
||||
* The <code><destination keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><MigrateServedFrom></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><destination keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><MigrateServedFrom></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### MigrateServedTypes
|
||||
|
@ -287,8 +287,8 @@ Migrates a serving type from the source shard to the shards that it replicates t
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><source keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><MigrateServedTypes></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* The <code><skip-refresh-state></code> flag can only be specified for non-master migrations.
|
||||
* the <code><source keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><MigrateServedTypes></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><skip-refresh-state></code> flag can only be specified for non-master migrations
|
||||
|
||||
|
||||
### RebuildKeyspaceGraph
|
||||
|
@ -312,7 +312,7 @@ Rebuilds the serving data for the keyspace. This command may trigger an update t
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument must be used to specify at least one keyspace when calling the <code><RebuildKeyspaceGraph></code> command. This error occurs if the command is not called with at least one argument.
|
||||
* the <code><keyspace></code> argument must be used to specify at least one keyspace when calling the <code><RebuildKeyspaceGraph></code> command This error occurs if the command is not called with at least one argument.
|
||||
|
||||
|
||||
### RemoveKeyspaceCell
|
||||
|
@ -338,7 +338,7 @@ Removes the cell from the Cells list for all shards in the keyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> and <code><cell></code> arguments are required for the <code><RemoveKeyspaceCell></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace></code> and <code><cell></code> arguments are required for the <code><RemoveKeyspaceCell></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### SetKeyspaceServedFrom
|
||||
|
@ -380,7 +380,7 @@ Changes the ServedFromMap manually. This command is intended for emergency fixes
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> and <code><tablet type></code> arguments are required for the <code><SetKeyspaceServedFrom></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace name></code> and <code><tablet type></code> arguments are required for the <code><SetKeyspaceServedFrom></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### SetKeyspaceShardingInfo
|
||||
|
@ -406,8 +406,8 @@ Updates the sharding information for a keyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><SetKeyspaceShardingInfo></code> command. The <code><column name></code> and <code><column type></code> arguments are both optional. This error occurs if the command is not called with between 1 and 3 arguments.
|
||||
* Both <code><column name></code> and <code><column type></code> must be set, or both must be unset.
|
||||
* the <code><keyspace name></code> argument is required for the <code><SetKeyspaceShardingInfo></code> command. The <code><column name></code> and <code><column type></code> arguments are both optional This error occurs if the command is not called with between 1 and 3 arguments.
|
||||
* both <code><column name></code> and <code><column type></code> must be set, or both must be unset
|
||||
|
||||
|
||||
### ValidateKeyspace
|
||||
|
@ -431,7 +431,7 @@ Validates that all nodes reachable from the specified keyspace are consistent.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><ValidateKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace name></code> argument is required for the <code><ValidateKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### WaitForDrain
|
||||
|
@ -474,7 +474,7 @@ Blocks until no new queries were observed on all tablets with the given tablet t
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> and <code><tablet type></code> arguments are both required for the <code><WaitForDrain></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace/shard></code> and <code><tablet type></code> arguments are both required for the <code><WaitForDrain></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
## Queries
|
||||
|
@ -605,11 +605,11 @@ Executes the SplitQuery computation for the given SQL query with the provided bo
|
|||
|
||||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| algorithm | string | The algorithm to |
|
||||
| connect_timeout | Duration | Connection timeout for vtgate client |
|
||||
| keyspace | string | keyspace to send query to |
|
||||
| server | string | VtGate server to connect to |
|
||||
| split_column | string | force the use of this column to split the query |
|
||||
| split_count | Int | number of splits to generate |
|
||||
| split_count | Int64 | number of splits to generate. |
|
||||
|
||||
|
||||
#### Arguments
|
||||
|
@ -622,6 +622,8 @@ Executes the SplitQuery computation for the given SQL query with the provided bo
|
|||
#### Errors
|
||||
|
||||
* the <code><sql></code> argument is required for the <code><VtGateSplitQuery></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* Exactly one of <code><split_count></code> or num_rows_per_query_part
|
||||
* Unknown split-query <code><algorithm></code>: %v
|
||||
* error connecting to vtgate '%v': %v
|
||||
* SplitQuery failed: %v
|
||||
|
||||
|
@ -823,7 +825,7 @@ Outputs a JSON structure that contains information about the ShardReplication.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell></code> and <code><keyspace/shard></code> arguments are required for the <code><GetShardReplication></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><cell></code> and <code><keyspace/shard></code> arguments are required for the <code><GetShardReplication></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
## Resharding Throttler
|
||||
|
@ -1011,7 +1013,7 @@ Applies the schema change to the specified keyspace on every master, running in
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument is required for the command<code><ApplySchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace></code> argument is required for the command<code><ApplySchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ApplyVSchema
|
||||
|
@ -1038,8 +1040,8 @@ Applies the VTGate routing schema to the provided keyspace. Shows the result aft
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument is required for the <code><ApplyVSchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* Either the <code><vschema></code> or <code><vschema></code>File flag must be specified when calling the <code><ApplyVSchema></code> command.
|
||||
* the <code><keyspace></code> argument is required for the <code><ApplyVSchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* rither the <code><vschema></code> or <code><vschema></code>File flag must be specified when calling the <code><ApplyVSchema></code> command
|
||||
|
||||
|
||||
### CopySchemaShard
|
||||
|
@ -1054,9 +1056,9 @@ Copies the schema from a source shard's master (or a specific tablet) to a desti
|
|||
|
||||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| exclude_tables | string | Specifies a comma-separated list of regular expressions for which tables to exclude |
|
||||
| exclude_tables | string | Specifies a comma-separated list of tables to exclude. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
| include-views | Boolean | Includes views in the output |
|
||||
| tables | string | Specifies a comma-separated list of regular expressions for which tables gather schema information for |
|
||||
| tables | string | Specifies a comma-separated list of tables to copy. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
| wait_slave_timeout | Duration | The amount of time to wait for slaves to receive the schema change via replication. |
|
||||
|
||||
|
||||
|
@ -1067,7 +1069,7 @@ Copies the schema from a source shard's master (or a specific tablet) to a desti
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><source keyspace/shard></code> and <code><destination keyspace/shard></code> arguments are both required for the <code><CopySchemaShard></code> command. Instead of the <code><source keyspace/shard></code> argument, you can also specify <code><tablet alias></code> which refers to a specific tablet of the shard in the source keyspace. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><source keyspace/shard></code> and <code><destination keyspace/shard></code> arguments are both required for the <code><CopySchemaShard></code> command. Instead of the <code><source keyspace/shard></code> argument, you can also specify <code><tablet alias></code> which refers to a specific tablet of the shard in the source keyspace This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### GetPermissions
|
||||
|
@ -1084,7 +1086,7 @@ Displays the permissions for a tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><GetPermissions></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><GetPermissions></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### GetSchema
|
||||
|
@ -1099,10 +1101,10 @@ Displays the full schema for a tablet, or just the schema for the specified tabl
|
|||
|
||||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| exclude_tables | string | Specifies a comma-separated list of regular expressions for tables to exclude |
|
||||
| exclude_tables | string | Specifies a comma-separated list of tables to exclude. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
| include-views | Boolean | Includes views in the output |
|
||||
| table_names_only | Boolean | Only displays table names that match |
|
||||
| tables | string | Specifies a comma-separated list of regular expressions for which tables should gather information |
|
||||
| tables | string | Specifies a comma-separated list of tables for which we should gather information. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
|
||||
|
||||
#### Arguments
|
||||
|
@ -1111,7 +1113,7 @@ Displays the full schema for a tablet, or just the schema for the specified tabl
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><GetSchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><GetSchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### GetVSchema
|
||||
|
@ -1128,7 +1130,7 @@ Displays the VTGate routing schema.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace></code> argument is required for the <code><GetVSchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace></code> argument is required for the <code><GetVSchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### RebuildVSchemaGraph
|
||||
|
@ -1148,7 +1150,7 @@ Rebuilds the cell-specific SrvVSchema from the global VSchema objects in the pro
|
|||
|
||||
#### Errors
|
||||
|
||||
* <code><RebuildVSchemaGraph></code> doesn't take any arguments. This error occurs if the command is not called with exactly 0 arguments.
|
||||
* <code><RebuildVSchemaGraph></code> doesn't take any arguments This error occurs if the command is not called with exactly 0 arguments.
|
||||
|
||||
|
||||
### ReloadSchema
|
||||
|
@ -1165,7 +1167,7 @@ Reloads the schema on a remote tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><ReloadSchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><ReloadSchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidatePermissionsKeyspace
|
||||
|
@ -1182,7 +1184,7 @@ Validates that the master permissions from shard 0 match those of all of the oth
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><ValidatePermissionsKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace name></code> argument is required for the <code><ValidatePermissionsKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidatePermissionsShard
|
||||
|
@ -1199,7 +1201,7 @@ Validates that the master permissions match all the slaves.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><ValidatePermissionsShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ValidatePermissionsShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidateSchemaKeyspace
|
||||
|
@ -1214,7 +1216,7 @@ Validates that the master schema from shard 0 matches the schema on all of the o
|
|||
|
||||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| exclude_tables | string | Specifies a comma-separated list of regular expressions for tables to exclude |
|
||||
| exclude_tables | string | Specifies a comma-separated list of tables to exclude. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
| include-views | Boolean | Includes views in the validation |
|
||||
|
||||
|
||||
|
@ -1224,7 +1226,7 @@ Validates that the master schema from shard 0 matches the schema on all of the o
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><ValidateSchemaKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace name></code> argument is required for the <code><ValidateSchemaKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidateSchemaShard
|
||||
|
@ -1239,7 +1241,7 @@ Validates that the master schema matches all of the slaves.
|
|||
|
||||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| exclude_tables | string | Specifies a comma-separated list of regular expressions for tables to exclude |
|
||||
| exclude_tables | string | Specifies a comma-separated list of tables to exclude. Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
| include-views | Boolean | Includes views in the validation |
|
||||
|
||||
|
||||
|
@ -1249,7 +1251,7 @@ Validates that the master schema matches all of the slaves.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><ValidateSchemaShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ValidateSchemaShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidateVersionKeyspace
|
||||
|
@ -1266,7 +1268,7 @@ Validates that the master version from shard 0 matches all of the other tablets
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace name></code> argument is required for the <code><ValidateVersionKeyspace></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace name></code> argument is required for the <code><ValidateVersionKeyspace></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidateVersionShard
|
||||
|
@ -1283,7 +1285,7 @@ Validates that the master version matches all of the slaves.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is requird for the <code><ValidateVersionShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ValidateVersionShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
## Serving Graph
|
||||
|
@ -1307,7 +1309,7 @@ Outputs a JSON structure that contains information about the SrvKeyspace.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell></code> and <code><keyspace></code> arguments are required for the <code><GetSrvKeyspace></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><cell></code> and <code><keyspace></code> arguments are required for the <code><GetSrvKeyspace></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### GetSrvKeyspaceNames
|
||||
|
@ -1324,7 +1326,7 @@ Outputs a list of keyspace names.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell></code> argument is required for the <code><GetSrvKeyspaceNames></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><cell></code> argument is required for the <code><GetSrvKeyspaceNames></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### GetSrvVSchema
|
||||
|
@ -1341,7 +1343,7 @@ Outputs a JSON structure that contains information about the SrvVSchema.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell></code> argument is required for the <code><GetSrvVSchema></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><cell></code> argument is required for the <code><GetSrvVSchema></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
## Shards
|
||||
|
@ -1388,7 +1390,7 @@ Creates the specified shard.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><CreateShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><CreateShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### DeleteShard
|
||||
|
@ -1413,7 +1415,7 @@ Deletes the specified shard(s). In recursive mode, it also deletes all tablets b
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument must be used to identify at least one keyspace and shard when calling the <code><DeleteShard></code> command. This error occurs if the command is not called with at least one argument.
|
||||
* the <code><keyspace/shard></code> argument must be used to identify at least one keyspace and shard when calling the <code><DeleteShard></code> command This error occurs if the command is not called with at least one argument.
|
||||
|
||||
|
||||
### EmergencyReparentShard
|
||||
|
@ -1453,7 +1455,7 @@ Outputs a JSON structure that contains information about the Shard.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><GetShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><GetShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### InitShardMaster
|
||||
|
@ -1509,7 +1511,7 @@ Lists all tablets in the specified shard.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><ListShardTablets></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ListShardTablets></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### PlannedReparentShard
|
||||
|
@ -1576,7 +1578,7 @@ Removes the cell from the shard's Cells list.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> and <code><cell></code> arguments are required for the <code><RemoveShardCell></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace/shard></code> and <code><cell></code> arguments are required for the <code><RemoveShardCell></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### SetShardServedTypes
|
||||
|
@ -1617,7 +1619,7 @@ Add or remove served type to/from a shard. This is meant as an emergency functio
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><SetShardServedTypes></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace/shard></code> and <code><served tablet type></code> arguments are both required for the <code><SetShardServedTypes></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### SetShardTabletControl
|
||||
|
@ -1635,7 +1637,7 @@ Sets the TabletControl record for a shard and type. Only use this for an emergen
|
|||
| cells | string | Specifies a comma-separated list of cells to update |
|
||||
| disable_query_service | Boolean | Disables query service on the provided nodes |
|
||||
| remove | Boolean | Removes cells for vertical splits. This flag requires the *tables* flag to also be set. |
|
||||
| tables | string | Specifies a comma-separated list of tables to replicate (used for vertical split) |
|
||||
| tables | string | Specifies a comma-separated list of tables to replicate (used for vertical split). Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
|
||||
|
||||
#### Arguments
|
||||
|
@ -1660,7 +1662,7 @@ Sets the TabletControl record for a shard and type. Only use this for an emergen
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> and <code><tablet type></code> arguments are both required for the <code><SetShardTabletControl></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><keyspace/shard></code> and <code><tablet type></code> arguments are both required for the <code><SetShardTabletControl></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### ShardReplicationFix
|
||||
|
@ -1678,7 +1680,7 @@ Walks through a ShardReplication object and fixes the first error that it encoun
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><cell></code> and <code><keyspace/shard></code> arguments are required for the ShardReplicationRemove command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><cell></code> and <code><keyspace/shard></code> arguments are required for the ShardReplicationRemove command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### ShardReplicationPositions
|
||||
|
@ -1695,7 +1697,7 @@ Shows the replication status of each slave machine in the shard graph. In this c
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><ShardReplicationPositions></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ShardReplicationPositions></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### SourceShardAdd
|
||||
|
@ -1711,7 +1713,7 @@ Adds the SourceShard record with the provided index. This is meant as an emergen
|
|||
| Name | Type | Definition |
|
||||
| :-------- | :--------- | :--------- |
|
||||
| key_range | string | Identifies the key range to use for the SourceShard |
|
||||
| tables | string | Specifies a comma-separated list of tables to replicate (used for vertical split) |
|
||||
| tables | string | Specifies a comma-separated list of tables to replicate (used for vertical split). Each is either an exact match, or a regular expression of the form /regexp/ |
|
||||
|
||||
|
||||
#### Arguments
|
||||
|
@ -1722,7 +1724,7 @@ Adds the SourceShard record with the provided index. This is meant as an emergen
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code>, <code><uid></code>, and <code><source keyspace/shard></code> arguments are all required for the <code><SourceShardAdd></code> command. This error occurs if the command is not called with exactly 3 arguments.
|
||||
* the <code><keyspace/shard></code>, <code><uid></code>, and <code><source keyspace/shard></code> arguments are all required for the <code><SourceShardAdd></code> command This error occurs if the command is not called with exactly 3 arguments.
|
||||
|
||||
|
||||
### SourceShardDelete
|
||||
|
@ -1740,7 +1742,7 @@ Deletes the SourceShard record with the provided index. This is meant as an emer
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> and <code><uid></code> arguments are both required for the <code><SourceShardDelete></code> command. This error occurs if the command is not called with at least 2 arguments.
|
||||
* the <code><keyspace/shard></code> and <code><uid></code> arguments are both required for the <code><SourceShardDelete></code> command This error occurs if the command is not called with at least 2 arguments.
|
||||
|
||||
|
||||
### TabletExternallyReparented
|
||||
|
@ -1757,7 +1759,7 @@ Changes metadata in the topology server to acknowledge a shard master change per
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><TabletExternallyReparented></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><TabletExternallyReparented></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ValidateShard
|
||||
|
@ -1781,7 +1783,7 @@ Validates that all nodes that are reachable from this shard are consistent.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><ValidateShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><ValidateShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### WaitForFilteredReplication
|
||||
|
@ -1798,7 +1800,7 @@ Blocks until the specified shard has caught up with the filtered replication of
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><WaitForFilteredReplication></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><WaitForFilteredReplication></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* shard %v/%v has no source shard
|
||||
* shard %v/%v has no master
|
||||
* failed to run explicit healthcheck on tablet: %v err: %v
|
||||
|
@ -1817,7 +1819,6 @@ Blocks until the specified shard has caught up with the filtered replication of
|
|||
* [Backup](#backup)
|
||||
* [ChangeSlaveType](#changeslavetype)
|
||||
* [DeleteTablet](#deletetablet)
|
||||
* [DemoteMaster](#demotemaster)
|
||||
* [ExecuteFetchAsDba](#executefetchasdba)
|
||||
* [ExecuteHook](#executehook)
|
||||
* [GetTablet](#gettablet)
|
||||
|
@ -1857,7 +1858,7 @@ Stops mysqld and uses the BackupStorage service to store a new backup. This func
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><Backup></code> command requires the <code><tablet alias></code> argument. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><Backup></code> command requires the <code><tablet alias></code> argument This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ChangeSlaveType
|
||||
|
@ -1897,7 +1898,7 @@ Changes the db type for the specified tablet, if possible. This command is used
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><db type></code> arguments are required for the <code><ChangeSlaveType></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><db type></code> arguments are required for the <code><ChangeSlaveType></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
* failed reading tablet %v: %v
|
||||
* invalid type transition %v: %v -></code> %v
|
||||
|
||||
|
@ -1923,20 +1924,7 @@ Deletes tablet(s) from the topology.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument must be used to specify at least one tablet when calling the <code><DeleteTablet></code> command. This error occurs if the command is not called with at least one argument.
|
||||
|
||||
|
||||
### DemoteMaster
|
||||
|
||||
Demotes a master tablet.
|
||||
|
||||
#### Example
|
||||
|
||||
<pre class="command-example">DemoteMaster <tablet alias></pre>
|
||||
|
||||
#### Errors
|
||||
|
||||
* action <code><DemoteMaster></code> requires <code><tablet alias></code> This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument must be used to specify at least one tablet when calling the <code><DeleteTablet></code> command This error occurs if the command is not called with at least one argument.
|
||||
|
||||
|
||||
### ExecuteFetchAsDba
|
||||
|
@ -1964,7 +1952,7 @@ Runs the given SQL command as a DBA on the remote tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><sql command></code> arguments are required for the <code><ExecuteFetchAsDba></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><sql command></code> arguments are required for the <code><ExecuteFetchAsDba></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### ExecuteHook
|
||||
|
@ -1983,7 +1971,7 @@ Runs the specified hook on the given tablet. A hook is a script that resides in
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><hook name></code> arguments are required for the <code><ExecuteHook></code> command. This error occurs if the command is not called with at least 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><hook name></code> arguments are required for the <code><ExecuteHook></code> command This error occurs if the command is not called with at least 2 arguments.
|
||||
|
||||
|
||||
### GetTablet
|
||||
|
@ -2000,7 +1988,7 @@ Outputs a JSON structure that contains information about the Tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><GetTablet></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><GetTablet></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### IgnoreHealthError
|
||||
|
@ -2018,7 +2006,7 @@ Sets the regexp for health check errors to ignore on the specified tablet. The p
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><ignore regexp></code> arguments are required for the <code><IgnoreHealthError></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><ignore regexp></code> arguments are required for the <code><IgnoreHealthError></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### InitTablet
|
||||
|
@ -2068,7 +2056,7 @@ Initializes a tablet in the topology.<br><br>
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><tablet type></code> arguments are both required for the <code><InitTablet></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><tablet type></code> arguments are both required for the <code><InitTablet></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### Ping
|
||||
|
@ -2085,7 +2073,7 @@ Checks that the specified tablet is awake and responding to RPCs. This command c
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><Ping></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><Ping></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### RefreshState
|
||||
|
@ -2102,7 +2090,7 @@ Reloads the tablet record on the specified tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><RefreshState></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><RefreshState></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### RefreshStateByShard
|
||||
|
@ -2126,7 +2114,7 @@ Runs 'RefreshState' on all tablets in the given shard.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><keyspace/shard></code> argument is required for the <code><RefreshStateByShard></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><keyspace/shard></code> argument is required for the <code><RefreshStateByShard></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### ReparentTablet
|
||||
|
@ -2152,7 +2140,7 @@ Stops mysqld and restores the data from the latest backup.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><RestoreFromBackup></code> command requires the <code><tablet alias></code> argument. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><RestoreFromBackup></code> command requires the <code><tablet alias></code> argument This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### RunHealthCheck
|
||||
|
@ -2169,7 +2157,7 @@ Runs a health check on a remote tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><RunHealthCheck></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><RunHealthCheck></code> command This error occurs if the command is not called with exactly one argument.
|
||||
|
||||
|
||||
### SetReadOnly
|
||||
|
@ -2186,7 +2174,7 @@ Sets the tablet as read-only.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><SetReadOnly></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><SetReadOnly></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* failed reading tablet %v: %v
|
||||
|
||||
|
||||
|
@ -2204,7 +2192,7 @@ Sets the tablet as read-write.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><SetReadWrite></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><SetReadWrite></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* failed reading tablet %v: %v
|
||||
|
||||
|
||||
|
@ -2223,7 +2211,7 @@ Blocks the action queue on the specified tablet for the specified amount of time
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> and <code><duration></code> arguments are required for the <code><Sleep></code> command. This error occurs if the command is not called with exactly 2 arguments.
|
||||
* the <code><tablet alias></code> and <code><duration></code> arguments are required for the <code><Sleep></code> command This error occurs if the command is not called with exactly 2 arguments.
|
||||
|
||||
|
||||
### StartSlave
|
||||
|
@ -2287,7 +2275,7 @@ Updates the IP address and port numbers of a tablet.
|
|||
|
||||
#### Errors
|
||||
|
||||
* The <code><tablet alias></code> argument is required for the <code><UpdateTabletAddrs></code> command. This error occurs if the command is not called with exactly one argument.
|
||||
* the <code><tablet alias></code> argument is required for the <code><UpdateTabletAddrs></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* malformed address: %v
|
||||
|
||||
|
||||
|
@ -2295,6 +2283,7 @@ Updates the IP address and port numbers of a tablet.
|
|||
|
||||
* [WorkflowAction](#workflowaction)
|
||||
* [WorkflowCreate](#workflowcreate)
|
||||
* [WorkflowDelete](#workflowdelete)
|
||||
* [WorkflowStart](#workflowstart)
|
||||
* [WorkflowStop](#workflowstop)
|
||||
* [WorkflowTree](#workflowtree)
|
||||
|
@ -2343,6 +2332,20 @@ Creates the workflow with the provided parameters. The workflow is also started,
|
|||
* no workflow.Manager registered
|
||||
|
||||
|
||||
### WorkflowDelete
|
||||
|
||||
Deletes the finished or not started workflow.
|
||||
|
||||
#### Example
|
||||
|
||||
<pre class="command-example">WorkflowDelete <uuid></pre>
|
||||
|
||||
#### Errors
|
||||
|
||||
* the <code><uuid></code> argument is required for the <code><WorkflowDelete></code> command This error occurs if the command is not called with exactly one argument.
|
||||
* no workflow.Manager registered
|
||||
|
||||
|
||||
### WorkflowStart
|
||||
|
||||
Starts the workflow.
|
||||
|
|
|
@ -33,11 +33,6 @@ func init() {
|
|||
return
|
||||
}
|
||||
|
||||
addCommand("Tablets", command{
|
||||
"DemoteMaster",
|
||||
commandDemoteMaster,
|
||||
"<tablet alias>",
|
||||
"Demotes a master tablet."})
|
||||
addCommand("Tablets", command{
|
||||
"ReparentTablet",
|
||||
commandReparentTablet,
|
||||
|
@ -62,25 +57,6 @@ func init() {
|
|||
})
|
||||
}
|
||||
|
||||
func commandDemoteMaster(ctx context.Context, wr *wrangler.Wrangler, subFlags *flag.FlagSet, args []string) error {
|
||||
if err := subFlags.Parse(args); err != nil {
|
||||
return err
|
||||
}
|
||||
if subFlags.NArg() != 1 {
|
||||
return fmt.Errorf("action DemoteMaster requires <tablet alias>")
|
||||
}
|
||||
tabletAlias, err := topoproto.ParseTabletAlias(subFlags.Arg(0))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
tabletInfo, err := wr.TopoServer().GetTablet(ctx, tabletAlias)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = wr.TabletManagerClient().DemoteMaster(ctx, tabletInfo.Tablet)
|
||||
return err
|
||||
}
|
||||
|
||||
func commandReparentTablet(ctx context.Context, wr *wrangler.Wrangler, subFlags *flag.FlagSet, args []string) error {
|
||||
if err := subFlags.Parse(args); err != nil {
|
||||
return err
|
||||
|
|
|
@ -137,9 +137,6 @@ class TestTabletManager(unittest.TestCase):
|
|||
utils.run_vtctl(['SetReadWrite', tablet_62344.tablet_alias])
|
||||
utils.check_db_read_write(62344)
|
||||
|
||||
utils.run_vtctl(['DemoteMaster', tablet_62344.tablet_alias])
|
||||
utils.wait_db_read_only(62344)
|
||||
|
||||
utils.validate_topology()
|
||||
utils.run_vtctl(['ValidateKeyspace', 'test_keyspace'])
|
||||
# not pinging tablets, as it enables replication checks, and they
|
||||
|
|
|
@ -28,5 +28,5 @@
|
|||
</head>
|
||||
<body class="flex-column">
|
||||
<vt-app-root class="flex-column flex-grow">Loading...</vt-app-root>
|
||||
<script type="text/javascript" src="inline.js"></script><script type="text/javascript" src="styles.07f8743f5392cfdfbcb5.bundle.js"></script><script type="text/javascript" src="main.b1fe67195c63c84e6f5d.bundle.js"></script></body>
|
||||
<script type="text/javascript" src="inline.js"></script><script type="text/javascript" src="styles.07f8743f5392cfdfbcb5.bundle.js"></script><script type="text/javascript" src="main.90ec0a96264ee7c78ba9.bundle.js"></script></body>
|
||||
</html>
|
||||
|
|
|
@ -1 +1 @@
|
|||
!function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,o,c){for(var _,i,a,u=0,p=[];u<t.length;u++)i=t[u],n[i]&&p.push(n[i][0]),n[i]=0;for(_ in o)if(Object.prototype.hasOwnProperty.call(o,_)){var f=o[_];switch(typeof f){case"object":e[_]=function(r){var t=r.slice(1),n=r[0];return function(r,o,c){e[n].apply(this,[r,o,c].concat(t))}}(f);break;case"function":e[_]=f;break;default:e[_]=e[f]}}for(r&&r(t,o,c);p.length;)p.shift()();if(c)for(u=0;u<c.length;u++)a=__webpack_require__(__webpack_require__.s=c[u]);return a};var t={},n={2:0};__webpack_require__.e=function(e){function onScriptComplete(){t.onerror=t.onload=null,clearTimeout(o);var r=n[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}if(0===n[e])return Promise.resolve();if(n[e])return n[e][2];var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,t.src=__webpack_require__.p+""+e+"."+{0:"b1fe67195c63c84e6f5d",1:"07f8743f5392cfdfbcb5"}[e]+".chunk.js";var o=setTimeout(onScriptComplete,12e4);t.onerror=t.onload=onScriptComplete,r.appendChild(t);var c=new Promise(function(r,t){n[e]=[r,t]});return n[e][2]=c},__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,r,t){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__.oe=function(e){throw console.error(e),e}}(function(e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))switch(typeof e[r]){case"function":break;case"object":e[r]=function(r){var t=r.slice(1),n=e[r[0]];return function(e,r,o){n.apply(this,[e,r,o].concat(t))}}(e[r]);break;default:e[r]=e[e[r]]}return e}([]));
|
||||
!function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,o,c){for(var _,a,i,u=0,p=[];u<t.length;u++)a=t[u],n[a]&&p.push(n[a][0]),n[a]=0;for(_ in o)if(Object.prototype.hasOwnProperty.call(o,_)){var f=o[_];switch(typeof f){case"object":e[_]=function(r){var t=r.slice(1),n=r[0];return function(r,o,c){e[n].apply(this,[r,o,c].concat(t))}}(f);break;case"function":e[_]=f;break;default:e[_]=e[f]}}for(r&&r(t,o,c);p.length;)p.shift()();if(c)for(u=0;u<c.length;u++)i=__webpack_require__(__webpack_require__.s=c[u]);return i};var t={},n={2:0};__webpack_require__.e=function(e){function onScriptComplete(){t.onerror=t.onload=null,clearTimeout(o);var r=n[e];0!==r&&(r&&r[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}if(0===n[e])return Promise.resolve();if(n[e])return n[e][2];var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,t.src=__webpack_require__.p+""+e+"."+{0:"90ec0a96264ee7c78ba9",1:"07f8743f5392cfdfbcb5"}[e]+".chunk.js";var o=setTimeout(onScriptComplete,12e4);t.onerror=t.onload=onScriptComplete,r.appendChild(t);var c=new Promise(function(r,t){n[e]=[r,t]});return n[e][2]=c},__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,r,t){Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__.oe=function(e){throw console.error(e),e}}(function(e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))switch(typeof e[r]){case"function":break;case"object":e[r]=function(r){var t=r.slice(1),n=e[r[0]];return function(e,r,o){n.apply(this,[e,r,o].concat(t))}}(e[r]);break;default:e[r]=e[e[r]]}return e}([]));
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Двоичный файл не отображается.
Двоичные данные
web/vtctld2/app/main.b1fe67195c63c84e6f5d.bundle.js.gz
Двоичные данные
web/vtctld2/app/main.b1fe67195c63c84e6f5d.bundle.js.gz
Двоичный файл не отображается.
|
@ -118,7 +118,6 @@ export class ShardComponent implements OnInit, OnDestroy {
|
|||
// Add an entire section.
|
||||
result.push(
|
||||
{label: 'Reparent', items: [
|
||||
{label: 'Demote Master', command: (event) => {this.openDemoteMasterDialog(); }},
|
||||
{label: 'Reparent Tablet', command: (event) => {this.openReparentTabletDialog(); }},
|
||||
]}
|
||||
);
|
||||
|
@ -386,19 +385,6 @@ export class ShardComponent implements OnInit, OnDestroy {
|
|||
this.dialogSettings.toggleModal();
|
||||
}
|
||||
|
||||
openDemoteMasterDialog() {
|
||||
this.dialogSettings = new DialogSettings('Demote', `Demote ${this.selectedTablet.label}`,
|
||||
`Makes a master tablet read-only, waits for all transactions to finish, ` +
|
||||
`and return its replication position. Does not change the type, nor reparent slaves.` +
|
||||
` Use with caution.`,
|
||||
`There was a problem demoting ${this.selectedTablet.label}:`);
|
||||
this.dialogSettings.setMessage(`Demoted ${this.selectedTablet.label}`);
|
||||
this.dialogSettings.onCloseFunction = this.refreshShardView.bind(this);
|
||||
let flags = new PingTabletFlags(this.selectedTablet.alias).flags;
|
||||
this.dialogContent = new DialogContent('tablet_alias', flags, {}, undefined, 'DemoteMaster');
|
||||
this.dialogSettings.toggleModal();
|
||||
}
|
||||
|
||||
openReparentTabletDialog() {
|
||||
this.dialogSettings = new DialogSettings('Reparent', `Reparent ${this.selectedTablet.label}`,
|
||||
`Re-connect the replication for ${this.selectedTablet.label} to the current master.` +
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
<button md-raised-button (click)="openStopSlaveDialog();">StopSlave</button>
|
||||
<button md-raised-button (click)="openRunHealthCheckDialog();">RunHealthCheck</button>
|
||||
<button md-raised-button (click)="openIgnoreHealthErrorDialog();">IgnoreHealthError</button>
|
||||
<button md-raised-button (click)="openDemoteMasterDialog();">DemoteMaster</button>
|
||||
<button md-raised-button (click)="openReparentTabletDialog();">ReparentTablet</button>
|
||||
</p-accordionTab>
|
||||
</p-accordion>
|
||||
|
@ -24,4 +23,4 @@
|
|||
</p-dialog>
|
||||
<div *ngIf="dialogSettings.open" class="vt-popUpContainer" >
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
|
|
|
@ -155,16 +155,6 @@ export class TabletComponent implements OnInit, OnDestroy {
|
|||
this.dialogSettings.toggleModal();
|
||||
}
|
||||
|
||||
openDemoteMasterDialog() {
|
||||
this.dialogSettings = new DialogSettings('Demote', `Demote ${this.tablet.label}`, '',
|
||||
`There was a problem demoting ${this.tablet.label}:`);
|
||||
this.dialogSettings.setMessage(`Demoted ${this.tablet.label}`);
|
||||
this.dialogSettings.onCloseFunction = this.refreshTabletView.bind(this);
|
||||
let flags = new PingTabletFlags(this.tablet.ref).flags;
|
||||
this.dialogContent = new DialogContent('tablet_alias', flags, {}, undefined, 'DemoteMaster');
|
||||
this.dialogSettings.toggleModal();
|
||||
}
|
||||
|
||||
openReparentTabletDialog() {
|
||||
this.dialogSettings = new DialogSettings('Reparent', `Reparent ${this.tablet.label}`, '',
|
||||
`There was a problem reparenting ${this.tablet.label}:`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче