james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [15/17] james-project git commit: JAMES-2555 Update documentation accordingly
Date Mon, 15 Oct 2018 06:28:38 GMT
JAMES-2555 Update documentation accordingly


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/10a19a66
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/10a19a66
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/10a19a66

Branch: refs/heads/master
Commit: 10a19a66c6fb5091478e76aba9123d5579470c1f
Parents: 9ff8a26
Author: Benoit Tellier <btellier@linagora.com>
Authored: Fri Oct 12 17:05:58 2018 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Oct 15 13:18:20 2018 +0700

----------------------------------------------------------------------
 .../org/apache/mailbox/tools/indexer/ReIndexerImpl.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/10a19a66/mailbox/tools/indexer/src/main/java/org/apache/mailbox/tools/indexer/ReIndexerImpl.java
----------------------------------------------------------------------
diff --git a/mailbox/tools/indexer/src/main/java/org/apache/mailbox/tools/indexer/ReIndexerImpl.java
b/mailbox/tools/indexer/src/main/java/org/apache/mailbox/tools/indexer/ReIndexerImpl.java
index 415aacc..0ef72c4 100644
--- a/mailbox/tools/indexer/src/main/java/org/apache/mailbox/tools/indexer/ReIndexerImpl.java
+++ b/mailbox/tools/indexer/src/main/java/org/apache/mailbox/tools/indexer/ReIndexerImpl.java
@@ -29,13 +29,10 @@ import org.apache.james.task.Task;
  * Note about live re-indexation handling :
  *
  *  - Data races may arise... If you modify the stored value between the received event check
and the index operation,
- *  you have an inconsistent behavior.
+ *  you have an inconsistent behavior (for mailbox renames).
  *
- *  This class is more about supporting changes in real time for future indexed values. If
you change a flags / delete
- *  mails for instance, you will see it in the indexed value !
- *
- *  Why only care about updates and deletions ? Additions are already handled by the indexer
that behaves normaly. We
- *  should just "adapt" our indexed value to the latest value, if any. The normal indexer
will take care of new stuff.
+ *  A mechanism for tracking mailbox renames had been implemented, and is taken into account
when starting re-indexing a mailbox.
+ *  Note that if a mailbox is renamed during its re-indexation process, it will not be taken
into account. (We just reduce the inconsistency window).
  */
 public class ReIndexerImpl implements ReIndexer {
 


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


Mime
View raw message