[
https://issues.apache.org/jira/browse/JAMES-3477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17256816#comment-17256816
]
ASF GitHub Bot commented on JAMES-3477:
---------------------------------------
chibenwa commented on pull request #282:
URL: https://github.com/apache/james-project/pull/282#issuecomment-752832977
```
[ERROR] storingMessageWithSameKeyTwiceShouldUpdateMessageContent Time
elapsed: 0.04 s <<< FAILURE!
org.opentest4j.MultipleFailuresError:
Multiple Failures (2 failures)
org.opentest4j.AssertionFailedError:
Expecting:
<"original body">
to be equal to:
<"modified content">
but was not.
at
MailRepositoryContract.lambda$checkMailEquality$0(MailRepositoryContract.java:91)
org.opentest4j.AssertionFailedError:
Expecting:
<223L>
to be equal to:
<228L>
but was not.
at
MailRepositoryContract.lambda$checkMailEquality$0(MailRepositoryContract.java:92)
[c4b6d407a19abec82e7c5178363d8abb452fbc72]
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]
JDBCMailRepositoryTest.storingMessageWithSameKeyTwiceShouldUpdateMessageContent
Multiple Failures (2 failures)
org.opentest4j.AssertionFailedError:
Expecting:
<"original body">
to be equal to:
<"modified content">
but was not.
at
MailRepositoryContract.lambda$checkMailEquality$0(MailRepositoryContract.java:91)
org.opentest4j.AssertionFailedError:
Expecting:
<223L>
to be equal to:
<228L>
but was not.
at
MailRepositoryContract.lambda$checkMailEquality$0(MailRepositoryContract.java:92)
[INFO]
[ERROR] Tests run: 39, Failures: 1, Errors: 0, Skipped: 0
```
That sounds like a real error.
Only JDBC Mail Repository is affected.
Now the question is "why"... Let's dig in crappy code...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> MimeMessageCopyOnWriteProxy is not thread safe
> ----------------------------------------------
>
> Key: JAMES-3477
> URL: https://issues.apache.org/jira/browse/JAMES-3477
> Project: James Server
> Issue Type: Wish
> Reporter: Benoit Tellier
> Priority: Major
>
> https://www.mail-archive.com/[email protected]/msg69221.html
> &
> https://github.com/jeantil/james-project/commit/c0354ea21c5b0a8f6d46e9919f7db0d97db9eb23
> proves there is a concurrency issue in MimeMessageCopyOnWriteProxy class that
> we need to investigate.
> It causes our test suite to be flacky.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]