Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
38 changed files
with
383 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.53 KB
test/upgrade/test_master_replica/data/localhost-13301/00000000000000000000.snap
Binary file not shown.
Binary file added
BIN
+247 Bytes
test/upgrade/test_master_replica/data/localhost-13301/00000000000000000000.xlog
Binary file not shown.
Binary file added
BIN
+214 Bytes
test/upgrade/test_master_replica/data/localhost-13301/00000000000000000002.xlog
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
test/upgrade/test_master_replica/data/localhost-13301/00000000000000000003.xlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
|
||
��� |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13301/config.backup/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13301/config.backup/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13301/config.backup/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13301/config/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13301/config/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13301/config/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 added
BIN
+1.53 KB
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000000.snap
Binary file not shown.
Binary file added
BIN
+2.45 KB
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000000.xlog
Binary file not shown.
Binary file added
BIN
+1.89 KB
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000034.snap
Binary file not shown.
Binary file added
BIN
+205 Bytes
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000034.xlog
Binary file not shown.
Binary file added
BIN
+220 Bytes
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000035.xlog
Binary file not shown.
Binary file added
BIN
+7.98 KB
test/upgrade/test_master_replica/data/localhost-13303/00000000000000000036.xlog
Binary file not shown.
Binary file added
BIN
+236 Bytes
test/upgrade/test_master_replica/data/localhost-13303/00000000000000003036.xlog
Binary file not shown.
Binary file added
BIN
+236 Bytes
test/upgrade/test_master_replica/data/localhost-13303/00000000000000003037.xlog
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
test/upgrade/test_master_replica/data/localhost-13303/00000000000000003038.xlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
|
||
��� |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13303/config.backup/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13303/config.backup/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13303/config.backup/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13303/config/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13303/config/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13303/config/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 added
BIN
+1.9 KB
test/upgrade/test_master_replica/data/localhost-13305/00000000000000000035.snap
Binary file not shown.
Binary file added
BIN
+200 Bytes
test/upgrade/test_master_replica/data/localhost-13305/00000000000000000035.xlog
Binary file not shown.
Binary file added
BIN
+35.3 KB
test/upgrade/test_master_replica/data/localhost-13305/00000000000000000036.xlog
Binary file not shown.
Binary file added
BIN
+125 KB
test/upgrade/test_master_replica/data/localhost-13305/00000000000000000703.xlog
Binary file not shown.
Binary file added
BIN
+329 Bytes
test/upgrade/test_master_replica/data/localhost-13305/00000000000000003036.xlog
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
test/upgrade/test_master_replica/data/localhost-13305/00000000000000003038.xlog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
|
||
��� |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13305/config.backup/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13305/config.backup/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13305/config.backup/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
5 changes: 5 additions & 0 deletions
5
test/upgrade/test_master_replica/data/localhost-13305/config/auth.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cookie_max_age: 2592000 | ||
enabled: false | ||
cookie_renew_age: 86400 | ||
... |
35 changes: 35 additions & 0 deletions
35
test/upgrade/test_master_replica/data/localhost-13305/config/topology.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
10 changes: 10 additions & 0 deletions
10
test/upgrade/test_master_replica/data/localhost-13305/config/vshard_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |
Oops, something went wrong.