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

Benoit Tellier commented on JAMES-3721:
---------------------------------------

Hello Jean,

+1 agree with the fix.

> Browse on the Pulsar mailqueue fails with ObjectNotFoundException
> -----------------------------------------------------------------
>
>                 Key: JAMES-3721
>                 URL: https://issues.apache.org/jira/browse/JAMES-3721
>             Project: James Server
>          Issue Type: Bug
>          Components: pulsar, Queue
>            Reporter: Jean Helou
>            Priority: Major
>              Labels: Pulsar
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We have identified a couple interrelated issues around the [puslar 
> mailqueue|https://issues.apache.org/jira/browse/JAMES-3695] :
> Upon acknowledging a message, the corresponding mime message was not removed 
> from the blob store.
> Upon fixing that issue (and adding the corresponding verification), we 
> started getting more failures on the browse (the failures could also be 
> observed on the remove).
>  
> Because of how pulsar works and because we allow parallel processing of 
> messages, the browse operation can end up reading meta data of messages that 
> have been removed or acknowledged. The metadata of acknowledged messages is 
> not immediately  purged from pulsar. It is somewhat configurable but for a 
> normally operating cluster acked messages can [remain readable for 
> hours|https://pulsar.apache.org/docs/en/cookbooks-retention-expiry/#delete-messages-from-namespaces]
>  (and forcing that to the order of seconds would badly affect the cluster 
> operation)
>  
> We chose to catch the specific exception and simply ignore the corresponding 
> mails during the browse operation.



--
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