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

Add strict mode for KeeperMap #48293

Merged
merged 7 commits into from
Apr 4, 2023
Merged

Add strict mode for KeeperMap #48293

merged 7 commits into from
Apr 4, 2023

Conversation

antonio2368
Copy link
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Add new setting keeper_map_strict_mode which enforces extra guarantees on operations made on top of KeeperMap tables.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-improvement Pull request with some product improvements label Mar 31, 2023
@@ -105,6 +107,7 @@ TRUNCATE TABLE keeper_map_table;
### Updates

Values can be updated using `ALTER TABLE` query. Primary key cannot be updated.
If setting `keeper_map_strict_mode` is set to `true`, fetching and updating data will succeed only if it's executed atomically.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be sure: we execute ALTER in one mutate call and update actual values in sink->finalize<true> call. That's why updating one chunk of data and getting an exception later is impossible, is it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we actualy send requests only on finalize.
Until then we fetch and modify data locally.

@vdimir vdimir self-assigned this Apr 3, 2023
@antonio2368 antonio2368 merged commit d0ba1e7 into master Apr 4, 2023
4 of 7 checks passed
@antonio2368 antonio2368 deleted the keeper-map-strict-mode branch April 4, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants