Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-35300][cdc][mysql] Improve MySqlStreamingChangeEventSource to skip null events in event deserializer #3299

Closed
wants to merge 1 commit into from

Conversation

Shawn-Hx
Copy link
Contributor

@Shawn-Hx Shawn-Hx commented May 7, 2024

Improve MySqlStreamingChangeEventSource to skip null events in event deserializer.

@leonardBang
Copy link
Contributor

@lvyanquan Could you help review this PR?

@@ -257,6 +260,9 @@ public Event nextEvent(ByteArrayInputStream inputStream) throws IOException {
try {
// Delegate to the superclass ...
Event event = super.nextEvent(inputStream);
if (event == null) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no logic to go to this place because currently we don't need to read the binlog file on the local path using com.github.shyiko.mysql.binlog.BinaryLogFileReader.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1, I also did't see why we need to skip the null events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants