-
Notifications
You must be signed in to change notification settings - Fork 261
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
Ignore already known UIDs when looking for new ones to satisfy mail_msg_mb_uid_idx #5440
Conversation
/backport to stable1.10 |
52403ec
to
917ffa0
Compare
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.
Code looks good. How could I test this?
Throw an arbitrary exception after Line 347 in 06edd02
|
FYI deplyed this on my personal instance that was stuck before and it revived my inbox from the dead 🙌 |
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.
LGTM
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
917ffa0
to
9617b2f
Compare
@ChristophWurst |
Fixes issues like #5108, #5019 and #4341
Basically if one sync attempt fails mid way after it had already inserted messages of one chunk (our level of atomicity for transacted and rolled back inserts) then the next sync will fail until the eternity. This patch discards duplicates when we determine new UIDs. Therefore the duplicates are avoided.