Skip to content
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-3761 Adds configurable bucketname to MimeMessageStore #985

Merged
merged 3 commits into from May 6, 2022

Conversation

mbaechler
Copy link
Member

Co-Authored-By: Matthieu Baechler matthieu@apache.org

Co-Authored-By: Matthieu Baechler <matthieu@apache.org>
Copy link
Contributor

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections. As it stands it seems to benefit custom code only?

@Arsnael
Copy link
Contributor

Arsnael commented May 5, 2022

22:14:18,258 [INFO] There are 2 errors reported by Checkstyle 8.29 with checkstyle.xml ruleset.

22:14:18,263 [ERROR] src/main/java/org/apache/james/blob/api/Store.java:[89] (whitespace) EmptyLineSeparator: 'METHOD_DEF' should be separated from previous statement.

22:14:18,264 [ERROR] src/main/java/org/apache/james/blob/api/Store.java:[96] (whitespace) EmptyLineSeparator: 'METHOD_DEF' should be separated from previous statement.

@jeantil
Copy link
Contributor

jeantil commented May 5, 2022

No objections. As it stands it seems to benefit custom code only?

It is used in the BlobStore backed MailRepository of #987 but we felt that the change made sense on its own as there can be multiple MimeMessageStores in a single assembly even before the BlobStore backed Mailrepository.
For example pulsar-cassandra-smtp-relay uses both CassandraMailRepository and the pulsar mailqueue both of which use a MimeMessageStore. As it stands neither adds custom qualifiers while wiring the message store. Unless I am mistaken this means that they will both store their respective blobs in the same bucket. While there are not direct consequences this is doesn't seem to be a very desirable situation.

@chibenwa
Copy link
Contributor

chibenwa commented May 5, 2022

07:25:20,278 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (check-style) on project james-server-mail-store: You have 1 Checkstyle violation. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (check-style) on project james-server-mail-store: You have 1 Checkstyle violation.

Still....

@jeantil
Copy link
Contributor

jeantil commented May 5, 2022

I can't thank checkstyle enough for this unhelpful message that nicely omits the place where the violation occurs, my workday is starting I will continuer searching what's wrong later

@mbaechler
Copy link
Member Author

test this please

@chibenwa
Copy link
Contributor

chibenwa commented May 5, 2022

test this please

This does not work as far as I know. Logging in on the CI might be required.

@chibenwa chibenwa merged commit 20a14f1 into apache:master May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants