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

Fix specifying vshard sharding func #314

Closed
AnaNek opened this issue Jul 22, 2022 · 0 comments · Fixed by #315
Closed

Fix specifying vshard sharding func #314

AnaNek opened this issue Jul 22, 2022 · 0 comments · Fixed by #315
Assignees
Labels
bug Something isn't working

Comments

@AnaNek
Copy link
Contributor

AnaNek commented Jul 22, 2022

Starting from 0.11.0 user can specify sharding function 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 has a bug 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 showed
that CRUD search vshard sharding func in _G but this
approach doesn't work with vshard case.

@AnaNek AnaNek added bug Something isn't working 1sp labels Jul 22, 2022
@AnaNek AnaNek self-assigned this Jul 22, 2022
AnaNek added a commit that referenced this issue Jul 22, 2022
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
AnaNek added a commit that referenced this issue Jul 22, 2022
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
AnaNek added a commit that referenced this issue Jul 27, 2022
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
AnaNek added a commit that referenced this issue Jul 28, 2022
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
AnaNek added a commit that referenced this issue Aug 23, 2022
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
AnaNek added a commit that referenced this issue Aug 25, 2022
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
AnaNek added a commit that referenced this issue Aug 29, 2022
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
DifferentialOrange added a commit that referenced this issue Aug 29, 2022
Overview

    The main feature of this release is the full support of vshard
    sharding functions (see ddl 1.6.2 for corresponding ddl release).

Breaking changes

    There are no breaking changes in the release.

New features

    * `crud.storage_info` function to get storages status (#229).

Bugfixes

    * Fix specifying `vshard` sharding funcs (#314).
DifferentialOrange added a commit that referenced this issue Aug 29, 2022
Overview

    The main feature of this release is the full support of vshard
    sharding functions (see ddl 1.6.2 for corresponding `ddl` release).

Breaking changes

    There are no breaking changes in the release.

New features

    * `crud.storage_info` function to get storages status (#229).

Bugfixes

    * Fix specifying `vshard` sharding funcs (#314).
DifferentialOrange added a commit that referenced this issue Aug 29, 2022
Overview

    The main feature of this release is the full support of vshard
    sharding functions (see ddl 1.6.2 for corresponding `ddl` release).

Breaking changes

    There are no breaking changes in the release.

New features

    * `crud.storage_info` function to get storages status (#229).

Bugfixes

    * Fix specifying `vshard` sharding funcs (#314).
DifferentialOrange added a commit that referenced this issue Aug 29, 2022
Overview

    The main feature of this release is the full support of vshard
    sharding functions (see ddl 1.6.2 for corresponding `ddl` release).

Breaking changes

    There are no breaking changes in the release.

New features

    * `crud.storage_info` function to get storages status (#229).

Bugfixes

    * Fix specifying `vshard` sharding funcs (#314).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants