Skip to content

fix(mysql-cdc): support MySQL 8.4+ binlog status via SHOW BINARY LOG …#4290

Closed
reganzm wants to merge 1 commit intoapache:release-2.4from
reganzm:fix-mysql-84-binlog-status
Closed

fix(mysql-cdc): support MySQL 8.4+ binlog status via SHOW BINARY LOG …#4290
reganzm wants to merge 1 commit intoapache:release-2.4from
reganzm:fix-mysql-84-binlog-status

Conversation

@reganzm
Copy link

@reganzm reganzm commented Feb 26, 2026

Problem

MySQL 8.4 deprecates SHOW MASTER STATUS. Connector fails at DebeziumUtils.currentBinlogOffset().

Solution

  • Use SELECT VERSION() to detect MySQL version.
  • For MySQL 8.4+, 8.5+, and 9.x use SHOW BINARY LOG STATUS.
  • Otherwise keep SHOW MASTER STATUS for 8.0 and below.

Testing

  • Built with mvn clean install -DskipTests.
  • Spotless check passed.

@ThorneANN
Copy link
Contributor

Thank you for your contribution and i left some comment
Supporting MySQL 8.4 version requires a lot of work, not just modifying the show binlog statement

@reganzm
Copy link
Author

reganzm commented Feb 27, 2026

Thank you for your contribution and i left some comment Supporting MySQL 8.4 version requires a lot of work, not just modifying the show binlog statement

but I have successfully resolved the issue of supporting mysql8.4 through this modification and deployed it to the official environment without any problems。Anyway, a good outcome

@ThorneANN
Copy link
Contributor

may be u can see the discusion with #3666

@ThorneANN
Copy link
Contributor

Thank you for your contribution and i left some comment Supporting MySQL 8.4 version requires a lot of work, not just modifying the show binlog statement

but I have successfully resolved the issue of supporting mysql8.4 through this modification and deployed it to the official environment without any problems。Anyway, a good outcome

if u don't have error with your env and i think u can packege with snapashot

@yuxiqian
Copy link
Member

yuxiqian commented Feb 27, 2026

Hi @reganzm, thanks for your contribution! But AFAIK CDC connectors 2.x is no longer maintained, and new features are not considered.

I'll close this as not planned, but opening another PR to master is welcomed :)

@yuxiqian yuxiqian closed this Feb 27, 2026
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.

3 participants