Skip to content
Snippets Groups Projects
Commit 4a1bebf5 authored by Arseniy Volynets's avatar Arseniy Volynets
Browse files

fix: block vshard rebalancing during dql

When reading from multiple storages it is
possible that some requests will execute faster
than the others. And it could lead to wrong
results when vhard moved the buckets between
nodes.

For example: we execute `select * from t`
on storage 1 and get the results. Vshard
moves the data from storage 1 to stroage 2,
and then we execute `select * from t` and in
result we get the data (that moved) twice.

This commit fixes it by using vshard's
storage ref api. Now multi-node read requests
first create the ref on each node which
blocks vshard rebalancing. Then we call
our stored procedure and remove the ref.
parent a1330863
No related branches found
No related tags found
Loading
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