The tungsten_skip_all Command
The tungsten_skip_all command assists with skipping replicator errors that you deem safe to skip.
Usage
tungsten_skip_all [option]
Where:
| Option | Description |
|---|---|
--auto | Automatically skip if seqno is in an error state - ONLY USE THIS WHEN ASKED TO BY CONTINUENT SUPPORT. |
--debugAliases: -d | Debug mode if very chatty. Avoid it unless you really need to. Implies --verbose and --info |
--helpAliases: -h | Show help text. |
--infoAliases: -i | Displays additional information, but not fully verbose. |
--maxAliases: -m | Specify the maimum number of iterations. Default: 100 |
--pathAliases: -p | Supply full path to trepctl and thl executables if NOT installed in default directory. |
--quietAliases: -q | |
--serviceAliases: -s | Supply service name to use - Required if more than one replication service running. |
--trepctl | Supply name of trepctl executable if different from default, for example if executable-prefix has been set. |
--verboseAliases: -v | Displays additional information. Implies --info. |
warning
Blindly skipping replication errors without fully understanding the consequences could lead to data drift.
This action should only be performed providing a full understanding of the error has been analysed and deemed
to be safe to skip by yourself and/or your business.
The tungsten_skip_all command performs the following steps:
- Gather a list of replicator service names using
trepctl services | grep serviceName. - Starts an infinite loop.
- Loops through all services, or uses the service specified on the cli.
- Checks the service status via
trepctl status -json. - If the
pendingErrorSeqnois not -1, then processes the error state. - By default, if there is an error condition, a detailed message is displayed, and the user may skip the seqno interactively.
- If the
tungsten_skip_allcommand is called with--autothen the seqno with the error will be skipped automatically. - If the maximum number of loops has been reached (default: 100), the script will exit.
- Sleeps for 3 seconds by default, then iterate