[ 
https://issues.apache.org/jira/browse/JAMES-3687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470544#comment-17470544
 ] 

Benoit Tellier commented on JAMES-3687:
---------------------------------------

Potential bugs of the current proposal that might need to be addressed:

https://github.com/apache/james-project/pull/808#discussion_r780162174


{code:java}
Clear need to also apply to delayed messages.
We need to make this constraint explicit in the underlying contract tests.
We likely need to clear too the scheduled topic
{code}

Likely super easy to fix.

https://github.com/apache/james-project/pull/808#discussion_r780170243


{code:java}
Clearing expired filters is an optimisation relying on messages being ordered.

Out of order messages, like delayed messages, might make this trivially false.

We could benefit from a test demonstrating the issue. (contract test)

We might have to drop this optimisation.
{code}

Easy to solve.

Impact: ever growing set of deletions...


> Implements Apache Pulsar based Mailqueue
> ----------------------------------------
>
>                 Key: JAMES-3687
>                 URL: https://issues.apache.org/jira/browse/JAMES-3687
>             Project: James Server
>          Issue Type: Improvement
>          Components: Queue
>            Reporter: Jean Helou
>            Priority: Major
>
> An apache pulsar based mailqueue offers a different set of compromises over 
> the existing mailqueue implementations:
> pros:
>  * pulsar is a distributed queue
>  * pulsar offers scheduling facilities making it easier to implement delayed 
> queues
> cons:
>  * being fully distributed some consistency guarantees cannot be honored for 
> flush and filter since the flushing and filtering commands take time to 
> propagate in the cluster



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to