Skip to content

Commit

Permalink
test: implement test for upgrade
Browse files Browse the repository at this point in the history
This patch introduces new type of test - "upgrade".
The main idea - try to bootstrap server with old schema version
then this changes should be applied to all replicas in replicaset.

We significant chnage from existing integration tests - we try to
do this using prepeared snaps and wals.

Need for #640
  • Loading branch information
olegrok committed Mar 20, 2020
1 parent d738201 commit 82ebd4e
Show file tree
Hide file tree
Showing 38 changed files with 383 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
XLOG
0.13
Version: 1.10.5-30-g967139663
Instance: aaaaaaaa-aaaa-0000-0000-000000000001
VClock: {1: 3}
PrevVClock: {1: 2}

���
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: false
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
rebalancer_disbalance_threshold: 1
bucket_count: 3000
...
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: true
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
bucket_count: 3000
rebalancer_disbalance_threshold: 1
...
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
XLOG
0.13
Version: 1.10.5-30-g967139663
Instance: bbbbbbbb-bbbb-0000-0000-000000000001
VClock: {1: 3036, 2: 2}
PrevVClock: {1: 3036, 2: 1}

���
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: false
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
rebalancer_disbalance_threshold: 1
bucket_count: 3000
...
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: true
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
bucket_count: 3000
rebalancer_disbalance_threshold: 1
...
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
XLOG
0.13
Version: 1.10.5-30-g967139663
Instance: bbbbbbbb-bbbb-0000-0000-000000000002
VClock: {1: 3036, 2: 2}
PrevVClock: {1: 3035, 2: 1}

���
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: false
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
rebalancer_disbalance_threshold: 1
bucket_count: 3000
...
@@ -0,0 +1,5 @@
---
cookie_max_age: 2592000
enabled: false
cookie_renew_age: 86400
...
@@ -0,0 +1,35 @@
---
replicasets:
bbbbbbbb-0000-0000-0000-000000000000:
weight: 1
master:
- bbbbbbbb-bbbb-0000-0000-000000000001
- bbbbbbbb-bbbb-0000-0000-000000000002
alias: unnamed
roles:
myrole-permanent: true
vshard-storage: true
vshard_group: default
aaaaaaaa-0000-0000-0000-000000000000:
master:
- aaaaaaaa-aaaa-0000-0000-000000000001
weight: 0
roles:
myrole-permanent: true
vshard-router: true
alias: unnamed
servers:
bbbbbbbb-bbbb-0000-0000-000000000002:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13305
bbbbbbbb-bbbb-0000-0000-000000000001:
disabled: false
replicaset_uuid: bbbbbbbb-0000-0000-0000-000000000000
uri: localhost:13303
aaaaaaaa-aaaa-0000-0000-000000000001:
disabled: false
replicaset_uuid: aaaaaaaa-0000-0000-0000-000000000000
uri: localhost:13301
failover: false
...
@@ -0,0 +1,10 @@
---
default:
rebalancer_max_receiving: 100
bootstrapped: true
collect_bucket_garbage_interval: 0.5
collect_lua_garbage: false
sync_timeout: 1
bucket_count: 3000
rebalancer_disbalance_threshold: 1
...

0 comments on commit 82ebd4e

Please sign in to comment.