A set of parameters for GPUdb::adminRepairTable. More…
#include <gpudb/protocol/admin_repair_table.h>
Public Member Functions | |
| AdminRepairTableRequest () | |
| Constructs an AdminRepairTableRequest object with default parameters. | |
| AdminRepairTableRequest (const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &tableTypes_, const std::map< std::string, std::string > &options_) | |
| Constructs an AdminRepairTableRequest object with the specified parameters. | |
Public Attributes | |
| std::vector< std::string > | tableNames |
| List of tables to query. | |
| std::map< std::string, std::string > | tableTypes |
| ID of the type per table. | |
| std::map< std::string, std::string > | options |
| Optional parameters. | |
Detailed Description
A set of parameters for GPUdb::adminRepairTable.
Manually repair a corrupted table. Returns information about affected tables.
Definition at line 19 of file admin_repair_table.h.
Constructor & Destructor Documentation
◆ AdminRepairTableRequest() [1/2]
| inline |
Constructs an AdminRepairTableRequest object with default parameters.
Definition at line 25 of file admin_repair_table.h.
◆ AdminRepairTableRequest() [2/2]
| inline |
Constructs an AdminRepairTableRequest object with the specified parameters.
| [in] | tableNames_ | List of tables to query. An asterisk returns all tables. |
| [in] | tableTypes_ | ID of the type per table. |
| [in] | options_ | Optional parameters.
|
Definition at line 123 of file admin_repair_table.h.
Member Data Documentation
◆ options
| std::map<std::string, std::string> gpudb::AdminRepairTableRequest::options |
Optional parameters.
- admin_repair_table_repair_policy: Corrective action to take. Supported values:
- admin_repair_table_delete_chunks: Deletes any corrupted chunks.
- admin_repair_table_shrink_columns: Shrinks corrupted chunks to the shortest column.
- admin_repair_table_replay_wal: Manually invokes write-ahead log (WAL) replay on the table.
- admin_repair_table_alter_table: Reset columns modification after incomplete alter column.
- admin_repair_table_resync_replicas: Repairs replicated tables whose record counts differ across the worker ranks and toms: the copy with the most records is kept, and every other copy is replaced with it. That copy may include records from a load that did not complete, or records that a delete did not remove. A table whose copies all have the same number of records is not repaired, even if their contents differ. Views cannot be named in tableNames; a named table that is not replicated is reported in repairStatus. An asterisk selects every replicated table. The repair runs only while no other requests are running. The repaired tables are listed in the repaired_replicated_tables entry of the response info map.
- admin_repair_table_verify_all: If false only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:The default value is admin_repair_table_false.
The default value is an empty map.
Definition at line 200 of file admin_repair_table.h.
◆ tableNames
| std::vector<std::string> gpudb::AdminRepairTableRequest::tableNames |
List of tables to query.
An asterisk returns all tables.
Definition at line 133 of file admin_repair_table.h.
◆ tableTypes
| std::map<std::string, std::string> gpudb::AdminRepairTableRequest::tableTypes |
ID of the type per table.
Definition at line 138 of file admin_repair_table.h.
The documentation for this struct was generated from the following file:
- gpudb/protocol/admin_repair_table.h