-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix] [broker] fix startNewSnapshot when lastDataMessagePublishedTimestamp not change. #22461
Conversation
Could you help to review this pr? @lhotari @codelipenghui @BewareMyPower @dao-jun @merlimat |
@thetumbled I've been trying to get a review for PR #16651 for quite some time without response. It's slightly related. Can you please check it? |
I'll explain. In the current code in master branch, Lines 209 to 210 in a51bbdd
The condition The problem of duplicate snapshots is solved by #16651. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this change makes a difference. I explained it in comments. I have created another PR a long time ago to eliminate unnecessary snapshots, that is #16651
I get it. thanks for explanation! |
I am not that familiar with |
Motivation
#16618 introduce a feature that we could skip creating a subscription replication snapshot if no messages have been published.
So it is reasonable that if
lastDataMessagePublishedTimestamp
not change, we should skip taking snapshot.But it don't check for equality, and i don't get the explanation:
#16618 (comment)
Modifications
Add the check for equality.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: thetumbled#47