-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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-7871 Change logging level for Found previous partition offset
#5565
Conversation
I definitely don't want to remove it globally. The same method is used for initial idnetification of existing offsets by all connectors and it is IMHO important that the message is logged at |
@jpechane , What do you think to remove the log Majority of connectors (Oracle, MariaDB, MySQL, POstgreSQL) already log again this info Lines 164 to 169 in c09c2c6
Maybe this is a good chance to align the behavior and remove these duplicate logs. |
While they do @mfvitale, I can see certain situations where knowing what the offset is per partition could be useful in the case of SQL Server where it stores offsets across partitions, so I wouldn't recommend removing it. What makes it more complicated as removing the logging would break behavior for MongoDB which has a very different way of logging this phase for users. I think the path of least resistance here would be as Jiri mentioned, pass a flag from PG where we do this special call in the commit method to bypass logging like we do for replica identity and schema refreshes. As a follow-up nit-pick, all those if/else you mentioned, I'd actually recommend a new method be added to the base source task that those connectors could call that logs this consistently to reduce the logic in all the tasks start-up methods that currently use the if/else block. |
If when you say "knowing" you mean logging that info, why to not log it on the task looking at the Maybe putting these logging into a separate method as per your suggestion
Yeah this is the fast and easy, I am just trying to figure out if there can be better options that simplifies the code. |
@mfvitale Comment added |
https://issues.redhat.com/browse/DBZ-7871