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

JAMES-3784 Ease mail repository / event dead letter operation #1062

Merged
merged 5 commits into from Jul 28, 2022

Conversation

vttranlina
Copy link
Contributor

Copy link
Contributor

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

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

What prevents today to have CRON on reprocessing/redelivery is that it is unbounded.

If I have 1 billion entries in there it gonna take a lot of resources to process that.

A rate limit do not really address the concern: that still remains unbounded and we now have a task that takes forever that prevents execution of other task, and the CRON would just add more task in there.

IMO a good old limit is more appropriate/

}

private Mono<Task.Result> reprocessAll(Reprocessor reprocessor, MailRepositoryPath path, Configuration configuration, Consumer<MailKey> keyListener) {
return Flux.fromStream(Throwing.supplier(() -> mailRepositoryStoreService.getRepositories(path)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Any chances this does blocking reads?

@chibenwa
Copy link
Contributor

11:08:53,643 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (check-style) on project james-server-webadmin-mailrepository: You have 2 Checkstyle violations. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (check-style) on project james-server-webadmin-mailrepository: You have 2 Checkstyle violations.

@vttranlina vttranlina changed the title [WIP] JAMES-3784 Ease mail repository / event dead letter operation JAMES-3784 Ease mail repository / event dead letter operation Jun 27, 2022
@vttranlina vttranlina marked this pull request as ready for review June 27, 2022 06:51
@vttranlina vttranlina force-pushed the JAMES_3784 branch 2 times, most recently from 65a46ff to 32683f5 Compare June 29, 2022 03:48
@vttranlina
Copy link
Contributor Author

Squash fixup & Complete TODO

@Arsnael
Copy link
Contributor

Arsnael commented Jul 27, 2022

You can rebase it again (sorry) as I just merged #1049

@Arsnael Arsnael merged commit f3b2e91 into apache:master Jul 28, 2022
@vttranlina vttranlina deleted the JAMES_3784 branch December 12, 2023 07:24
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