-
Notifications
You must be signed in to change notification settings - Fork 35
Doubled buckets. Part 2 (stray tcp) #646
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
base: master
Are you sure you want to change the base?
Changes from all commits
e27411c
c103ca0
82022ef
c28b0b2
144059f
a05dcbd
096af24
03533e7
c03e43d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -419,6 +419,13 @@ local function cluster_bootstrap(g, cfg) | |
| replicaset_count = replicaset_count + 1 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the commit's
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
| end | ||
| t.assert_not_equals(masters, {}, 'have masters') | ||
| for _, master in pairs(masters) do | ||
| master:exec(function() | ||
| ilt.helpers.retrying({timeout = iwait_timeout}, function() | ||
| t.assert(ivshard.storage.internal.is_bucket_in_sync) | ||
| end) | ||
| end) | ||
| end | ||
| vrepset.calculate_etalon_balance(etalon_balance, cfg.bucket_count) | ||
| local fibers = table.new(0, replicaset_count) | ||
| local bid = 1 | ||
|
|
@@ -846,6 +853,32 @@ local function info_assert_alert(alerts, alert_name) | |
| t.fail(('There is no %s in alerts').format(alert_name)) | ||
|
Serpentian marked this conversation as resolved.
|
||
| end | ||
|
|
||
| local function storage_bucket_wait_transfer(src_storage, dest_storage, | ||
| bucket_id) | ||
| src_storage:exec(function(bucket_id) | ||
| t.helpers.retrying({timeout = iwait_timeout}, function() | ||
| t.assert_not(box.space._bucket:get(bucket_id)) | ||
| end) | ||
| end, {bucket_id}) | ||
| dest_storage:exec(function(bucket_id) | ||
| t.helpers.retrying({timeout = iwait_timeout}, function() | ||
| t.assert_equals(box.space._bucket:get(bucket_id).status, 'active') | ||
| end) | ||
| end, {bucket_id}) | ||
| end | ||
|
|
||
| local function storage_bucket_move(src_storage, dest_storage, bucket_id) | ||
| src_storage:exec(function(bucket_id, replicaset_id) | ||
| t.helpers.retrying({timeout = iwait_timeout}, function() | ||
| local res, err = ivshard.storage.bucket_send(bucket_id, | ||
| replicaset_id) | ||
| t.assert_not(err) | ||
| t.assert(res) | ||
| end) | ||
| end, {bucket_id, dest_storage:replicaset_uuid()}) | ||
| storage_bucket_wait_transfer(src_storage, dest_storage, bucket_id) | ||
| end | ||
|
|
||
| -- Git directory of the project and data directory of the test. | ||
| -- Used in evolution tests to fetch old versions of vshard. | ||
| local sourcedir = fio.abspath(os.getenv('PACKPACK_GIT_SOURCEDIR') or | ||
|
|
@@ -877,6 +910,8 @@ return { | |
| storage_get_n_buckets = storage_get_n_buckets, | ||
| storage_stop = storage_stop, | ||
| storage_start = storage_start, | ||
| storage_bucket_move = storage_bucket_move, | ||
| storage_bucket_wait_transfer = storage_bucket_wait_transfer, | ||
| router_new = router_new, | ||
| router_cfg = router_cfg, | ||
| router_disconnect = router_disconnect, | ||
|
|
||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.