Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Read the files by a little earlier timestamp #959

@djshow832

Description

@djshow832

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions