Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 44b9155

Browse files
committed
Force schema reload in shard btw tests
The case described in [1]. The function proposed to including into shard in [2]. [1]: tarantool/shard#59 [2]: tarantool/shard#60
1 parent 0cb128a commit 44b9155

11 files changed

+22
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ make test
9797

9898
* For use: tarantool, lulpeg, >=tarantool/shard-1.1-91-gfa88bf8 (optional),
9999
tarantool/avro-schema.
100-
* For test (additionally to 'for use'): python 2.7, virtualenv, luacheck.
100+
* For test (additionally to 'for use'): python 2.7, virtualenv, luacheck,
101+
>=tarantool/shard-1.1-92-gec1a27e.
101102
* For building apidoc (additionally to 'for use'): ldoc.
102103

103104
## License

test/shard_no_redundancy/shard_common.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ test_run:cmd('switch default')
6363
---
6464
- true
6565
...
66+
shard.reload_schema()
67+
---
68+
...
6669
-- upload test data
6770
testdata.fill_test_data(shard)
6871
---

test/shard_no_redundancy/shard_common.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ require('test.testdata.common_testdata').init_spaces()
3333
test_run:cmd('switch shard2')
3434
require('test.testdata.common_testdata').init_spaces()
3535
test_run:cmd('switch default')
36+
shard.reload_schema()
3637

3738
-- upload test data
3839
testdata.fill_test_data(shard)

test/shard_no_redundancy/shard_compound_index.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ test_run:cmd('switch default')
6363
---
6464
- true
6565
...
66+
shard.reload_schema()
67+
---
68+
...
6669
-- upload test data
6770
testdata.fill_test_data(shard)
6871
---

test/shard_no_redundancy/shard_compound_index.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ require('test.testdata.compound_index_testdata').init_spaces()
3333
test_run:cmd('switch shard2')
3434
require('test.testdata.compound_index_testdata').init_spaces()
3535
test_run:cmd('switch default')
36+
shard.reload_schema()
3637

3738
-- upload test data
3839
testdata.fill_test_data(shard)

test/shard_redundancy/no_duplicates.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ test_run:cmd('switch default')
8181
---
8282
- true
8383
...
84+
shard.reload_schema()
85+
---
86+
...
8487
-- upload test data
8588
testdata.fill_test_data(shard)
8689
---

test/shard_redundancy/no_duplicates.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ require('test.testdata.common_testdata').init_spaces()
4242
test_run:cmd('switch shard4')
4343
require('test.testdata.common_testdata').init_spaces()
4444
test_run:cmd('switch default')
45+
shard.reload_schema()
4546

4647
-- upload test data
4748
testdata.fill_test_data(shard)

test/shard_redundancy/nullable_index.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ test_run:cmd('switch default')
8484
---
8585
- true
8686
...
87+
shard.reload_schema()
88+
---
89+
...
8790
-- upload test data
8891
testdata.fill_test_data(shard)
8992
---

test/shard_redundancy/nullable_index.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ require('test.testdata.nullable_index_testdata').init_spaces()
4646
test_run:cmd('switch shard4')
4747
require('test.testdata.nullable_index_testdata').init_spaces()
4848
test_run:cmd('switch default')
49+
shard.reload_schema()
4950

5051
-- upload test data
5152
testdata.fill_test_data(shard)

test/shard_redundancy/shard_compound_index.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ test_run:cmd('switch default')
8585
testdata.fill_test_data(shard)
8686
---
8787
...
88+
shard.reload_schema()
89+
---
90+
...
8891
-- acquire metadata
8992
metadata = testdata.get_test_metadata()
9093
---

test/shard_redundancy/shard_compound_index.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test_run:cmd('switch default')
4545

4646
-- upload test data
4747
testdata.fill_test_data(shard)
48+
shard.reload_schema()
4849

4950
-- acquire metadata
5051
metadata = testdata.get_test_metadata()

0 commit comments

Comments
 (0)