Skip to main content
Common Reference

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:

OptionDescription
--autoAutomatically skip if seqno is in an error state - ONLY USE THIS WHEN ASKED TO BY CONTINUENT SUPPORT.
--debug
Aliases: -d
Debug mode if very chatty. Avoid it unless you really need to. Implies --verbose and --info
--help
Aliases: -h
Show help text.
--info
Aliases: -i
Displays additional information, but not fully verbose.
--max
Aliases: -m
Specify the maimum number of iterations.
Default: 100
--path
Aliases: -p
Supply full path to trepctl and thl executables if NOT installed in default directory.
--quiet
Aliases: -q
--service
Aliases: -s
Supply service name to use - Required if more than one replication service running.
--trepctlSupply name of trepctl executable if different from default, for example if executable-prefix has been set.
--verbose
Aliases: -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 pendingErrorSeqno is 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_all command is called with --auto then 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