-
Couldn't load subscription status.
- Fork 32
Description
Development Task
Currently, --command-start-time is used to filter commands by the command start time (not end time). However, some DDL may be filtered because the start time is earlier, then the subsequent queries fail.
For example, a CREATE TABLE starts at 9:59:59 and ends at 10:00:01, while the BR restore snapshot is at 10:00:00. The restored data does not contain the table. If I pass --command-start-time="xxx 10:00:00" to the replayer, it doesn't replay the CREATE TABLE either.
However, we can't just judge by the command end time. The start time may be used when the replayer pauses and resumes. When the replayer pauses, it outputs the start time of the last command. When the replayer resumes, it should also filter the commands by the command start time, not end time.