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

[FIX] IMAP STATUS should better handle MailboxNotFoundException #2158

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

chibenwa
Copy link
Contributor

@chibenwa chibenwa commented Mar 26, 2024

Some MUA requests mailboxes that no longer exist nor are subscribed.

  • Explicit IMAP message
  • Stacktrace is not necessary in the error message
  • INFO log

Some MUA requests mailboxes that no longer exist nor are subscribed.

 - Explicit IMAP message
 - Stacktrace is not necessary in the error message
 - INFO log

Overall computing unused message sizes takes up to 2% of the CPU of the JMAP pods
@chibenwa
Copy link
Contributor Author

(doubled checked against cyrus for the actual behaviour)

@@ -104,8 +104,8 @@ protected Mono<Void> processRequestReactive(StatusRequest request, ImapSession s
.then(unsolicitedResponses(session, responder, false))
.then(Mono.fromRunnable(() -> okComplete(request, responder)))
.onErrorResume(MailboxException.class, e -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be explicitly MailboxNotFoundException?

I see lots of sub classes of MailboxException. For the rest, I think we still can fallback to STATUS_FAILED.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very right.

Sorry I have been too fast.

@Arsnael Arsnael merged commit 1bc01eb into apache:master Mar 28, 2024
1 check passed
samiulsami pushed a commit to ops-center/james-project that referenced this pull request Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants