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

IGNITE-23220 Avoid concurrent Catalog writes to Metastorage on the same node #4406

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

rpuch
Copy link
Contributor

@rpuch rpuch commented Sep 17, 2024

https://issues.apache.org/jira/browse/IGNITE-23220

Each DDL tries to make a write to the Metastorage. Each write is assigned a sequential number (version); if a few DDLs try to write to the Metastorage, they will all compete for the same version, and only one of them can succeed. This competition is wasteful. This commit avoids such concurrency on the same node by explicitly linearizing writes to the Metastorage from the Catalog before doing them.

@zstan
Copy link
Contributor

zstan commented Sep 17, 2024

If we talk about local linearization - seems such approach is ok, but seems we still have such kind of problem with multi nodes concurrent catalog modification and the same exception will be raised. Also exception message in [1] is not clear for user and seems need to be refactored too.
[1] https://issues.apache.org/jira/browse/IGNITE-22814

@rpuch
Copy link
Contributor Author

rpuch commented Sep 17, 2024

Thanks for your review! The issues you mention will probably be addressed in https://issues.apache.org/jira/browse/IGNITE-22813

@rpuch rpuch merged commit 1e55309 into apache:main Sep 17, 2024
1 check passed
@rpuch rpuch deleted the ignite-23220 branch September 17, 2024 14:30
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.

2 participants