What I noticed
I had a Connect CDC Change Selector that could not start. The journal receiver it was trying to read from had been removed by the system. There were two options in front of me: find the right journal sequence number and restart from there, or skip to the current position and accept a re-copy. Both are valid choices. But the trade-offs between them are not obvious until you have been through one of them incorrectly.
There are many reasons you may want to cold start the Change Selector, including: Connect CDC queues were deleted and you would like to reprocess the deleted data; the journal receivers that the Change Selector is attempting to start from were removed by the system if the journal receiver cannot be restored, a cold start to the most current journal receivers will allow the Change Selector to skip past the removed receivers; or you would like to skip past some bad data or unwanted transactions in the journal.
NOTE: Starting the Change Selector to a subsequent (newer) receiver, thereby skipping over uncaptured data, may cause data loss and should only be done if a start from copy is an acceptable solution.
That note is the trade-off in one sentence. It tells you everything you need to know before you choose.
The cold start process applies to both choices, but the prerequisite steps and the risks are different depending on which direction you go. The common requirements regardless of which start point you choose: stop the Change Selector from the monitoring interface such as MonCon and ensure that the Change Selector status is shown as STOPPED; stop the request(s); if you are on version 5.8.06 or later, wait for the <metabase>.rp_rback table to drain before proceeding; and delete the queues per request or the entire queue if needed the cold start will fail if the queues contain any data belonging to this Change Selector.
Journal Sequence Number approach when you need to restart from a specific known point:
To start at a specific point in time, provide the Cold Start Parameters: provide the receiver library and the receiver name in the format <receiver_lib>/<receiver_name>, then provide the sequence number obtained from your IBM i admin. Alternatively, you can choose the MonCon options "Last in receiver" or "First in receiver" to either start from the end of the receiver or from the beginning, respectively.First, verify that the receiver is online, there is no break in the receiver chain and there are no partial receivers. This is the step that catches people. You identify the sequence number, you find the receiver and then you discover the receiver chain has a gap, or the receiver was already deleted. At that point, the sequence-based start becomes unavailable and the timestamp-based skip is your only option.
There is one additional requirement that applies specifically when you are cold starting to a previous time and want to reprocess data that has already been applied: delete from the TRANS_HWM target metabase table all rows for the request ID that you want to reprocess. In this case, you should also ensure that collision resolution ("forgiveness mode") is enabled in the model for the request, to avoid errors for any rows being re-applied.
Timestamp / Current position approach when you want to skip forward and re-copy:
If you want to start from the current time and skip over any data not yet captured for example, if you are re-copying the data anyway you can use the default selections: "Currently attached" and "Last in receiver." This is faster to execute. There is no receiver verification step. There is no sequence number lookup. But it commits you to a re-copy of every table handled by that Change Selector, because the gap between the old position and the new start point is gone.
There is also a practical limit on the journal sequence number itself. After starting Connect CDC Change Selector on an IBM i source system, the error "Journal sequence number at the maximum value" can occur. To reset the IBM i journal sequence number when IBM i is the source: if the journal is for the metabase library, shut down the Kernel, shut down the Change Selector, reset the sequence number, and execute a Refresh Status to restart the Kernel and Change Selector. If the journal is for the user library, Connect CDC does not require any shutdown it can continue replicating without interruption while the sequence number is reset.
Why this design works
Predictability: The journal sequence number is exact. If the receiver exists and is intact, starting from a specific sequence puts the Change Selector at precisely the right entry. Nothing before that point is replayed. Nothing after it is skipped.
Reliability: The timestamp / current position approach trades precision for simplicity. It works reliably when a full re-copy is acceptable. Trying to use it when re-copy is not acceptable is where problems happen.
Operational Safety: The queue deletion requirement before either type of cold start is not optional. The cold start fails if queues still contain data from the Change Selector. Clearing queues first is the gate that prevents a half-started cold start from leaving the system in an ambiguous state.
What's different for receiver chain gaps / version 5.8.06 and later
There is one extra step.
Receiver chain integrity must be verified before using Journal Sequence. A gap in the receiver chain or a partial receiver makes the sequence-based start unreliable. If the chain is broken, skip to current position and re-copy.
Version 5.8.06 and later requires the rp_rback table to drain before queue deletion. On earlier versions, this step is skipped. On 5.8.06 and later, this is a required gate. Proceeding before the table drains can leave the system in an inconsistent state.
The TRANS_HWM table only matters when re-processing already-applied data. If you are cold starting forward to skip data not backward to re-process it the TRANS_HWM deletion step does not apply. Only apply it when moving backward in time.
Why this matters in production
The choice between Journal Sequence and Timestamp is a choice between precision and speed. Precision requires the receiver chain to be intact. If it is not, precision becomes unavailable and speed with a re-copy is the only path. Making that decision before you start the cold start process rather than discovering it mid-way saves significant time.
The most common error pattern is this: someone chooses Journal Sequence, finds the right receiver and sequence number, starts the cold start and it fails because the queues were not cleared, or the receiver chain has a gap they had not checked. Knowing both prerequisites saves that failure.
If you ever see a cold start fail immediately after initiating it, check the queues first. If you see a cold start hang or misbehave after succeeding, check the receiver chain integrity and the TRANS_HWM state. Neither failure is random. Each points to a specific skipped prerequisite.
What changed for me
I used to default to Journal Sequence because it felt more precise and controlled. I now check the receiver chain before committing to that choice not after. If the chain has a gap or a receiver is missing, I accept the re-copy path immediately instead of spending time troubleshooting a cold start that was never going to succeed. The rp_rback drain requirement also changed my process. I added it to my checklist after seeing a 5.8.06 deployment fail at queue deletion because that step was skipped.
Takeaway:
Journal Sequence gives you a precise start point but requires a verified, intact receiver chain, cleared queues, and optionally cleared TRANS_HWM with collision resolution enabled for re-processing scenarios. Timestamp / current position gives you a simpler, faster start but commits you to data loss for the skipped gap and requires a re-copy of the affected tables. Both paths share the same mandatory prerequisites: Stop the Change Selector, stop requests, let rp_rback drain on 5.8.06+, and clear the queues. Choose the start type only after confirming which prerequisites are actually satisfiable in your environment.
Have you had a cold start fail mid-process because a prerequisite was missed, and which step queue deletion, receiver chain verification, or TRANS_HWM was the one that caught you off guard?
------------------------------
Adhitya Maya
*Precisely Software Inc.
------------------------------