cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
544 stars 149 forks source link

Replication copyback can break with split conversations #2591

Open brong opened 5 years ago

brong commented 5 years ago

Had a couple of different users with folders with 300k messages in them, and there was an issue that caused the master to have an invalid index header, so it got reconstructed and this triggered sync_client to do a FULLMAILBOX and copy back messages.

This hasn't been fully debugged to a reproducable case yet, but it looks like copyback and reinject isn't fully safe regarding annotations and modseqs and split conversations and all the extras we've added since this was first written.

elliefm commented 4 years ago

Re-tagging this back to master (3.1) because it doesn't look like something we can fix in time for 3.2. Will update tags again once master becomes 3.3.