james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [2/4] james-project git commit: JAMES-1888 We need PathLocker for flags update to be safe at the mapper layer for memory implementation
Date Tue, 14 Feb 2017 00:28:46 GMT
JAMES-1888 We need PathLocker for flags update to be safe at the mapper layer for memory implementation


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/fa590f69
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/fa590f69
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/fa590f69

Branch: refs/heads/master
Commit: fa590f6978b21b25773187f924eda652783e908e
Parents: 3c8e421
Author: Benoit Tellier <btellier@linagora.com>
Authored: Mon Feb 13 18:51:21 2017 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Feb 13 18:51:21 2017 +0700

----------------------------------------------------------------------
 .../org/apache/james/mailbox/store/mail/model/MapperProvider.java | 3 ++-
 .../apache/james/mailbox/store/mail/model/MessageMapperTest.java  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/fa590f69/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
index b6b8f74..e8fb38d 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MapperProvider.java
@@ -38,7 +38,8 @@ public interface MapperProvider {
         ATTACHMENT,
         ANNOTATION,
         MOVE,
-        UNIQUE_MESSAGE_ID
+        UNIQUE_MESSAGE_ID,
+        THREAD_SAFE_FLAGS_UPDATE
     }
 
     List<Capabilities> getSupportedCapabilities();

http://git-wip-us.apache.org/repos/asf/james-project/blob/fa590f69/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMapperTest.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMapperTest.java
b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMapperTest.java
index f7a315d..61d1d5d 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMapperTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/MessageMapperTest.java
@@ -784,6 +784,7 @@ public class MessageMapperTest<T extends MapperProvider> {
 
     @ContractTest
     public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
+        Assume.assumeTrue(mapperProvider.getSupportedCapabilities().contains(MapperProvider.Capabilities.THREAD_SAFE_FLAGS_UPDATE));
         saveMessages();
 
         final int threadCount = 4;


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


Mime
View raw message