Preserve the original partition of a (sub-)mailbox when using XFER #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Preserve the partition of a (sub-)mailbox when using XFER, rather than use the highest-level mailbox of the hierarchy transferred as the target partition for all mailboxes in the hierarchy.
The use-case is mailbox hierarchies split over multiple partitions.
Example scenario;
user.john
resides on the default partition, anduser.john.Archive
resides on a partition archive.While 'default' is fast, expensive storage, we have only 1GB of it.
While 'archive' is slow, cheap storage, we have a few TBs of it.
The size of
user.john.Archive
is > 1 GB.With this patch, unless a partition is explicitly specified to the issuing of the XFER command, any mailbox residing on;
the local default partition will be replicated to the target default partition,
a local non-default partition will be replicated to the target partition of the same name.
I do not believe this patch makes any sense for master, as I understand XFER has transitioned to the sync protocol, but please do correct me if a similar scenario may exist there, that deserves attention.