You might need to restart a PowerExchange CDC Publisher process under normal conditions or after a CDC Publisher process, PowerExchange component, or Apache Kafka target terminates unexpectedly.
The following list describes the default restart behavior under these circumstances:
If you restart the CDC Publisher process under normal conditions or after a PowerExchange Logger or Listener failure, the CDC Publisher process restarts from the last change operation sent, as recorded in the checkpoint file, by default.
If you restart the CDC Publisher process after it ends abnormally, it restarts from the last change operation sent, as recorded in the checkpoint file, by default. If a change operation was sent but has not been acknowledged as received by Kafka, the change record is resent.
If you restart the CDC Publisher process after the Kafka target messaging system ends abnormally, CDC Publisher apply processing restarts based on the last change operation recorded in the checkpoint file by default. If you disabled guaranteed delivery by specifying Connector.kafkaProducerGuaranteeDelivery=No in the cdcPublisherKafka.cfg configuration file, some changes might be resent to the target. If guaranteed delivery is enabled, no changes are duplicated or missed.
You can override the default CDC Publisher restart behavior by entering the PwxCDCPublisher command with the RESTART parameter at the command line. You can configure the RESTART parameter to restart the CDC Publisher process from the earliest available change record in the PowerExchange Logger log files (FROM_BEGINNING) or from a specific position in the change stream (FROM_CONFIG), which you specify in the Extract.restart1 and Extract.restart2 properties in the cdcPublisherPowerExchange.cfg file. For more information, see
Restarting a PowerExchange CDC Publisher Change Data Stream.
To cold start the CDC Publisher process FROM_BEGINNING, you must delete the checkpoint file. Otherwise, all change operations prior to or equivalent to the checkpointed change operation are