You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2026/07/24 14:42:39 UTC
(james-project) 02/02: Improve SolveMailboxInconsistenciesService
This is an automated email from the ASF dual-hosted git repository.
chibenwa pushed a commit to branch mbx-inconsistency-2
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 58f24e0cd16a3a46a2e0b51620d2954be7930cd7
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Fri Jul 24 16:41:56 2026 +0200
Improve SolveMailboxInconsistenciesService
- Confirm the incosistency prior fixing
- Systematic use of STRONG consistency when reading pathDao
- Re-introduce path entry
---
.../cassandra/mail/task/SolveMailboxInconsistenciesService.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/task/SolveMailboxInconsistenciesService.java b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/task/SolveMailboxInconsistenciesService.java
index d7dd71dc53..87d2f4066e 100644
--- a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/task/SolveMailboxInconsistenciesService.java
+++ b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/task/SolveMailboxInconsistenciesService.java
@@ -162,7 +162,8 @@ public class SolveMailboxInconsistenciesService {
@Override
public Mono<Result> fix(Context context, CassandraMailboxDAO mailboxDAO, CassandraMailboxPathV3DAO pathV3DAO) {
- return pathV3DAO.delete(mailbox.generateAssociatedPath())
+ return pathV3DAO.retrieve(mailbox.generateAssociatedPath(), STRONG)
+ .flatMap(mailboxDAO::save)
.doOnSuccess(any -> {
LOGGER.info("Inconsistency fixed for orphan mailboxPath {} - {}",
mailbox.getMailboxId().serialize(),
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org