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

Emails are archived or deleted even if Elasticsearch server is killed during import #367

Open
AnaelMobilia opened this issue Oct 17, 2022 · 2 comments

Comments

@AnaelMobilia
Copy link
Contributor

Hi,

The situation :

  • Massive import of DMARC reports (~50k) on one time, mail after mail
  • Elasticsearch was killed (OOM) during the import

Elasticsearch consider each mail as done despite the fact that it can't store results in Elasticsearch.

This is due to :

I see two options in order to prevent this issue :

  • Biggest one (and cleanest) : don't move (or delete) mails in get_dmarc_reports_from_mailbox, but after having results reports saved in elasticsearch (implies to have an UUID pointer to the email)
  • Easiest one (and dirtiest) : check for Elasticsearch (or other) server connectivity before moving (or deleting) emails

@seanthegeek have you a preference ?

Bests regards,
Anael

@AnaelMobilia
Copy link
Contributor Author

Similar to #242

@rodpayne
Copy link
Contributor

rodpayne commented Apr 6, 2024

I had a similar problem because my elasticsearch available disk space went below the threshold, so it began rejecting the updates, after the mail messages were moved. That may not be detected by a connectivity check.

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

No branches or pull requests

2 participants