/admin/repair/table

URL: https://<aws.fqdn>/<aws.cluster.name>/gpudb-0/admin/repair/table

Manually repair a corrupted table. Returns information about affected tables.

Input Parameter Description

NameTypeDescription
table_namesarray of stringsList of tables to query. An asterisk returns all tables.
optionsmap of string to strings

Optional parameters. The default value is an empty map ( {} ).

Supported Parameters (keys)Parameter Description
repair_policy

Corrective action to take

Supported ValuesDescription
delete_chunksDeletes any corrupted chunks
shrink_columnsShrinks corrupted chunks to the shortest column
replay_walManually invokes wal replay on the table

Output Parameter Description

The GPUdb server embeds the endpoint response inside a standard response structure which contains status information and the actual response to the query. Here is a description of the various fields of the wrapper:

NameTypeDescription
statusString'OK' or 'ERROR'
messageStringEmpty if success or an error message
data_typeString'admin_repair_table_response' or 'none' in case of an error
dataStringEmpty string
data_strJSON or String

This embedded JSON represents the result of the /admin/repair/table endpoint:

NameTypeDescription
table_namesarray of stringsList of repaired tables.
repair_statusarray of stringsList of repair status by table.
infomap of string to stringsAdditional information.

Empty string in case of an error.