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

ddl: fix fetching invalid configuration #309

Merged

Conversation

DifferentialOrange
Copy link
Member

Before this patch, in case there is a sharding key record in _ddl_sharding_key for a non-existing space (for example, if ddl space wasn't properly dropped) and sharding info needs to be updated, any crud request will fail with "attempt to index a nil value" error. This patch fixes the behavior and adds a log warning if ddl configuration is invalid.

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Closes #308

Before this patch, in case there is a sharding key record
in _ddl_sharding_key for a non-existing space (for example, if ddl space
wasn't properly dropped) and sharding info needs to be updated, any crud
request will fail with "attempt to index a nil value" error. This patch
fixes the behavior and adds a log warning if ddl configuration is
invalid.

Closes #308
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-308-fail-after-drop branch from bdc46cc to d0d8206 Compare July 19, 2022 10:17
@DifferentialOrange DifferentialOrange merged commit 4409775 into master Jul 21, 2022
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-308-fail-after-drop branch July 21, 2022 10:49
DifferentialOrange added a commit that referenced this pull request Jul 21, 2022
Fix changelog typo introduced in PR #309.
DifferentialOrange added a commit that referenced this pull request Jul 21, 2022
Overview

    This is a bugfix release. It introduces several fixes related
    to crud and ddl module integration.

Breaking changes

    There are no breaking changes in the release.

Bugfixes

    * Fetching invalid ddl configuration (sharding key for non-existing
    space) is no longer breaks CRUD requests (#308, PR #309).
    * ddl space record delete no more throws error if crud
    is used (#310, PR #311).
    * crud sharding metainfo is now updated on ddl record
    delete (#310, PR #311).
@DifferentialOrange DifferentialOrange mentioned this pull request Jul 21, 2022
1 task
DifferentialOrange added a commit that referenced this pull request Jul 21, 2022
Fix changelog typo introduced in PR #309.
DifferentialOrange added a commit that referenced this pull request Jul 21, 2022
Overview

    This is a bugfix release. It introduces several fixes related
    to crud and ddl module integration.

Breaking changes

    There are no breaking changes in the release.

Bugfixes

    * Fetching invalid ddl configuration (sharding key for non-existing
    space) is no longer breaks CRUD requests (#308, PR #309).
    * ddl space record delete no more throws error if crud
    is used (#310, PR #311).
    * crud sharding metainfo is now updated on ddl record
    delete (#310, PR #311).
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.

Crud errors after space drop in migrations
3 participants