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

[wip] Support sharding migration #48795

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

icewind1991
Copy link
Member

Support migrating existing instances to sharding.

Enabled by setting the sharding configuration and setting the from_shard_key and from_primary to the sharding configuration with the next storage/file id (so the first storage/file that will be created after sharding is configured).

Any files on the existing storages will still go to the main db, only newly created storages will be sharded.

Things seem to work, but in some cases, the "File entry could not be inserted but could also not be selected with getId() in order to perform an update. Please try again." error gets thrown. (creating a new user is the most reliable way I found).
While things seem to work otherwise, I suspect that this issue is a sign of a bigger connection handling issue.

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant