Skip to content
Snippets Groups Projects
Commit 36cce00b authored by Maksim Kaitmazian's avatar Maksim Kaitmazian Committed by Georgy Moshkin
Browse files

feat: prevent concurrent schema changes on master by using a global lock

A global lock for schema changes that solves the following issue:
An expensive index creation can cause RPC timeouts, resulting in re-sending of the
same RPC even though the operation is still in progress on the master. The second RPC
attempts to create the same index, but it realizes that the index already exists
even if the operation has not been completed yet. To handle this scenario, a global
lock was added in `proc_apply_schema_change` to prevent concurrent schema changes.
parent 8b418218
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment