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-36180] Fix batch message data loss #95

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

wenbingshen
Copy link
Member

Purpose of the change

When restoring from the state, the unconsumed messages of the batch will be lost.

we should return the next batch index single message for current batch.

@wenbingshen wenbingshen changed the title [FLINK-36180][Connectors/Pulsar] Fix batch message data loss [FLINK-36180] Fix batch message data loss Aug 29, 2024
@wenbingshen
Copy link
Member Author

@syhily @tisonkun PTAL. Thanks.

@syhily
Copy link
Contributor

syhily commented Aug 30, 2024

Thanks for your pull request @wenbingshen. I left some questions here. Can you check them?

@wenbingshen
Copy link
Member Author

Thanks for your pull request @wenbingshen. I left some questions here. Can you check them?

@syhily I responded above, PTAL. Thanks.

@syhily
Copy link
Contributor

syhily commented Aug 31, 2024

After discussing with @wenbingshen I think this PR do fixed the batch message consuming issues when the connector is recovered from the checkpoint. LGTM.

@reswqa @tisonkun Can you double confirm this PR and merge it?

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Merging ...

@tisonkun tisonkun merged commit 34f217b into apache:main Oct 9, 2024
7 checks passed
Copy link

boring-cyborg bot commented Oct 9, 2024

Awesome work, congrats on your first merged pull request!

@wenbingshen wenbingshen deleted the wenbing/fix_data_loss branch October 9, 2024 10:23
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.

3 participants