-
Notifications
You must be signed in to change notification settings - Fork 15
sharding func: fix specifying vshard
sharding funcs
#315
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
sharding func: fix specifying vshard
sharding funcs
#315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems LGTM, but see my comment below
6c4f6ba
to
1d98a49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
I suppose we need to introduce integration tests with vshard to avoid such unpleasant bugs.
Could you create a ticket and put it to backlog?
See my two minor comments.
1d98a49
to
32d670f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after fixing error when vshard function is used, but module is not available (see details in comment)
32d670f
to
90f0c71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ok after resolving remaining comments
90f0c71
to
3ac0a5e
Compare
Starting from 0.11.0 user can specify sharding func to calculate bucket_id with sharding func definition as a part of DDL schema or insert manually to the space `_ddl_sharding_func`. Right now ddl fails with setting schema with vshard sharding function. But even if this bug is fixed, there is also a bug on CRUD side. Inserting manually to the space `_ddl_sharding_func` showed that CRUD search vshard sharding func in `_G` but this approach doesn't work with vshard case. This patch allows to specify `vshard` sharding func inserting manually to the space `_ddl_sharding_func`. Closes #314
3ac0a5e
to
a479871
Compare
Starting from 0.11.0 user can specify sharding func to
calculate bucket_id with sharding func definition as a part of
DDL schema or insert manually to the space
_ddl_sharding_func
.Right now ddl fails with setting schema with vshard sharding function
(tarantool/ddl#91).
But even if this bug is fixed, there is also a bug on CRUD side.
Inserting manually to the space
_ddl_sharding_func
showedthat CRUD search vshard sharding func in
_G
but thisapproach doesn't work with vshard case.
This patch allows to specify
vshard
sharding funcinserting manually to the space
_ddl_sharding_func
.I didn't forget about
Closes #314