You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2022/06/16 22:02:35 UTC

[GitHub] [james-project] jeantil opened a new pull request, #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

jeantil opened a new pull request, #1053:
URL: https://github.com/apache/james-project/pull/1053

   I think this should replace #1046 
   
   The implementation in #1046 doesn't account for the mime message store bucketname which needs to be instanciated based on the url too so that both computations are synced. 
   Also the way the bucketname is built in #1046 would result in bucket names such as
   `mailMetadata-var/mail/error`. In this MR we propose to translate to `var/mail/error/mailMetadata` instead since that maps better with the way most s3 blobstore handle hierarchical namespacing. 
   
   This PR fixes the existing implementation to pass the contract tests while keeping the MailRepository unaware of its MailRepositoryUrl. The injection part will be handled separately in a future PR


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] chibenwa commented on a diff in pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
chibenwa commented on code in PR #1053:
URL: https://github.com/apache/james-project/pull/1053#discussion_r899697611


##########
server/mailrepository/mailrepository-blob/src/main/scala/org/apache/james/mailrepository/blob/BlobMailRepository.scala:
##########
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the            *
  * "License"); you may not use this file except in compliance   *
  * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0                 *
+ * *

Review Comment:
   Oups



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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1167170848

   Funny  : new build, new seemingly unrelated cassadra errors : 
   ```
   com.datastax.oss.driver.api.core.servererrors.InvalidQueryException: unconfigured table annotation
   	at org.apache.james.mailbox.cassandra.CassandraSubscriptionManagerTest.setUp(CassandraSubscriptionManagerTest.java:95)
   ```
   maybe related to https://github.com/apache/james-project/pull/1066 ? 
   1 green build out of 11 ... :cry:  


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] chibenwa commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
chibenwa commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1167220237

   > 1 green build out of 11 ... :cry:  
   
   Yes, sorry.
   
   I'm dedicated to improve that...
   
   Also the Cassandra driver update (3.11 -> 4) did lower the request timeout from 2s to 5s which on the ASF infra is apparently noticeable.
   
   BTW I think the risk associated with that merge request is low so please go ahead ;-)


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1158480776

   : thinking: I did run man validate before pushing
   I'll fix that around lunch
   
   Le ven. 17 juin 2022 à 04:17, Benoit TELLIER ***@***.***> a
   écrit :
   
   > ***@***.**** commented on this pull request.
   > ------------------------------
   >
   > In
   > server/mailrepository/mailrepository-blob/src/main/scala/org/apache/james/mailrepository/blob/BlobMailRepository.scala
   > <https://github.com/apache/james-project/pull/1053#discussion_r899697611>:
   >
   > > - *                                                              *
   > - *   http://www.apache.org/licenses/LICENSE-2.0                 *
   > - *                                                              *
   > + * *
   > + * http://www.apache.org/licenses/LICENSE-2.0                 *
   > + * *
   >
   > Oups
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/james-project/pull/1053#pullrequestreview-1009914869>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAAFTQ5SJBOQH2L7G2DM2V3VPPN2HANCNFSM5ZAF7YFA>
   > .
   > You are receiving this because you authored the thread.Message ID:
   > ***@***.***>
   >
   


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] chibenwa commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
chibenwa commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1166196344

   It was green before the rebase right?
   
   Then yes ;-)


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] chibenwa commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
chibenwa commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1167220786

   > maybe related to https://github.com/apache/james-project/pull/1066 ?
   
   And yes 100% releated. 


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil commented on a diff in pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil commented on code in PR #1053:
URL: https://github.com/apache/james-project/pull/1053#discussion_r904258608


##########
server/mailrepository/mailrepository-blob/src/main/scala/org/apache/james/mailrepository/blob/BlobMailRepository.scala:
##########
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the            *
  * "License"); you may not use this file except in compliance   *
  * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0                 *
+ * *

Review Comment:
   I fixed this (I force pushed the amended commit instead of pushing a fixup)



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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1167388527

   >I'm dedicated to improve that...
   
   I had not noticed it was this bad till recently, i'll think about it
   
   >BTW I think the risk associated with that merge request is low so please go ahead ;-)
   thanks, I'll rebase and merge then


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil merged pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil merged PR #1053:
URL: https://github.com/apache/james-project/pull/1053


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [james-project] jeantil commented on pull request #1053: JAMES-3763 BlobMailRepository: No isolation across mail repositories

Posted by GitBox <gi...@apache.org>.
jeantil commented on PR #1053:
URL: https://github.com/apache/james-project/pull/1053#issuecomment-1165739377

   looks like flaky CI errors to me
   ```
   java.lang.NoClassDefFoundError: Could not initialize class org.apache.james.backends.cassandra.DockerCassandraSingleton
   ```
   and
   ```
   13:30:05.322 [ERROR] 🐳 [cassandra_3_11_10-6e21a18f-ed04-4f4c-8f15-b481d345a27d] - failed to get digest sha256:86cee40889afc892265116ce0c832f6dadeb767e0c2074817642777e48bd10bf: open /var/lib/docker/image/overlay2/imagedb/content/sha256/86cee40889afc892265116ce0c832f6dadeb767e0c2074817642777e48bd10bf: no such file or directory
   ```
   do you think it is safe to merge ( are these known offenders ?)


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

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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