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

Tellier Benoit commented on JAMES-2885:
---------------------------------------

`This fix should not have a big impact on performance because the concurrent 
update of the modSeq happens where there is multiple mailbox passed in 
parameter. In the normal of usage of this method only one mailbox is provided.`

Not sure about it concerning IMAP range flag update.



> Avoid concurrent nexModSeq during flags update
> ----------------------------------------------
>
>                 Key: JAMES-2885
>                 URL: https://issues.apache.org/jira/browse/JAMES-2885
>             Project: James Server
>          Issue Type: Improvement
>    Affects Versions: 3.4.0
>            Reporter: Rémi Kowalski
>            Priority: Major
>             Fix For: 3.5.0
>
>
> When updating flags, the nextmodSeq is called concurrently. This PR aims to 
> fix this.
>  
> The concurrent update of nextModSeq is a problem, because on the cassandra 
> backend this method will retry until the update succeed using a lightweight 
> transaction
> where the condition is that the current mod seq in database match the current 
> mod seq provide. Which will not happen this method is called concurrenty. It 
> will then retry  until the max number of retry is exhausted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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