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

delete mailbox / unreferenced objects #255

Open
jrse opened this issue Jun 4, 2019 · 1 comment
Open

delete mailbox / unreferenced objects #255

jrse opened this issue Jun 4, 2019 · 1 comment

Comments

@jrse
Copy link
Contributor

jrse commented Jun 4, 2019

During imaptests, in our "test production" cluster we observed several mail objects which where no longer referenced in the mailbox index file. A reason for this may be, that we delete the mail reference from the users mailbox index before we made sure that the object in the mailstore is deleted.
We do this to minimize the time objects, which are marked as delete, to remain in the index file.

In concurency situation where we have several imap processes per user which are reading/deleting the same mail, this may result in reading a already deleted file. SDBOX and rbox handle this situation by marking the deleted file as deleted.

To prove that the unreferenced objects are mails, which where not deleted due to testcluster/or imaptest failures, we need to gather more information. To check for unreferenced objects, there exist the doveadm rmb check indices command, which allows to find unreferenced objects.

If this proves true, one solution is to wait until mails which where marked as expunged are really deleted, before removing them from the index.

@jrse
Copy link
Contributor Author

jrse commented Jun 4, 2019

storage module imapc could also give some hints, how to handle this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant