-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JAMES-2586 - JMAP Upload - cleanup, optimize, fix unstable test upload usage #2068
JAMES-2586 - JMAP Upload - cleanup, optimize, fix unstable test upload usage #2068
Conversation
@@ -108,6 +108,7 @@ trait UploadServiceContract { | |||
.block()) | |||
|
|||
// Exceed 100 bytes limit | |||
Thread.sleep(500) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: any chance we can use await?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a difference.
Here I want the cleanupUploadIfNeeded
completed (it was called 10 times) before triggering "exceed".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we contribute the non postgres enhancement on jmap upload to master branch as well?
...data/data-jmap/src/test/java/org/apache/james/jmap/api/upload/UploadRepositoryContract.scala
Outdated
Show resolved
Hide resolved
I've split it into the master branch here: #2069 As it relates to PostgreSQL changes, I'll rebase this pull request later, after the master branch has been merged. |
...data/data-jmap-cassandra/src/main/java/org/apache/james/jmap/cassandra/upload/UploadDAO.java
Outdated
Show resolved
Hide resolved
...r/data/data-jmap/src/test/scala/org/apache/james/jmap/api/upload/UploadServiceContract.scala
Show resolved
Hide resolved
|
Why need to rebase after rebasing postgres branch with master btw? |
Can we merge this @vttranlina ? |
This PR is using some code from master |
…return Boolean value when applied
- Method delete of Upload Repository should return Boolean value when applied - optimize resetSpace method - single call replace to twice call (get & update) - The auto cleanup upload when exceed do not ensure the concurrent -> we need sleep time after concurrent upload.
c8a509f
to
8cf5171
Compare
No description provided.