This is an automated email from the ASF dual-hosted git repository.

matthieu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit c6980f93d53461df907a4168a8d313002a98cc25
Author: Matthieu Baechler <matth...@apache.org>
AuthorDate: Thu Feb 6 17:46:13 2020 +0100

    MAILBOX-396 align modseq backoff with uid provider, 2 ms is probably too 
fast
---
 .../apache/james/mailbox/cassandra/mail/CassandraModSeqProvider.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/CassandraModSeqProvider.java
 
b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/CassandraModSeqProvider.java
index 2199f74..9088471 100644
--- 
a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/CassandraModSeqProvider.java
+++ 
b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/CassandraModSeqProvider.java
@@ -186,9 +186,10 @@ public class CassandraModSeqProvider implements 
ModSeqProvider {
 
     private Mono<ModSeq> handleRetries(CassandraId mailboxId) {
         Duration forever = Duration.ofMillis(Long.MAX_VALUE);
+        Duration firstBackoff = Duration.ofMillis(10);
         return tryFindThenUpdateOnce(mailboxId)
             .single()
-            .retryBackoff(maxModSeqRetries, Duration.ofMillis(2), forever, 
Schedulers.elastic());
+            .retryBackoff(maxModSeqRetries, firstBackoff, forever, 
Schedulers.elastic());
     }
 
     private Mono<ModSeq> tryFindThenUpdateOnce(CassandraId mailboxId) {


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