Skip to content

Conversation

@grodowski
Copy link
Member

@grodowski grodowski commented Nov 6, 2025

Internal counterpart to github#1604

Migration got stuck unable to cutover, treating all incoming events as old events in GoMySqlReader.

48b34bc is the current version, though the PR is opened against newly synced master that introduced FileBinlogCoordinates.

… correctly order files like binlog.999999 < binlog.1000000.

Would cause the stream to ignore all incoming events and render the gh-ost process stuck:
https://github.com/github/gh-ost/blob/48b34bcbfde730b2548d598dee98e9c1f0d2fcce/go/binlog/gomysql_reader.go#L85-L88

Possibly remediated by 005043d too, which drops the SmallerThanOrEqual check from GoMySqlReader.handleRowsEvent
return this.LogFile == coord.LogFile && this.LogPos == coord.LogPos // No Type comparison
}

// FileSmallerThan returns true if this coordinate's file is strictly smaller than the other's.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this not used anymore? Looks like the same comment still exists in a different/wrong place.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, FileSmallerThan as well as FileNumberDistance were both unused. The latter I used here, too bad I didn't catch the comment before the PR got merge, I'll open another one! #quality

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's more unused stuff there, I'll change the PR base once the build is green. #20

@grodowski
Copy link
Member Author

In favour of #19

@grodowski grodowski closed this Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants