You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/06/07 02:40:15 UTC

[james-project] 01/05: JAMES-2291 Decrease concurrency in storingAndRemovingMessagesConcurrentlyShouldLeadToConsistentResult

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

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

commit 56ca7c3bdd1258a11c5f3ac7942e634c2ceee991
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Jun 6 13:39:56 2019 +0700

    JAMES-2291 Decrease concurrency in storingAndRemovingMessagesConcurrentlyShouldLeadToConsistentResult
    
    This test overloads some resources limited environments and leads to failure. (Write Timeouts)
    
    Concurrency is counter balanced by an increased operation count.
    
    Note that this test is played 100 times.
---
 .../java/org/apache/james/mailrepository/MailRepositoryContract.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/mailrepository/mailrepository-api/src/test/java/org/apache/james/mailrepository/MailRepositoryContract.java b/server/mailrepository/mailrepository-api/src/test/java/org/apache/james/mailrepository/MailRepositoryContract.java
index c445f49..b24dad6 100644
--- a/server/mailrepository/mailrepository-api/src/test/java/org/apache/james/mailrepository/MailRepositoryContract.java
+++ b/server/mailrepository/mailrepository-api/src/test/java/org/apache/james/mailrepository/MailRepositoryContract.java
@@ -469,8 +469,8 @@ public interface MailRepositoryContract {
 
         ConcurrentTestRunner.builder()
             .operation((a, b) -> distribution.sample().run())
-            .threadCount(10)
-            .operationCount(10)
+            .threadCount(5)
+            .operationCount(20)
             .runSuccessfullyWithin(Duration.ofMinutes(1));
 
         assertThat(testee.list()).containsOnlyElementsOf(expectedResult);


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