GitHub user chibenwa opened a pull request: https://github.com/apache/james-project/pull/13
Mailbox 257 This tool can be used if you change the technology you used as an indexer. It an also be used to correct index inconsistency. These inconsistencies can arrise from re ordering of non CRDT operations (example deletes), on server stops, on index information loss. The idea with this tool is to drop all documents from the idex, read the whole mailbox, and reindex these documents. Note that this tool is designed to be used against a running, client exposed James server. The idea is to listen on events and correct not yet indexed values (eg flags, or deletes). We do not care about additions as they are well handled by the normal indexer. I took this to the next level : reindex the whole mailboxmanager. The idea is to get the snapshot of all mailboxes at time T. Then we reindex mailboxes one by one using the process described above. Of course the following process is event corrected (upon Mailbox deletion). We o not care about mailbox additions as they are well handled by the normal indexer. You can merge this pull request into a Git repository by running: $ git pull https://github.com/chibenwa/james-project MAILBOX-257 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/james-project/pull/13.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #13 ---- commit 2b2388f517ce02ab784b3d17214b50c2b566ff98 Author: benwa <btell...@linagora.com> Date: 2015-10-30T20:10:28Z MAILBOX-257 Re-indexing documents commit 133b93fdc729f49967aa54e4d4c33e22ab68ff54 Author: benwa <btell...@linagora.com> Date: 2015-10-31T09:52:19Z MAILBOX-257 Add a fake indexer commit d978ff5f111fc1a7565cd93b96269b758d7ee91a Author: benwa <btell...@linagora.com> Date: 2015-10-31T10:19:54Z MAILBOX-257 Add CLI capability to re-index documents commit 9baa03052f8863b6e6a6e65affea69129d14a5cd Author: benwa <btell...@linagora.com> Date: 2015-10-31T10:35:05Z MAILBOX-257 Add spring configuration ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org