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

DBZ-6271 allow binlog to be absent when doing a snapshot only #4418

Merged
merged 3 commits into from Apr 4, 2023

Conversation

alwaysbemark
Copy link
Contributor

https://issues.redhat.com/browse/DBZ-6271
If we're in the initial_only mode of the snapshotter and don't require streaming CDC, we don't need the bin log position to be retrieved and can safely skip it and start the snapshot from scratch.

@jpechane jpechane added the needs more thinking Pull requests that require some more consideration label Apr 3, 2023
@jpechane
Copy link
Contributor

jpechane commented Apr 3, 2023

Let's discuss at https://issues.redhat.com/browse/DBZ-6271

@alwaysbemark
Copy link
Contributor Author

Let's discuss at https://issues.redhat.com/browse/DBZ-6271

Thanks for having a look Jiri! I reverted to the original state of the PR which allows for quiet failure of fetching the bin log position.

@jpechane
Copy link
Contributor

jpechane commented Apr 3, 2023

Let's not use theat quiet :-). Please use {{WARN}} level together with stactrace.

@alwaysbemark
Copy link
Contributor Author

alwaysbemark commented Apr 4, 2023

Let's not use theat quiet :-). Please use {{WARN}} level together with stactrace.

Made the required change - changed to using WARN. Not sure about the intention of showing the stack trace as we don't need to throw an exception here, but I can re-work it to include a fake try-catch loop if needed. Thanks for reviewing promptly!

@jpechane jpechane merged commit d4d116e into debezium:main Apr 4, 2023
20 of 21 checks passed
@jpechane
Copy link
Contributor

jpechane commented Apr 4, 2023

@alwaysbemark Applied, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more thinking Pull requests that require some more consideration
Projects
None yet
3 participants