From e7f6f936ebaa955e6f72b20a7c4040e9153fd2e0 Mon Sep 17 00:00:00 2001 From: Eugine Blikh <bigbes@gmail.com> Date: Fri, 13 Sep 2013 19:03:05 +0400 Subject: [PATCH] Move test files to new format of box_connection output (yaml-like). Move stat test to LUA. We may move reconfigure.test(??) and sql test to LUA, i suppose --- test/big/sql.result | 521 +++-- test/box/admin.result | 12 +- test/box/admin.test.py | 4 +- test/box/bad_trigger.result | 6 +- test/box/bad_trigger.test.py | 11 +- test/box/iproto.result | 3 +- test/box/lua.result | 408 ++-- test/box/lua.test.py | 1 - test/box/reconfigure.result | 18 +- test/box/reconfigure.test.py | 7 +- test/box/snapshot.result | 30 +- test/box/snapshot.test.py | 13 +- test/box/sql.result | 155 +- test/box/sql.test.py | 16 +- test/box/stat.result | 45 +- test/box/stat.test.lua | 21 + test/box/stat.test.py | 30 - test/replication/swap.result | 3600 ++++++++++++++++++++++----------- test/replication/swap.test.py | 16 + 19 files changed, 3225 insertions(+), 1692 deletions(-) create mode 100644 test/box/stat.test.lua delete mode 100644 test/box/stat.test.py diff --git a/test/big/sql.result b/test/big/sql.result index cf826ca72a..699f7d0a80 100644 --- a/test/big/sql.result +++ b/test/big/sql.result @@ -16,29 +16,41 @@ box.insert(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 1, 1, 'str') # https://bugs.launchpad.net/tarantool/+bug/729758 # insert into t0 values ('Doe', 'Richard') -Insert OK, 1 row affected +--- +- ['Doe', 'Richard'] +... insert into t0 values ('Roe', 'Richard') -Insert OK, 1 row affected +--- +- ['Roe', 'Richard'] +... insert into t0 values ('Woe', 'Richard') -Insert OK, 1 row affected +--- +- ['Woe', 'Richard'] +... insert into t0 values ('Major', 'Tomas') -Insert OK, 1 row affected +--- +- ['Major', 'Tomas'] +... insert into t0 values ('Kytes', 'Tomas') -Insert OK, 1 row affected +--- +- ['Kytes', 'Tomas'] +... select * from t0 where k1='Richard' or k1='Tomas' or k1='Tomas' limit 5 -Found 5 tuples: -['Doe', 'Richard'] -['Kytes', 'Tomas'] -['Major', 'Tomas'] -['Roe', 'Richard'] -['Woe', 'Richard'] +--- +- ['Doe', 'Richard'] +- ['Kytes', 'Tomas'] +- ['Major', 'Tomas'] +- ['Roe', 'Richard'] +- ['Woe', 'Richard'] +... # # A test case for Bug#729879 # "Zero limit is treated the same as no limit" # https://bugs.launchpad.net/tarantool/+bug/729879 # select * from t0 where k1='Richard' or k1='Tomas' limit 0 -No match +--- +... box.space[0]:truncate() --- ... @@ -51,31 +63,46 @@ box.space[0]:truncate() # get away with it. # insert into t0 values ('Britney') -An error occurred: ER_ILLEGAL_PARAMS, 'Illegal parameters, tuple must have all indexed fields' +--- +- error: 'Illegal parameters, tuple must have all indexed fields' +... select * from t0 where k1='Anything' -No match +--- +... insert into t0 values ('Stephanie') -An error occurred: ER_ILLEGAL_PARAMS, 'Illegal parameters, tuple must have all indexed fields' +--- +- error: 'Illegal parameters, tuple must have all indexed fields' +... select * from t0 where k1='Anything' -No match +--- +... insert into t0 values ('Spears', 'Britney') -Insert OK, 1 row affected +--- +- ['Spears', 'Britney'] +... select * from t0 where k0='Spears' -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... select * from t0 where k1='Anything' -No match +--- +... select * from t0 where k1='Britney' -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... call box.select_range('0', '0', '100', 'Spears') -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... call box.select_range('0', '1', '100', 'Britney') -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... delete from t0 where k0='Spears' -Delete OK, 1 row affected +--- +- ['Spears', 'Britney'] +... box.space[0]:truncate() --- ... @@ -87,13 +114,21 @@ box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 1, 2, 1, 'str', 2, ' - [0, 1, 'secondary', 1701147252, 1, 2, 1, 'str', 2, 'str'] ... insert into t0 values ('key1', 'part1', 'part2') -Insert OK, 1 row affected +--- +- ['key1', 'part1', 'part2'] +... replace into t0 values ('key1', 'part1', 'part2') -Replace OK, 1 row affected +--- +- ['key1', 'part1', 'part2'] +... insert into t0 values ('key2', 'part1', 'part2_a') -Insert OK, 1 row affected +--- +- ['key2', 'part1', 'part2_a'] +... insert into t0 values ('key3', 'part1', 'part2_b') -Insert OK, 1 row affected +--- +- ['key3', 'part1', 'part2_b'] +... box.space[0]:select(1) --- - [830039403, 'part1', 'part2'] @@ -101,53 +136,70 @@ box.space[0]:select(1) - [863593835, 'part1', 'part2_b'] ... select * from t0 where k0='key1' -Found 1 tuple: -[830039403, 'part1', 'part2'] +--- +- ['key1', 'part1', 'part2'] +... select * from t0 where k0='key2' -Found 1 tuple: -[846816619, 'part1', 'part2_a'] +--- +- ['key2', 'part1', 'part2_a'] +... select * from t0 where k0='key3' -Found 1 tuple: -[863593835, 'part1', 'part2_b'] +--- +- ['key3', 'part1', 'part2_b'] +... select * from t0 where k1='part1' -Found 3 tuples: -[830039403, 'part1', 'part2'] -[846816619, 'part1', 'part2_a'] -[863593835, 'part1', 'part2_b'] +--- +- ['key1', 'part1', 'part2'] +- ['key2', 'part1', 'part2_a'] +- ['key3', 'part1', 'part2_b'] +... call box.select_range('0', '1', '100', 'part1') -Found 3 tuples: -[830039403, 'part1', 'part2'] -[846816619, 'part1', 'part2_a'] -[863593835, 'part1', 'part2_b'] +--- +- ['key1', 'part1', 'part2'] +- ['key2', 'part1', 'part2_a'] +- ['key3', 'part1', 'part2_b'] +... call box.select_range('0', '0', '100', 'key2') -Found 3 tuples: -[830039403, 'part1', 'part2'] -[846816619, 'part1', 'part2_a'] -[863593835, 'part1', 'part2_b'] +--- +- ['key1', 'part1', 'part2'] +- ['key2', 'part1', 'part2_a'] +- ['key3', 'part1', 'part2_b'] +... call box.select_range('0', '1', '100', 'part1', 'part2_a') -Found 2 tuples: -[846816619, 'part1', 'part2_a'] -[863593835, 'part1', 'part2_b'] +--- +- ['key2', 'part1', 'part2_a'] +- ['key3', 'part1', 'part2_b'] +... select * from t0 where k0='key1' -Found 1 tuple: -[830039403, 'part1', 'part2'] +--- +- ['key1', 'part1', 'part2'] +... select * from t0 where k0='key2' -Found 1 tuple: -[846816619, 'part1', 'part2_a'] +--- +- ['key2', 'part1', 'part2_a'] +... select * from t0 where k0='key3' -Found 1 tuple: -[863593835, 'part1', 'part2_b'] +--- +- ['key3', 'part1', 'part2_b'] +... select * from t0 where k1='part1' -Found 3 tuples: -[830039403, 'part1', 'part2'] -[846816619, 'part1', 'part2_a'] -[863593835, 'part1', 'part2_b'] +--- +- ['key1', 'part1', 'part2'] +- ['key2', 'part1', 'part2_a'] +- ['key3', 'part1', 'part2_b'] +... delete from t0 where k0='key1' -Delete OK, 1 row affected +--- +- ['key1', 'part1', 'part2'] +... delete from t0 where k0='key2' -Delete OK, 1 row affected +--- +- ['key2', 'part1', 'part2_a'] +... delete from t0 where k0='key3' -Delete OK, 1 row affected +--- +- ['key3', 'part1', 'part2_b'] +... box.space[0]:truncate() --- ... @@ -160,15 +212,25 @@ box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 2, 1, 'str', 2, ' - [0, 1, 'secondary', 1701147252, 0, 2, 1, 'str', 2, 'str'] ... insert into t0 values ('01234567', 'part1', 'part2') -Insert OK, 1 row affected +--- +- ['01234567', 'part1', 'part2'] +... insert into t0 values ('11234567', 'part1', 'part2') -Insert OK, 1 row affected +--- +- ['11234567', 'part1', 'part2'] +... insert into t0 values ('21234567', 'part1', 'part2_a') -Insert OK, 1 row affected +--- +- ['21234567', 'part1', 'part2_a'] +... insert into t0 values ('31234567', 'part1_a', 'part2') -Insert OK, 1 row affected +--- +- ['31234567', 'part1_a', 'part2'] +... insert into t0 values ('41234567', 'part1_a', 'part2_a') -Insert OK, 1 row affected +--- +- ['41234567', 'part1_a', 'part2_a'] +... l = {} --- ... @@ -184,46 +246,65 @@ return l - [3978425819141910836, 'part1_a', 'part2_a'] ... select * from t0 where k0='01234567' -Found 1 tuple: -['01234567', 'part1', 'part2'] +--- +- ['01234567', 'part1', 'part2'] +... select * from t0 where k0='11234567' -Found 1 tuple: -['11234567', 'part1', 'part2'] +--- +- ['11234567', 'part1', 'part2'] +... select * from t0 where k0='21234567' -Found 1 tuple: -['21234567', 'part1', 'part2_a'] +--- +- ['21234567', 'part1', 'part2_a'] +... select * from t0 where k1='part1' -Found 3 tuples: -['01234567', 'part1', 'part2'] -['11234567', 'part1', 'part2'] -['21234567', 'part1', 'part2_a'] +--- +- ['01234567', 'part1', 'part2'] +- ['11234567', 'part1', 'part2'] +- ['21234567', 'part1', 'part2_a'] +... select * from t0 where k1='part1_a' -Found 2 tuples: -['31234567', 'part1_a', 'part2'] -['41234567', 'part1_a', 'part2_a'] +--- +- ['31234567', 'part1_a', 'part2'] +- ['41234567', 'part1_a', 'part2_a'] +... select * from t0 where k1='part_none' -No match +--- +... call box.select('0', '1', 'part1', 'part2') -Found 2 tuples: -['01234567', 'part1', 'part2'] -['11234567', 'part1', 'part2'] +--- +- ['01234567', 'part1', 'part2'] +- ['11234567', 'part1', 'part2'] +... select * from t0 where k1='part1' -Found 3 tuples: -['01234567', 'part1', 'part2'] -['11234567', 'part1', 'part2'] -['21234567', 'part1', 'part2_a'] +--- +- ['01234567', 'part1', 'part2'] +- ['11234567', 'part1', 'part2'] +- ['21234567', 'part1', 'part2_a'] +... select * from t0 where k1='part2' -No match +--- +... delete from t0 where k0='01234567' -Delete OK, 1 row affected +--- +- ['01234567', 'part1', 'part2'] +... delete from t0 where k0='11234567' -Delete OK, 1 row affected +--- +- ['11234567', 'part1', 'part2'] +... delete from t0 where k0='21234567' -Delete OK, 1 row affected +--- +- ['21234567', 'part1', 'part2_a'] +... delete from t0 where k0='31234567' -Delete OK, 1 row affected +--- +- ['31234567', 'part1_a', 'part2'] +... delete from t0 where k0='41234567' -Delete OK, 1 row affected +--- +- ['41234567', 'part1_a', 'part2_a'] +... box.space[0]:select(0) --- ... @@ -239,28 +320,40 @@ box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'hash', 1, 1, 1, 'str') - [0, 1, 'secondary', 1752392040, 1, 1, 1, 'str'] ... insert into t0 values (1, 'hello') -Insert OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'hello'] +... insert into t0 values (2, 'brave') -Insert OK, 1 row affected +--- +- ['\x02\x00\x00\x00', 'brave'] +... insert into t0 values (3, 'new') -Insert OK, 1 row affected +--- +- ['\x03\x00\x00\x00', 'new'] +... insert into t0 values (4, 'world') -Insert OK, 1 row affected +--- +- ['\x04\x00\x00\x00', 'world'] +... # # Bug#929654 - secondary hash index is not built with build_indexes() # select * from t0 where k1='hello' -Found 1 tuple: -[1, 'hello'] +--- +- ['\x01\x00\x00\x00', 'hello'] +... select * from t0 where k1='brave' -Found 1 tuple: -[2, 'brave'] +--- +- ['\x02\x00\x00\x00', 'brave'] +... select * from t0 where k1='new' -Found 1 tuple: -[3, 'new'] +--- +- ['\x03\x00\x00\x00', 'new'] +... select * from t0 where k1='world' -Found 1 tuple: -[4, 'world'] +--- +- ['\x04\x00\x00\x00', 'world'] +... box.space[0]:truncate() --- ... @@ -279,107 +372,185 @@ box.replace(box.schema.INDEX_ID, 0, 1, 'secondary', 'tree', 0, 1, 1, 'str') - [0, 1, 'secondary', 1701147252, 0, 1, 1, 'str'] ... insert into t0 values ('Spears', 'Britney') -Insert OK, 1 row affected +--- +- ['Spears', 'Britney'] +... select * from t0 where k0='Spears' -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... select * from t0 where k1='Britney' -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... replace into t0 values ('Spears') -An error occurred: ER_ILLEGAL_PARAMS, 'Illegal parameters, tuple must have all indexed fields' +--- +- error: 'Illegal parameters, tuple must have all indexed fields' +... select * from t0 where k0='Spears' -Found 1 tuple: -['Spears', 'Britney'] +--- +- ['Spears', 'Britney'] +... delete from t0 where k0='Spears' -Delete OK, 1 row affected +--- +- ['Spears', 'Britney'] +... insert into t0 values (1, 'duplicate one') -Insert OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'duplicate one'] +... insert into t0 values (2, 'duplicate one') -Insert OK, 1 row affected +--- +- ['\x02\x00\x00\x00', 'duplicate one'] +... insert into t0 values (3, 'duplicate one') -Insert OK, 1 row affected +--- +- ['\x03\x00\x00\x00', 'duplicate one'] +... insert into t0 values (4, 'duplicate one') -Insert OK, 1 row affected +--- +- ['\x04\x00\x00\x00', 'duplicate one'] +... insert into t0 values (5, 'duplicate one') -Insert OK, 1 row affected +--- +- ['\x05\x00\x00\x00', 'duplicate one'] +... insert into t0 values (6, 'duplicate two') -Insert OK, 1 row affected +--- +- ['\x06\x00\x00\x00', 'duplicate two'] +... insert into t0 values (7, 'duplicate two') -Insert OK, 1 row affected +--- +- ['\x07\x00\x00\x00', 'duplicate two'] +... insert into t0 values (8, 'duplicate two') -Insert OK, 1 row affected +--- +- ['\x08\x00\x00\x00', 'duplicate two'] +... insert into t0 values (9, 'duplicate two') -Insert OK, 1 row affected +--- +- ['\t\x00\x00\x00', 'duplicate two'] +... insert into t0 values (10, 'duplicate two') -Insert OK, 1 row affected +--- +- ['\n\x00\x00\x00', 'duplicate two'] +... insert into t0 values (11, 'duplicate three') -Insert OK, 1 row affected +--- +- ['\x0b\x00\x00\x00', 'duplicate three'] +... insert into t0 values (12, 'duplicate three') -Insert OK, 1 row affected +--- +- ['\x0c\x00\x00\x00', 'duplicate three'] +... insert into t0 values (13, 'duplicate three') -Insert OK, 1 row affected +--- +- ['\r\x00\x00\x00', 'duplicate three'] +... insert into t0 values (14, 'duplicate three') -Insert OK, 1 row affected +--- +- ['\x0e\x00\x00\x00', 'duplicate three'] +... insert into t0 values (15, 'duplicate three') -Insert OK, 1 row affected +--- +- ['\x0f\x00\x00\x00', 'duplicate three'] +... select * from t0 where k1='duplicate one' -Found 5 tuples: -[1, 'duplicate one'] -[2, 'duplicate one'] -[3, 'duplicate one'] -[4, 'duplicate one'] -[5, 'duplicate one'] +--- +- ['\x01\x00\x00\x00', 'duplicate one'] +- ['\x02\x00\x00\x00', 'duplicate one'] +- ['\x03\x00\x00\x00', 'duplicate one'] +- ['\x04\x00\x00\x00', 'duplicate one'] +- ['\x05\x00\x00\x00', 'duplicate one'] +... select * from t0 where k1='duplicate two' -Found 5 tuples: -[10, 'duplicate two'] -[6, 'duplicate two'] -[7, 'duplicate two'] -[8, 'duplicate two'] -[9, 'duplicate two'] +--- +- ['\x06\x00\x00\x00', 'duplicate two'] +- ['\x07\x00\x00\x00', 'duplicate two'] +- ['\x08\x00\x00\x00', 'duplicate two'] +- ['\t\x00\x00\x00', 'duplicate two'] +- ['\n\x00\x00\x00', 'duplicate two'] +... select * from t0 where k1='duplicate three' -Found 5 tuples: -[11, 'duplicate three'] -[12, 'duplicate three'] -[13, 'duplicate three'] -[14, 'duplicate three'] -[15, 'duplicate three'] +--- +- ['\x0b\x00\x00\x00', 'duplicate three'] +- ['\x0c\x00\x00\x00', 'duplicate three'] +- ['\r\x00\x00\x00', 'duplicate three'] +- ['\x0e\x00\x00\x00', 'duplicate three'] +- ['\x0f\x00\x00\x00', 'duplicate three'] +... delete from t0 where k0=1 -Delete OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'duplicate one'] +... delete from t0 where k0=2 -Delete OK, 1 row affected +--- +- ['\x02\x00\x00\x00', 'duplicate one'] +... delete from t0 where k0=3 -Delete OK, 1 row affected +--- +- ['\x03\x00\x00\x00', 'duplicate one'] +... delete from t0 where k0=4 -Delete OK, 1 row affected +--- +- ['\x04\x00\x00\x00', 'duplicate one'] +... delete from t0 where k0=5 -Delete OK, 1 row affected +--- +- ['\x05\x00\x00\x00', 'duplicate one'] +... delete from t0 where k0=6 -Delete OK, 1 row affected +--- +- ['\x06\x00\x00\x00', 'duplicate two'] +... delete from t0 where k0=7 -Delete OK, 1 row affected +--- +- ['\x07\x00\x00\x00', 'duplicate two'] +... delete from t0 where k0=8 -Delete OK, 1 row affected +--- +- ['\x08\x00\x00\x00', 'duplicate two'] +... delete from t0 where k0=9 -Delete OK, 1 row affected +--- +- ['\t\x00\x00\x00', 'duplicate two'] +... delete from t0 where k0=10 -Delete OK, 1 row affected +--- +- ['\n\x00\x00\x00', 'duplicate two'] +... delete from t0 where k0=11 -Delete OK, 1 row affected +--- +- ['\x0b\x00\x00\x00', 'duplicate three'] +... delete from t0 where k0=12 -Delete OK, 1 row affected +--- +- ['\x0c\x00\x00\x00', 'duplicate three'] +... delete from t0 where k0=13 -Delete OK, 1 row affected +--- +- ['\r\x00\x00\x00', 'duplicate three'] +... delete from t0 where k0=14 -Delete OK, 1 row affected +--- +- ['\x0e\x00\x00\x00', 'duplicate three'] +... delete from t0 where k0=15 -Delete OK, 1 row affected +--- +- ['\x0f\x00\x00\x00', 'duplicate three'] +... insert into t0 values(1, 'Aardvark ') -Insert OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'Aardvark '] +... insert into t0 values(2, 'Bilimbi') -Insert OK, 1 row affected +--- +- ['\x02\x00\x00\x00', 'Bilimbi'] +... insert into t0 values(3, 'Creature ') -Insert OK, 1 row affected +--- +- ['\x03\x00\x00\x00', 'Creature '] +... box.space[0]:select(1) --- - [1, 'Aardvark '] @@ -403,11 +574,17 @@ box.space[0].index[1].idx:max() - [3, 'Creature '] ... delete from t0 where k0=1 -Delete OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'Aardvark '] +... delete from t0 where k0=2 -Delete OK, 1 row affected +--- +- ['\x02\x00\x00\x00', 'Bilimbi'] +... delete from t0 where k0=3 -Delete OK, 1 row affected +--- +- ['\x03\x00\x00\x00', 'Creature '] +... box.space[0]:drop() --- ... diff --git a/test/box/admin.result b/test/box/admin.result index 6e1976193f..b62960cd9b 100644 --- a/test/box/admin.result +++ b/test/box/admin.result @@ -91,14 +91,18 @@ box.stat() total: 0 rps: 0 ... -insert into t0 values (1, 'tuple') -Insert OK, 1 row affected +box.insert(0, 1, 'tuple') +--- +- [1, 'tuple'] +... box.snapshot() --- - ok ... -delete from t0 where k0 = 1 -Delete OK, 1 row affected +box.delete(0, 1) +--- +- [1, 'tuple'] +... box.info() --- - version: 1.minor.patch-<rev>-<commit> diff --git a/test/box/admin.test.py b/test/box/admin.test.py index f439a53ded..f27bb1758f 100644 --- a/test/box/admin.test.py +++ b/test/box/admin.test.py @@ -13,9 +13,9 @@ sys.stdout.push_filter("'function: .*", "function_ptr") admin("box.cfg()") sys.stdout.clear_all_filters() admin("box.stat()") -sql("insert into t0 values (1, 'tuple')") +admin("box.insert(0, 1, 'tuple')") admin("box.snapshot()") -sql("delete from t0 where k0 = 1") +admin("box.delete(0, 1)") sys.stdout.push_filter("(\d)\.\d\.\d(-\d+-\w+)?", "\\1.minor.patch-<rev>-<commit>") sys.stdout.push_filter("pid: \d+", "pid: <pid>") sys.stdout.push_filter("logger_pid: \d+", "pid: <pid>") diff --git a/test/box/bad_trigger.result b/test/box/bad_trigger.result index 2cbea1b12f..36768396a4 100644 --- a/test/box/bad_trigger.result +++ b/test/box/bad_trigger.result @@ -7,7 +7,11 @@ type(box.session.on_connect(function() nosuchfunction() end)) --- - nil ... -Exception raised +select * from t0 where k0=0 +--- +- error: 'Lua error: [string "return type(box.session.on_connect(function()..."]:1: attempt to call global 'nosuchfunction' (a nil value)' +... +Connection is dead. type(box.session.on_connect(nil)) --- diff --git a/test/box/bad_trigger.test.py b/test/box/bad_trigger.test.py index 3e6f851cae..d41473330a 100644 --- a/test/box/bad_trigger.test.py +++ b/test/box/bad_trigger.test.py @@ -7,11 +7,10 @@ print """ admin("type(box.session.on_connect(function() nosuchfunction() end))") con1 = BoxConnection('localhost', server.primary_port) -try: - con1.execute("select * from t0 where k0=0") - con1.execute("select * from t0 where k0=0") -except Exception as e: - print "Exception raised\n" - +con1("select * from t0 where k0=0") +if not con1.check_connection(): + print "Connection is dead.\n" +else: + print "Connection is alive.\n" # Clean-up admin("type(box.session.on_connect(nil))") diff --git a/test/box/iproto.result b/test/box/iproto.result index 51f28f5624..a5fcc050ed 100644 --- a/test/box/iproto.result +++ b/test/box/iproto.result @@ -10,5 +10,6 @@ 12 # check that is server alive ping -ok --- +- ok +... diff --git a/test/box/lua.result b/test/box/lua.result index 18a1b86761..62b57b9fb1 100644 --- a/test/box/lua.result +++ b/test/box/lua.result @@ -208,15 +208,21 @@ box.process(22, box.pack('iii', 0, 0, 0)) - error: box.process(CALL, ...) is not allowed ... call box.process('abc', 'def') -An error occurred: ER_ILLEGAL_PARAMS, 'Illegal parameters, unsupported command code, check the error log' +--- +- error: 'Illegal parameters, unsupported command code, check the error log' +... call box.pack('test') -An error occurred: ER_PROC_LUA, 'Lua error: box.pack: argument count does not match the format' +--- +- error: 'Lua error: box.pack: argument count does not match the format' +... call box.pack('p', 'this string is 45 characters long 1234567890 ') -Found 1 tuple: -['-this string is 45 characters long 1234567890 '] +--- +- ['-this string is 45 characters long 1234567890 '] +... call box.pack('p', 'ascii symbols are visible starting from code 20') -Found 1 tuple: -['/ascii symbols are visible starting from code 20'] +--- +- ['/ascii symbols are visible starting from code 20'] +... function f1() return 'testing', 1, false, -1, 1.123, 1e123, nil end --- ... @@ -231,33 +237,44 @@ f1() - null ... call f1() -Found 7 tuples: -['testing'] -[1] -['false'] -[4294967295] -[1] -['��������'] -['nil'] +--- +- ['testing'] +- ['\x01\x00\x00\x00'] +- ['false'] +- ['\xff\xff\xff\xff'] +- ['\x01\x00\x00\x00'] +- ['\x00\x00\x00\x00\x00\x00\x00\x00'] +- ['nil'] +... f1=nil --- ... call f1() -An error occurred: ER_NO_SUCH_PROC, 'Procedure 'f1' is not defined' +--- +- error: 'Procedure 'f1' is not defined' +... function f1() return f1 end --- ... call f1() -An error occurred: ER_PROC_RET, 'Return type 'function' is not supported in the binary protocol' +--- +- error: 'Return type 'function' is not supported in the binary protocol' +... insert into t0 values (1, 'test box delete') -Insert OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'test box delete'] +... call box.delete('0', '���') -Found 1 tuple: -[1, 'test box delete'] +--- +- ['\x01\x00\x00\x00', 'test box delete'] +... call box.delete('0', '���') -No match +--- +... insert into t0 values (1, 'test box delete') -Insert OK, 1 row affected +--- +- ['\x01\x00\x00\x00', 'test box delete'] +... box.delete(0, 1) --- - [1, 'test box delete'] @@ -266,16 +283,23 @@ box.delete(0, 1) --- ... insert into t0 values ('abcd', 'test box delete') -Insert OK, 1 row affected +--- +- ['abcd', 'test box delete'] +... call box.delete('0', '���') -No match +--- +... call box.delete('0', 'abcd') -Found 1 tuple: -[1684234849, 'test box delete'] +--- +- ['abcd', 'test box delete'] +... call box.delete('0', 'abcd') -No match +--- +... insert into t0 values ('abcd', 'test box delete') -Insert OK, 1 row affected +--- +- ['abcd', 'test box delete'] +... box.delete(0, 'abcd') --- - [1684234849, 'test box delete'] @@ -284,12 +308,16 @@ box.delete(0, 'abcd') --- ... call box.select('0', '0', 'abcd') -No match +--- +... insert into t0 values ('abcd', 'test box.select()') -Insert OK, 1 row affected +--- +- ['abcd', 'test box.select()'] +... call box.select('0', '0', 'abcd') -Found 1 tuple: -[1684234849, 'test box.select()'] +--- +- ['abcd', 'test box.select()'] +... box.select(0, 0, 'abcd') --- - [1684234849, 'test box.select()'] @@ -307,73 +335,95 @@ box.select(0) - error: '[string "-- box.lua (internal file)..."]:11: box.pack: expected 32-bit int' ... call box.replace('0', 'abcd', 'hello', 'world') -Found 1 tuple: -[1684234849, 'hello', 'world'] +--- +- ['abcd', 'hello', 'world'] +... call box.replace('0', 'defc', 'goodbye', 'universe') -Found 1 tuple: -[1667655012, 'goodbye', 'universe'] +--- +- ['defc', 'goodbye', 'universe'] +... call box.select('0', '0', 'abcd') -Found 1 tuple: -[1684234849, 'hello', 'world'] +--- +- ['abcd', 'hello', 'world'] +... call box.select('0', '0', 'defc') -Found 1 tuple: -[1667655012, 'goodbye', 'universe'] +--- +- ['defc', 'goodbye', 'universe'] +... call box.replace('0', 'abcd') -Found 1 tuple: -[1684234849] +--- +- ['abcd'] +... call box.select('0', '0', 'abcd') -Found 1 tuple: -[1684234849] +--- +- ['abcd'] +... call box.delete('0', 'abcd') -Found 1 tuple: -[1684234849] +--- +- ['abcd'] +... call box.delete('0', 'defc') -Found 1 tuple: -[1667655012, 'goodbye', 'universe'] +--- +- ['defc', 'goodbye', 'universe'] +... call box.insert('0', 'test', 'old', 'abcd') -Found 1 tuple: -[1953719668, 'old', 1684234849] +--- +- ['test', 'old', 'abcd'] +... call box.insert('0', 'test', 'old', 'abcd') -An error occurred: ER_TUPLE_FOUND, 'Duplicate key exists in unique index 0' +--- +- error: 'Duplicate key exists in unique index 0' +... call box.update('0', 'test', '=p=p', '����', 'pass', 1, 'new') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... call box.select('0', '0', 'pass') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... call box.select_range(0, 0, 1, 'pass') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... call box.update('0', 'miss', '+p', 2, '���') -No match +--- +... call box.update('0', 'pass', '+p', 2, '���') -Found 1 tuple: -[1936941424, 'new', 1684234850] +--- +- ['pass', 'new', 'bbcd'] +... call box.update('0', 'pass', '-p', 2, '���') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... call box.update('0', 'pass', '-p', 2, '���') -Found 1 tuple: -[1936941424, 'new', 1684234848] +--- +- ['pass', 'new', '`bcd'] +... box.update(0, 'pass', '+p', 2, 1) --- - [1936941424, 'new', 1684234849] ... call box.select('0', '0', 'pass') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... function field_x(space, key, field_index) return (box.select(space, 0, key))[tonumber(field_index)] end --- ... call field_x('0', 'pass', '0') -Found 1 tuple: -[1936941424] +--- +- ['pass'] +... call field_x('0', 'pass', '1') -Found 1 tuple: -['new'] +--- +- ['new'] +... call box.delete('0', 'pass') -Found 1 tuple: -[1936941424, 'new', 1684234849] +--- +- ['pass', 'new', 'abcd'] +... dofile(...) --- ... @@ -844,7 +894,8 @@ f = function() box.fiber.wrap(f) end --- ... call f() -No match +--- +... f = function(a, b) box.fiber.wrap(function(arg) result = arg end, a..b) end --- ... @@ -940,64 +991,81 @@ function f2(...) return f1({...}) end --- ... call f1('test_', 'test_') -Found 1 tuple: -['test_', 'test_'] +--- +- ['test_', 'test_'] +... call f2('test_', 'test_') -Found 1 tuple: -['test_', 'test_'] +--- +- ['test_', 'test_'] +... call f1() -Found 1 tuple: -[] +--- +- [] +... call f2() -Found 1 tuple: -[] +--- +- [] +... function f3() return {{'hello'}, {'world'}} end --- ... call f3() -Found 2 tuples: -['hello'] -['world'] +--- +- ['hello'] +- ['world'] +... function f3() return {'hello', {'world'}} end --- ... call f3() -An error occurred: ER_PROC_RET, 'Return type 'table' is not supported in the binary protocol' +--- +- error: 'Return type 'table' is not supported in the binary protocol' +... function f3() return 'hello', {{'world'}, {'canada'}} end --- ... call f3() -An error occurred: ER_PROC_RET, 'Return type 'table' is not supported in the binary protocol' +--- +- error: 'Return type 'table' is not supported in the binary protocol' +... function f3() return {}, '123', {{}, {}} end --- ... call f3() -An error occurred: ER_PROC_RET, 'Return type 'table' is not supported in the binary protocol' +--- +- error: 'Return type 'table' is not supported in the binary protocol' +... function f3() return { {{'hello'}} } end --- ... call f3() -An error occurred: ER_PROC_RET, 'Return type 'table' is not supported in the binary protocol' +--- +- error: 'Return type 'table' is not supported in the binary protocol' +... function f3() return { box.tuple.new('hello'), {'world'} } end --- ... call f3() -Found 2 tuples: -['hello'] -['world'] +--- +- ['hello'] +- ['world'] +... function f3() return { {'world'}, box.tuple.new('hello') } end --- ... call f3() -Found 2 tuples: -['world'] -['hello'] +--- +- ['world'] +- ['hello'] +... call f1('jason') -Found 1 tuple: -['jason'] +--- +- ['jason'] +... call f1('jason', 1, 'test', 2, 'stewart') -Found 1 tuple: -['jason', '1', 1953719668, '2', 'stewart'] +--- +- ['jason', '1', 'test', '2', 'stewart'] +... function box.crossjoin(space0, space1, limit) space0 = tonumber(space0) space1 = tonumber(space1) limit = tonumber(limit) local result = {} for k0, v0 in box.space[space0]:pairs() do for k1, v1 in box.space[space1]:pairs() do if limit <= 0 then return unpack(result) end newtuple = {v0:unpack()} for _, v in v1:pairs() do table.insert(newtuple, v) end table.insert(result, newtuple) limit = limit - 1 end end return unpack(result) end --- ... @@ -1012,33 +1080,36 @@ box.space[0]:insert(1) - [1] ... call box.crossjoin('0', '0', '10000') -Found 1 tuple: -[1, 1] +--- +- ['\x01\x00\x00\x00', '\x01\x00\x00\x00'] +... box.space[0]:insert(2) --- - [2] ... call box.crossjoin('0', '0', '10000') -Found 4 tuples: -[1, 1] -[1, 2] -[2, 1] -[2, 2] +--- +- ['\x01\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x01\x00\x00\x00', '\x02\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x02\x00\x00\x00'] +... box.space[0]:insert(3, 'hello') --- - [3, 'hello'] ... call box.crossjoin('0', '0', '10000') -Found 9 tuples: -[1, 1] -[1, 2] -[1, 3, 'hello'] -[2, 1] -[2, 2] -[2, 3, 'hello'] -[3, 'hello', 1] -[3, 'hello', 2] -[3, 'hello', 3, 'hello'] +--- +- ['\x01\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x01\x00\x00\x00', '\x02\x00\x00\x00'] +- ['\x01\x00\x00\x00', '\x03\x00\x00\x00', 'hello'] +- ['\x02\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x02\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x03\x00\x00\x00', 'hello'] +- ['\x03\x00\x00\x00', 'hello', '\x01\x00\x00\x00'] +- ['\x03\x00\x00\x00', 'hello', '\x02\x00\x00\x00'] +- ['\x03\x00\x00\x00', 'hello', '\x03\x00\x00\x00', 'hello'] +... box.space[0]:insert(4, 'world') --- - [4, 'world'] @@ -1048,32 +1119,33 @@ box.space[0]:insert(5, 'hello world') - [5, 'hello world'] ... call box.crossjoin('0', '0', '10000') -Found 25 tuples: -[1, 1] -[1, 2] -[1, 3, 'hello'] -[1, 4, 'world'] -[1, 5, 'hello world'] -[2, 1] -[2, 2] -[2, 3, 'hello'] -[2, 4, 'world'] -[2, 5, 'hello world'] -[3, 'hello', 1] -[3, 'hello', 2] -[3, 'hello', 3, 'hello'] -[3, 'hello', 4, 'world'] -[3, 'hello', 5, 'hello world'] -[4, 'world', 1] -[4, 'world', 2] -[4, 'world', 3, 'hello'] -[4, 'world', 4, 'world'] -[4, 'world', 5, 'hello world'] -[5, 'hello world', 1] -[5, 'hello world', 2] -[5, 'hello world', 3, 'hello'] -[5, 'hello world', 4, 'world'] -[5, 'hello world', 5, 'hello world'] +--- +- ['\x01\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x01\x00\x00\x00', '\x02\x00\x00\x00'] +- ['\x01\x00\x00\x00', '\x03\x00\x00\x00', 'hello'] +- ['\x01\x00\x00\x00', '\x04\x00\x00\x00', 'world'] +- ['\x01\x00\x00\x00', '\x05\x00\x00\x00', 'hello world'] +- ['\x02\x00\x00\x00', '\x01\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x02\x00\x00\x00'] +- ['\x02\x00\x00\x00', '\x03\x00\x00\x00', 'hello'] +- ['\x02\x00\x00\x00', '\x04\x00\x00\x00', 'world'] +- ['\x02\x00\x00\x00', '\x05\x00\x00\x00', 'hello world'] +- ['\x03\x00\x00\x00', 'hello', '\x01\x00\x00\x00'] +- ['\x03\x00\x00\x00', 'hello', '\x02\x00\x00\x00'] +- ['\x03\x00\x00\x00', 'hello', '\x03\x00\x00\x00', 'hello'] +- ['\x03\x00\x00\x00', 'hello', '\x04\x00\x00\x00', 'world'] +- ['\x03\x00\x00\x00', 'hello', '\x05\x00\x00\x00', 'hello world'] +- ['\x04\x00\x00\x00', 'world', '\x01\x00\x00\x00'] +- ['\x04\x00\x00\x00', 'world', '\x02\x00\x00\x00'] +- ['\x04\x00\x00\x00', 'world', '\x03\x00\x00\x00', 'hello'] +- ['\x04\x00\x00\x00', 'world', '\x04\x00\x00\x00', 'world'] +- ['\x04\x00\x00\x00', 'world', '\x05\x00\x00\x00', 'hello world'] +- ['\x05\x00\x00\x00', 'hello world', '\x01\x00\x00\x00'] +- ['\x05\x00\x00\x00', 'hello world', '\x02\x00\x00\x00'] +- ['\x05\x00\x00\x00', 'hello world', '\x03\x00\x00\x00', 'hello'] +- ['\x05\x00\x00\x00', 'hello world', '\x04\x00\x00\x00', 'world'] +- ['\x05\x00\x00\x00', 'hello world', '\x05\x00\x00\x00', 'hello world'] +... box.space[0]:truncate() --- ... @@ -1207,20 +1279,25 @@ box.space[0]:truncate() --- ... call box.insert('0', 'tes1', 'tes2', 'tes3', 'tes4', 'tes5') -Found 1 tuple: -[829646196, 846423412, 863200628, 879977844, 896755060] +--- +- ['tes1', 'tes2', 'tes3', 'tes4', 'tes5'] +... call box.update('0', 'tes1', '#p', 0, '') -Found 1 tuple: -[846423412, 863200628, 879977844, 896755060] +--- +- ['tes2', 'tes3', 'tes4', 'tes5'] +... call box.update('0', 'tes2', '#p', 0, '') -Found 1 tuple: -[863200628, 879977844, 896755060] +--- +- ['tes3', 'tes4', 'tes5'] +... call box.update('0', 'tes3', '#p', 0, '') -Found 1 tuple: -[879977844, 896755060] +--- +- ['tes4', 'tes5'] +... call box.update('0', 'tes4', '#p', 0, '') -Found 1 tuple: -[896755060] +--- +- ['tes5'] +... box.update(0, 'tes5', '#p', 0, '') --- - error: Illegal parameters, tuple must have all indexed fields @@ -1321,11 +1398,12 @@ function foo() return 1, 2, '1', '2' end --- ... call foo() -Found 4 tuples: -[1] -[2] -['1'] -['2'] +--- +- ['\x01\x00\x00\x00'] +- ['\x02\x00\x00\x00'] +- ['1'] +- ['2'] +... # test update's assign opearations @@ -1812,14 +1890,17 @@ test.test.f = f --- ... call f() -Found 1 tuple: -['OK'] +--- +- ['OK'] +... call test.f() -Found 1 tuple: -['OK'] +--- +- ['OK'] +... call test.test.f() -Found 1 tuple: -['OK'] +--- +- ['OK'] +... # A test case for box.counter @@ -2083,8 +2164,9 @@ function bug1075677() local range = {} table.insert(range, 1>0) return range end --- ... call bug1075677() -Found 1 tuple: -[1702195828] +--- +- ['true'] +... bug1075677=nil --- ... diff --git a/test/box/lua.test.py b/test/box/lua.test.py index 858d8cff2b..4cdf7618e5 100644 --- a/test/box/lua.test.py +++ b/test/box/lua.test.py @@ -1,4 +1,3 @@ -# encoding: utf-8 import os import sys diff --git a/test/box/reconfigure.result b/test/box/reconfigure.result index 42d1bf47e9..eb6bce750c 100644 --- a/test/box/reconfigure.result +++ b/test/box/reconfigure.result @@ -75,8 +75,10 @@ space = box.schema.create_space('tweedledum', { id = 0 }) space:create_index('primary', 'hash', { parts = { 0, 'num' }}) --- ... -insert into t0 values (1, 'tuple') -Insert OK, 1 row affected +box.insert(0, 1, 'tuple') +--- +- [1, 'tuple'] +... box.snapshot() --- - ok @@ -87,8 +89,10 @@ box.cfg.reload() ' ... -insert into t0 values (2, 'tuple 2') -Insert OK, 1 row affected +box.insert(0, 2, 'tuple2') +--- +- [2, 'tuple2'] +... box.snapshot() --- - ok @@ -97,8 +101,10 @@ box.cfg.reload() --- - ok ... -insert into t0 values (3, 'tuple 3') -Insert OK, 1 row affected +box.insert(0, 3, 'tuple3') +--- +- [3, 'tuple3'] +... box.snapshot() --- - ok diff --git a/test/box/reconfigure.test.py b/test/box/reconfigure.test.py index 71d65c84d4..6107b290e2 100644 --- a/test/box/reconfigure.test.py +++ b/test/box/reconfigure.test.py @@ -28,13 +28,14 @@ print """# #""" admin("space = box.schema.create_space('tweedledum', { id = 0 })") admin("space:create_index('primary', 'hash', { parts = { 0, 'num' }})") -sql("insert into t0 values (1, 'tuple')") +admin("box.insert(0, 1, 'tuple')") +admin("") admin("box.snapshot()") server.reconfigure(None) -sql("insert into t0 values (2, 'tuple 2')") +admin("box.insert(0, 2, 'tuple2')") admin("box.snapshot()") server.reconfigure("box/tarantool_good.cfg") -sql("insert into t0 values (3, 'tuple 3')") +admin("box.insert(0, 3, 'tuple3')") admin("box.snapshot()") # Cleanup server.reconfigure(self.suite_ini["config"]) diff --git a/test/box/snapshot.result b/test/box/snapshot.result index eb281c0ca6..e83187a02d 100644 --- a/test/box/snapshot.result +++ b/test/box/snapshot.result @@ -11,8 +11,10 @@ space:create_index('primary', 'hash', { parts = { 0, 'num' }}) # error that happens when saving snapshot is propagated # to the caller. -insert into t0 values (1, 'first tuple') -Insert OK, 1 row affected +box.insert(0, 1, 'first tuple') +--- +- [1, 'first tuple'] +... box.snapshot() --- - ok @@ -21,17 +23,23 @@ box.snapshot() --- - error: can't save snapshot, errno 17 (File exists) ... -insert into t0 values (2, 'second tuple') -Insert OK, 1 row affected +box.insert(0, 2, 'second tuple') +--- +- [2, 'second tuple'] +... # Make 'var' directory read-only. box.snapshot() --- - error: can't save snapshot, errno 13 (Permission denied) ... -delete from t0 where k0 = 1 -Delete OK, 1 row affected -delete from t0 where k0 = 2 -Delete OK, 1 row affected +box.delete(0, 1) +--- +- [1, 'first tuple'] +... +box.delete(0, 2) +--- +- [2, 'second tuple'] +... # # A test case for http://bugs.launchpad.net/bugs/727174 # "tarantool_box crashes when saving snapshot on SIGUSR1" @@ -39,8 +47,10 @@ Delete OK, 1 row affected # Increment the lsn number, to make sure there is no such snapshot yet # -insert into t0 values (1, 'Test tuple') -Insert OK, 1 row affected +box.insert(0, 1, 'Test tuple') +--- +- [1, 'Test tuple'] +... Snapshot exists. box.space[0]:drop() --- diff --git a/test/box/snapshot.test.py b/test/box/snapshot.test.py index 5efd1c2dee..9d7cfdcbc9 100644 --- a/test/box/snapshot.test.py +++ b/test/box/snapshot.test.py @@ -13,7 +13,7 @@ print """# # error that happens when saving snapshot is propagated # to the caller. """ -sql("insert into t0 values (1, 'first tuple')") +admin("box.insert(0, 1, 'first tuple')") admin("box.snapshot()") # In absence of data modifications, two consecutive @@ -24,7 +24,7 @@ admin("box.snapshot()") admin("box.snapshot()") # # Increment LSN -sql("insert into t0 values (2, 'second tuple')") +admin("box.insert(0, 2, 'second tuple')") # # Check for other errors, e.g. "Permission denied". print "# Make 'var' directory read-only." @@ -33,8 +33,9 @@ admin("box.snapshot()") # cleanup os.chmod(vardir, 0755) -sql("delete from t0 where k0 = 1") -sql("delete from t0 where k0 = 2") + +admin("box.delete(0, 1)") +admin("box.delete(0, 2)") print """# # A test case for http://bugs.launchpad.net/bugs/727174 @@ -45,7 +46,7 @@ print """ # Increment the lsn number, to make sure there is no such snapshot yet #""" -sql("insert into t0 values (1, 'Test tuple')") +admin("box.insert(0, 1, 'Test tuple')") pid = int(yaml.load(admin("box.info.pid", silent=True))[0]) lsn = yaml.load(admin("box.info.lsn", silent=True))[0] @@ -69,5 +70,3 @@ else: print "Snapshot exists." admin("box.space[0]:drop()") - -# vim: syntax=python spell diff --git a/test/box/sql.result b/test/box/sql.result index 2ad2b7081d..a145cbf3e8 100644 --- a/test/box/sql.result +++ b/test/box/sql.result @@ -5,91 +5,140 @@ space:create_index('primary', 'hash', { parts = { 0, 'num' }}) --- ... ping -ok --- +- ok +... select * from t0 -An error occurred: ER_KEY_FIELD_TYPE, 'Supplied key type of part 0 does not match index part type: expected NUM' +--- +- error: 'Invalid key part count in an exact match (expected 1, got 0)' +... insert into t0 values (1, 'I am a tuple') -Insert OK, 1 row affected +--- +- [1, u'I am a tuple'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am a tuple'] +--- +- [1, u'I am a tuple'] +... select * from t0 where k0 = 0 -No match +--- +... select * from t0 where k0 = 2 -No match +--- +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am a tuple'] +--- +- [1, u'I am a tuple'] +... box.snapshot() --- - ok ... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am a tuple'] +--- +- [1, u'I am a tuple'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am a tuple'] +--- +- [1, u'I am a tuple'] +... delete from t0 where k0 = 1 -Delete OK, 1 row affected +--- +- [1, u'I am a tuple'] +... select * from t0 where k0 = 1 -No match +--- +... update t0 set k1 = 'I am a new tuple' where k0=1 -Update OK, 0 row affected +--- +... select * from t0 where k0=1 -No match +--- +... insert into t0 values (1, 'I am a new tuple') -Insert OK, 1 row affected +--- +- [1, u'I am a new tuple'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am a new tuple'] +--- +- [1, u'I am a new tuple'] +... update t0 set k1 = 'I am the newest tuple' where k0=1 -Update OK, 1 row affected +--- +- [1, u'I am the newest tuple'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'I am the newest tuple'] +--- +- [1, u'I am the newest tuple'] +... update t0 set k1 = 'Huh', k2 = 'I am a new field! I was added via append' where k0=1 -Update OK, 1 row affected +--- +- [1, u'Huh', u'I am a new field! I was added via append'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'Huh', 'I am a new field! I was added via append'] +--- +- [1, u'Huh', u'I am a new field! I was added via append'] +... update t0 set k1 = 'Huh', k1000 = 'invalid field' where k0=1 -An error occurred: ER_NO_SUCH_FIELD, 'Field 1000 was not found in the tuple' +--- +- error: 'Field 1000 was not found in the tuple' +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'Huh', 'I am a new field! I was added via append'] +--- +- [1, u'Huh', u'I am a new field! I was added via append'] +... replace into t0 values (1, 'I am a new tuple', 'stub') -Replace OK, 1 row affected +--- +- [1, u'I am a new tuple', u'stub'] +... update t0 set k1 = 'Huh', k2 = 'Oh-ho-ho' where k0=1 -Update OK, 1 row affected +--- +- [1, u'Huh', u'Oh-ho-ho'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'Huh', 'Oh-ho-ho'] +--- +- [1, u'Huh', u'Oh-ho-ho'] +... update t0 set k1 = '', k2 = '' where k0=1 -Update OK, 1 row affected +--- +- [1, u'', u''] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, '', ''] +--- +- [1, u'', u''] +... update t0 set k1 = 2, k2 = 3 where k0=1 -Update OK, 1 row affected +--- +- [1, u'\x02\x00\x00\x00', u'\x03\x00\x00\x00'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 2, 3] +--- +- [1, u'\x02\x00\x00\x00', u'\x03\x00\x00\x00'] +... insert into t0 values (0) -Insert OK, 1 row affected +--- +- [0] +... select * from t0 where k0=0 -Found 1 tuple: -[0] +--- +- [0] +... insert into t0 values (4294967295) -Insert OK, 1 row affected +--- +- [4294967295] +... select * from t0 where k0=4294967295 -Found 1 tuple: -[4294967295] +--- +- [4294967295] +... delete from t0 where k0=0 -Delete OK, 1 row affected +--- +- [0] +... delete from t0 where k0=4294967295 -Delete OK, 1 row affected +--- +- [4294967295] +... # # A test case for: http://bugs.launchpad.net/bugs/712456 # Verify that when trying to access a non-existing or @@ -97,11 +146,17 @@ Delete OK, 1 row affected # select * from t1 where k0 = 0 -An error occurred: ER_NO_SUCH_SPACE, 'Space 1 does not exist' +--- +- error: 'Space 1 does not exist' +... select * from t65537 where k0 = 0 -An error occurred: ER_NO_SUCH_SPACE, 'Space 65537 does not exist' +--- +- error: 'Space 65537 does not exist' +... select * from t4294967295 where k0 = 0 -An error occurred: ER_NO_SUCH_SPACE, 'Space 4294967295 does not exist' +--- +- error: 'Space 4294967295 does not exist' +... box.space[0]:drop() --- ... diff --git a/test/box/sql.test.py b/test/box/sql.test.py index 707c766fc6..b42576f050 100644 --- a/test/box/sql.test.py +++ b/test/box/sql.test.py @@ -1,4 +1,16 @@ -# encoding: utf-8 +sql.py_con.schema = Schema({ + 0 : { + 'default_type': tntSTR, + 'fields' : { + 0 : tntNUM, + 1 : tntSTR + }, + 'indexes': { + 0 : [0] # HASH + } + } +}) + admin("space = box.schema.create_space('tweedledum', { id = 0 })") admin("space:create_index('primary', 'hash', { parts = { 0, 'num' }})") sql("ping") @@ -66,5 +78,3 @@ print """# # Admin console should not stall on unknown command. """ admin("show status", simple=True) - -# vim: syntax=python diff --git a/test/box/stat.result b/test/box/stat.result index 579b472652..f234415b26 100644 --- a/test/box/stat.result +++ b/test/box/stat.result @@ -1,34 +1,17 @@ +-- clear statistics +--# stop server default +--# start server default space = box.schema.create_space('tweedledum', { id = 0 }) --- ... space:create_index('primary', 'hash', { parts = { 0, 'num' }}) --- ... -# -# check stat_cleanup -# add several tuples -# - -insert into t0 values (0, 'tuple') -Insert OK, 1 row affected -insert into t0 values (1, 'tuple') -Insert OK, 1 row affected -insert into t0 values (2, 'tuple') -Insert OK, 1 row affected -insert into t0 values (3, 'tuple') -Insert OK, 1 row affected -insert into t0 values (4, 'tuple') -Insert OK, 1 row affected -insert into t0 values (5, 'tuple') -Insert OK, 1 row affected -insert into t0 values (6, 'tuple') -Insert OK, 1 row affected -insert into t0 values (7, 'tuple') -Insert OK, 1 row affected -insert into t0 values (8, 'tuple') -Insert OK, 1 row affected -insert into t0 values (9, 'tuple') -Insert OK, 1 row affected +-- check stat_cleanup +-- add several tuples +for i=1,10 do box.insert(0, i, 'tuple'..tostring(i)) end; +--- +... box.stat() --- - DELETE: @@ -50,14 +33,9 @@ box.stat() total: 0 rps: 0 ... -# -# restart server -# - -# -# statistics must be zero -# - +--# stop server default +--# start server default +-- statistics must be zero box.stat() --- - DELETE: @@ -79,6 +57,7 @@ box.stat() total: 0 rps: 0 ... +-- cleanup box.space[0]:drop() --- ... diff --git a/test/box/stat.test.lua b/test/box/stat.test.lua new file mode 100644 index 0000000000..eb56d58946 --- /dev/null +++ b/test/box/stat.test.lua @@ -0,0 +1,21 @@ +-- clear statistics +--# stop server default +--# start server default + +space = box.schema.create_space('tweedledum', { id = 0 }) +space:create_index('primary', 'hash', { parts = { 0, 'num' }}) + + +-- check stat_cleanup +-- add several tuples +for i=1,10 do box.insert(0, i, 'tuple'..tostring(i)) end; +box.stat() + +--# stop server default +--# start server default + +-- statistics must be zero +box.stat() + +-- cleanup +box.space[0]:drop() diff --git a/test/box/stat.test.py b/test/box/stat.test.py deleted file mode 100644 index ba5235cb33..0000000000 --- a/test/box/stat.test.py +++ /dev/null @@ -1,30 +0,0 @@ -# encoding: utf-8 -# -# clear statistics -server.restart() -admin("space = box.schema.create_space('tweedledum', { id = 0 })") -admin("space:create_index('primary', 'hash', { parts = { 0, 'num' }})") - -print """# -# check stat_cleanup -# add several tuples -# -""" -for i in range(10): - sql("insert into t0 values ({0}, 'tuple')".format(i)) -admin("box.stat()") -print """# -# restart server -# -""" -server.restart() -print """# -# statistics must be zero -# -""" -admin("box.stat()") - -# cleanup -admin("box.space[0]:drop()") - -# vim: syntax=python diff --git a/test/replication/swap.result b/test/replication/swap.result index 6a38bc467a..14fa18be3c 100644 --- a/test/replication/swap.result +++ b/test/replication/swap.result @@ -8,55 +8,85 @@ box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num') ... test 0 iteration insert into t0 values (0, 'tuple 0') -Insert OK, 1 row affected +--- +- [0, u'tuple 0'] +... insert into t0 values (1, 'tuple 1') -Insert OK, 1 row affected +--- +- [1, u'tuple 1'] +... insert into t0 values (2, 'tuple 2') -Insert OK, 1 row affected +--- +- [2, u'tuple 2'] +... insert into t0 values (3, 'tuple 3') -Insert OK, 1 row affected +--- +- [3, u'tuple 3'] +... insert into t0 values (4, 'tuple 4') -Insert OK, 1 row affected +--- +- [4, u'tuple 4'] +... select * from t0 where k0 = 0 -Found 1 tuple: -[0, 'tuple 0'] +--- +- [0, u'tuple 0'] +... select * from t0 where k0 = 1 -Found 1 tuple: -[1, 'tuple 1'] +--- +- [1, u'tuple 1'] +... select * from t0 where k0 = 2 -Found 1 tuple: -[2, 'tuple 2'] +--- +- [2, u'tuple 2'] +... select * from t0 where k0 = 3 -Found 1 tuple: -[3, 'tuple 3'] +--- +- [3, u'tuple 3'] +... select * from t0 where k0 = 4 -Found 1 tuple: -[4, 'tuple 4'] +--- +- [4, u'tuple 4'] +... insert into t0 values (5, 'tuple 5') -Insert OK, 1 row affected +--- +- [5, u'tuple 5'] +... insert into t0 values (6, 'tuple 6') -Insert OK, 1 row affected +--- +- [6, u'tuple 6'] +... insert into t0 values (7, 'tuple 7') -Insert OK, 1 row affected +--- +- [7, u'tuple 7'] +... insert into t0 values (8, 'tuple 8') -Insert OK, 1 row affected +--- +- [8, u'tuple 8'] +... insert into t0 values (9, 'tuple 9') -Insert OK, 1 row affected +--- +- [9, u'tuple 9'] +... select * from t0 where k0 = 5 -Found 1 tuple: -[5, 'tuple 5'] +--- +- [5, u'tuple 5'] +... select * from t0 where k0 = 6 -Found 1 tuple: -[6, 'tuple 6'] +--- +- [6, u'tuple 6'] +... select * from t0 where k0 = 7 -Found 1 tuple: -[7, 'tuple 7'] +--- +- [7, u'tuple 7'] +... select * from t0 where k0 = 8 -Found 1 tuple: -[8, 'tuple 8'] +--- +- [8, u'tuple 8'] +... select * from t0 where k0 = 9 -Found 1 tuple: -[9, 'tuple 9'] +--- +- [9, u'tuple 9'] +... swap servers box.cfg.reload() --- @@ -67,55 +97,85 @@ box.cfg.reload() - ok ... insert into t0 values (10, 'tuple 10') -Insert OK, 1 row affected +--- +- [10, u'tuple 10'] +... insert into t0 values (11, 'tuple 11') -Insert OK, 1 row affected +--- +- [11, u'tuple 11'] +... insert into t0 values (12, 'tuple 12') -Insert OK, 1 row affected +--- +- [12, u'tuple 12'] +... insert into t0 values (13, 'tuple 13') -Insert OK, 1 row affected +--- +- [13, u'tuple 13'] +... insert into t0 values (14, 'tuple 14') -Insert OK, 1 row affected +--- +- [14, u'tuple 14'] +... select * from t0 where k0 = 10 -Found 1 tuple: -[10, 'tuple 10'] +--- +- [10, u'tuple 10'] +... select * from t0 where k0 = 11 -Found 1 tuple: -[11, 'tuple 11'] +--- +- [11, u'tuple 11'] +... select * from t0 where k0 = 12 -Found 1 tuple: -[12, 'tuple 12'] +--- +- [12, u'tuple 12'] +... select * from t0 where k0 = 13 -Found 1 tuple: -[13, 'tuple 13'] +--- +- [13, u'tuple 13'] +... select * from t0 where k0 = 14 -Found 1 tuple: -[14, 'tuple 14'] +--- +- [14, u'tuple 14'] +... insert into t0 values (15, 'tuple 15') -Insert OK, 1 row affected +--- +- [15, u'tuple 15'] +... insert into t0 values (16, 'tuple 16') -Insert OK, 1 row affected +--- +- [16, u'tuple 16'] +... insert into t0 values (17, 'tuple 17') -Insert OK, 1 row affected +--- +- [17, u'tuple 17'] +... insert into t0 values (18, 'tuple 18') -Insert OK, 1 row affected +--- +- [18, u'tuple 18'] +... insert into t0 values (19, 'tuple 19') -Insert OK, 1 row affected +--- +- [19, u'tuple 19'] +... select * from t0 where k0 = 15 -Found 1 tuple: -[15, 'tuple 15'] +--- +- [15, u'tuple 15'] +... select * from t0 where k0 = 16 -Found 1 tuple: -[16, 'tuple 16'] +--- +- [16, u'tuple 16'] +... select * from t0 where k0 = 17 -Found 1 tuple: -[17, 'tuple 17'] +--- +- [17, u'tuple 17'] +... select * from t0 where k0 = 18 -Found 1 tuple: -[18, 'tuple 18'] +--- +- [18, u'tuple 18'] +... select * from t0 where k0 = 19 -Found 1 tuple: -[19, 'tuple 19'] +--- +- [19, u'tuple 19'] +... rollback servers configuration box.cfg.reload() --- @@ -127,55 +187,85 @@ box.cfg.reload() ... test 1 iteration insert into t0 values (20, 'tuple 20') -Insert OK, 1 row affected +--- +- [20, u'tuple 20'] +... insert into t0 values (21, 'tuple 21') -Insert OK, 1 row affected +--- +- [21, u'tuple 21'] +... insert into t0 values (22, 'tuple 22') -Insert OK, 1 row affected +--- +- [22, u'tuple 22'] +... insert into t0 values (23, 'tuple 23') -Insert OK, 1 row affected +--- +- [23, u'tuple 23'] +... insert into t0 values (24, 'tuple 24') -Insert OK, 1 row affected +--- +- [24, u'tuple 24'] +... select * from t0 where k0 = 20 -Found 1 tuple: -[20, 'tuple 20'] +--- +- [20, u'tuple 20'] +... select * from t0 where k0 = 21 -Found 1 tuple: -[21, 'tuple 21'] +--- +- [21, u'tuple 21'] +... select * from t0 where k0 = 22 -Found 1 tuple: -[22, 'tuple 22'] +--- +- [22, u'tuple 22'] +... select * from t0 where k0 = 23 -Found 1 tuple: -[23, 'tuple 23'] +--- +- [23, u'tuple 23'] +... select * from t0 where k0 = 24 -Found 1 tuple: -[24, 'tuple 24'] +--- +- [24, u'tuple 24'] +... insert into t0 values (25, 'tuple 25') -Insert OK, 1 row affected +--- +- [25, u'tuple 25'] +... insert into t0 values (26, 'tuple 26') -Insert OK, 1 row affected +--- +- [26, u'tuple 26'] +... insert into t0 values (27, 'tuple 27') -Insert OK, 1 row affected +--- +- [27, u'tuple 27'] +... insert into t0 values (28, 'tuple 28') -Insert OK, 1 row affected +--- +- [28, u'tuple 28'] +... insert into t0 values (29, 'tuple 29') -Insert OK, 1 row affected +--- +- [29, u'tuple 29'] +... select * from t0 where k0 = 25 -Found 1 tuple: -[25, 'tuple 25'] +--- +- [25, u'tuple 25'] +... select * from t0 where k0 = 26 -Found 1 tuple: -[26, 'tuple 26'] +--- +- [26, u'tuple 26'] +... select * from t0 where k0 = 27 -Found 1 tuple: -[27, 'tuple 27'] +--- +- [27, u'tuple 27'] +... select * from t0 where k0 = 28 -Found 1 tuple: -[28, 'tuple 28'] +--- +- [28, u'tuple 28'] +... select * from t0 where k0 = 29 -Found 1 tuple: -[29, 'tuple 29'] +--- +- [29, u'tuple 29'] +... swap servers box.cfg.reload() --- @@ -186,55 +276,85 @@ box.cfg.reload() - ok ... insert into t0 values (30, 'tuple 30') -Insert OK, 1 row affected +--- +- [30, u'tuple 30'] +... insert into t0 values (31, 'tuple 31') -Insert OK, 1 row affected +--- +- [31, u'tuple 31'] +... insert into t0 values (32, 'tuple 32') -Insert OK, 1 row affected +--- +- [32, u'tuple 32'] +... insert into t0 values (33, 'tuple 33') -Insert OK, 1 row affected +--- +- [33, u'tuple 33'] +... insert into t0 values (34, 'tuple 34') -Insert OK, 1 row affected +--- +- [34, u'tuple 34'] +... select * from t0 where k0 = 30 -Found 1 tuple: -[30, 'tuple 30'] +--- +- [30, u'tuple 30'] +... select * from t0 where k0 = 31 -Found 1 tuple: -[31, 'tuple 31'] +--- +- [31, u'tuple 31'] +... select * from t0 where k0 = 32 -Found 1 tuple: -[32, 'tuple 32'] +--- +- [32, u'tuple 32'] +... select * from t0 where k0 = 33 -Found 1 tuple: -[33, 'tuple 33'] +--- +- [33, u'tuple 33'] +... select * from t0 where k0 = 34 -Found 1 tuple: -[34, 'tuple 34'] +--- +- [34, u'tuple 34'] +... insert into t0 values (35, 'tuple 35') -Insert OK, 1 row affected +--- +- [35, u'tuple 35'] +... insert into t0 values (36, 'tuple 36') -Insert OK, 1 row affected +--- +- [36, u'tuple 36'] +... insert into t0 values (37, 'tuple 37') -Insert OK, 1 row affected +--- +- [37, u'tuple 37'] +... insert into t0 values (38, 'tuple 38') -Insert OK, 1 row affected +--- +- [38, u'tuple 38'] +... insert into t0 values (39, 'tuple 39') -Insert OK, 1 row affected +--- +- [39, u'tuple 39'] +... select * from t0 where k0 = 35 -Found 1 tuple: -[35, 'tuple 35'] +--- +- [35, u'tuple 35'] +... select * from t0 where k0 = 36 -Found 1 tuple: -[36, 'tuple 36'] +--- +- [36, u'tuple 36'] +... select * from t0 where k0 = 37 -Found 1 tuple: -[37, 'tuple 37'] +--- +- [37, u'tuple 37'] +... select * from t0 where k0 = 38 -Found 1 tuple: -[38, 'tuple 38'] +--- +- [38, u'tuple 38'] +... select * from t0 where k0 = 39 -Found 1 tuple: -[39, 'tuple 39'] +--- +- [39, u'tuple 39'] +... rollback servers configuration box.cfg.reload() --- @@ -246,55 +366,85 @@ box.cfg.reload() ... test 2 iteration insert into t0 values (40, 'tuple 40') -Insert OK, 1 row affected +--- +- [40, u'tuple 40'] +... insert into t0 values (41, 'tuple 41') -Insert OK, 1 row affected +--- +- [41, u'tuple 41'] +... insert into t0 values (42, 'tuple 42') -Insert OK, 1 row affected +--- +- [42, u'tuple 42'] +... insert into t0 values (43, 'tuple 43') -Insert OK, 1 row affected +--- +- [43, u'tuple 43'] +... insert into t0 values (44, 'tuple 44') -Insert OK, 1 row affected +--- +- [44, u'tuple 44'] +... select * from t0 where k0 = 40 -Found 1 tuple: -[40, 'tuple 40'] +--- +- [40, u'tuple 40'] +... select * from t0 where k0 = 41 -Found 1 tuple: -[41, 'tuple 41'] +--- +- [41, u'tuple 41'] +... select * from t0 where k0 = 42 -Found 1 tuple: -[42, 'tuple 42'] +--- +- [42, u'tuple 42'] +... select * from t0 where k0 = 43 -Found 1 tuple: -[43, 'tuple 43'] +--- +- [43, u'tuple 43'] +... select * from t0 where k0 = 44 -Found 1 tuple: -[44, 'tuple 44'] +--- +- [44, u'tuple 44'] +... insert into t0 values (45, 'tuple 45') -Insert OK, 1 row affected +--- +- [45, u'tuple 45'] +... insert into t0 values (46, 'tuple 46') -Insert OK, 1 row affected +--- +- [46, u'tuple 46'] +... insert into t0 values (47, 'tuple 47') -Insert OK, 1 row affected +--- +- [47, u'tuple 47'] +... insert into t0 values (48, 'tuple 48') -Insert OK, 1 row affected +--- +- [48, u'tuple 48'] +... insert into t0 values (49, 'tuple 49') -Insert OK, 1 row affected +--- +- [49, u'tuple 49'] +... select * from t0 where k0 = 45 -Found 1 tuple: -[45, 'tuple 45'] +--- +- [45, u'tuple 45'] +... select * from t0 where k0 = 46 -Found 1 tuple: -[46, 'tuple 46'] +--- +- [46, u'tuple 46'] +... select * from t0 where k0 = 47 -Found 1 tuple: -[47, 'tuple 47'] +--- +- [47, u'tuple 47'] +... select * from t0 where k0 = 48 -Found 1 tuple: -[48, 'tuple 48'] +--- +- [48, u'tuple 48'] +... select * from t0 where k0 = 49 -Found 1 tuple: -[49, 'tuple 49'] +--- +- [49, u'tuple 49'] +... swap servers box.cfg.reload() --- @@ -305,55 +455,85 @@ box.cfg.reload() - ok ... insert into t0 values (50, 'tuple 50') -Insert OK, 1 row affected +--- +- [50, u'tuple 50'] +... insert into t0 values (51, 'tuple 51') -Insert OK, 1 row affected +--- +- [51, u'tuple 51'] +... insert into t0 values (52, 'tuple 52') -Insert OK, 1 row affected +--- +- [52, u'tuple 52'] +... insert into t0 values (53, 'tuple 53') -Insert OK, 1 row affected +--- +- [53, u'tuple 53'] +... insert into t0 values (54, 'tuple 54') -Insert OK, 1 row affected +--- +- [54, u'tuple 54'] +... select * from t0 where k0 = 50 -Found 1 tuple: -[50, 'tuple 50'] +--- +- [50, u'tuple 50'] +... select * from t0 where k0 = 51 -Found 1 tuple: -[51, 'tuple 51'] +--- +- [51, u'tuple 51'] +... select * from t0 where k0 = 52 -Found 1 tuple: -[52, 'tuple 52'] +--- +- [52, u'tuple 52'] +... select * from t0 where k0 = 53 -Found 1 tuple: -[53, 'tuple 53'] +--- +- [53, u'tuple 53'] +... select * from t0 where k0 = 54 -Found 1 tuple: -[54, 'tuple 54'] +--- +- [54, u'tuple 54'] +... insert into t0 values (55, 'tuple 55') -Insert OK, 1 row affected +--- +- [55, u'tuple 55'] +... insert into t0 values (56, 'tuple 56') -Insert OK, 1 row affected +--- +- [56, u'tuple 56'] +... insert into t0 values (57, 'tuple 57') -Insert OK, 1 row affected +--- +- [57, u'tuple 57'] +... insert into t0 values (58, 'tuple 58') -Insert OK, 1 row affected +--- +- [58, u'tuple 58'] +... insert into t0 values (59, 'tuple 59') -Insert OK, 1 row affected +--- +- [59, u'tuple 59'] +... select * from t0 where k0 = 55 -Found 1 tuple: -[55, 'tuple 55'] +--- +- [55, u'tuple 55'] +... select * from t0 where k0 = 56 -Found 1 tuple: -[56, 'tuple 56'] +--- +- [56, u'tuple 56'] +... select * from t0 where k0 = 57 -Found 1 tuple: -[57, 'tuple 57'] +--- +- [57, u'tuple 57'] +... select * from t0 where k0 = 58 -Found 1 tuple: -[58, 'tuple 58'] +--- +- [58, u'tuple 58'] +... select * from t0 where k0 = 59 -Found 1 tuple: -[59, 'tuple 59'] +--- +- [59, u'tuple 59'] +... rollback servers configuration box.cfg.reload() --- @@ -365,55 +545,85 @@ box.cfg.reload() ... test 3 iteration insert into t0 values (60, 'tuple 60') -Insert OK, 1 row affected +--- +- [60, u'tuple 60'] +... insert into t0 values (61, 'tuple 61') -Insert OK, 1 row affected +--- +- [61, u'tuple 61'] +... insert into t0 values (62, 'tuple 62') -Insert OK, 1 row affected +--- +- [62, u'tuple 62'] +... insert into t0 values (63, 'tuple 63') -Insert OK, 1 row affected +--- +- [63, u'tuple 63'] +... insert into t0 values (64, 'tuple 64') -Insert OK, 1 row affected +--- +- [64, u'tuple 64'] +... select * from t0 where k0 = 60 -Found 1 tuple: -[60, 'tuple 60'] +--- +- [60, u'tuple 60'] +... select * from t0 where k0 = 61 -Found 1 tuple: -[61, 'tuple 61'] +--- +- [61, u'tuple 61'] +... select * from t0 where k0 = 62 -Found 1 tuple: -[62, 'tuple 62'] +--- +- [62, u'tuple 62'] +... select * from t0 where k0 = 63 -Found 1 tuple: -[63, 'tuple 63'] +--- +- [63, u'tuple 63'] +... select * from t0 where k0 = 64 -Found 1 tuple: -[64, 'tuple 64'] +--- +- [64, u'tuple 64'] +... insert into t0 values (65, 'tuple 65') -Insert OK, 1 row affected +--- +- [65, u'tuple 65'] +... insert into t0 values (66, 'tuple 66') -Insert OK, 1 row affected +--- +- [66, u'tuple 66'] +... insert into t0 values (67, 'tuple 67') -Insert OK, 1 row affected +--- +- [67, u'tuple 67'] +... insert into t0 values (68, 'tuple 68') -Insert OK, 1 row affected +--- +- [68, u'tuple 68'] +... insert into t0 values (69, 'tuple 69') -Insert OK, 1 row affected +--- +- [69, u'tuple 69'] +... select * from t0 where k0 = 65 -Found 1 tuple: -[65, 'tuple 65'] +--- +- [65, u'tuple 65'] +... select * from t0 where k0 = 66 -Found 1 tuple: -[66, 'tuple 66'] +--- +- [66, u'tuple 66'] +... select * from t0 where k0 = 67 -Found 1 tuple: -[67, 'tuple 67'] +--- +- [67, u'tuple 67'] +... select * from t0 where k0 = 68 -Found 1 tuple: -[68, 'tuple 68'] +--- +- [68, u'tuple 68'] +... select * from t0 where k0 = 69 -Found 1 tuple: -[69, 'tuple 69'] +--- +- [69, u'tuple 69'] +... swap servers box.cfg.reload() --- @@ -424,55 +634,85 @@ box.cfg.reload() - ok ... insert into t0 values (70, 'tuple 70') -Insert OK, 1 row affected +--- +- [70, u'tuple 70'] +... insert into t0 values (71, 'tuple 71') -Insert OK, 1 row affected +--- +- [71, u'tuple 71'] +... insert into t0 values (72, 'tuple 72') -Insert OK, 1 row affected +--- +- [72, u'tuple 72'] +... insert into t0 values (73, 'tuple 73') -Insert OK, 1 row affected +--- +- [73, u'tuple 73'] +... insert into t0 values (74, 'tuple 74') -Insert OK, 1 row affected +--- +- [74, u'tuple 74'] +... select * from t0 where k0 = 70 -Found 1 tuple: -[70, 'tuple 70'] +--- +- [70, u'tuple 70'] +... select * from t0 where k0 = 71 -Found 1 tuple: -[71, 'tuple 71'] +--- +- [71, u'tuple 71'] +... select * from t0 where k0 = 72 -Found 1 tuple: -[72, 'tuple 72'] +--- +- [72, u'tuple 72'] +... select * from t0 where k0 = 73 -Found 1 tuple: -[73, 'tuple 73'] +--- +- [73, u'tuple 73'] +... select * from t0 where k0 = 74 -Found 1 tuple: -[74, 'tuple 74'] +--- +- [74, u'tuple 74'] +... insert into t0 values (75, 'tuple 75') -Insert OK, 1 row affected +--- +- [75, u'tuple 75'] +... insert into t0 values (76, 'tuple 76') -Insert OK, 1 row affected +--- +- [76, u'tuple 76'] +... insert into t0 values (77, 'tuple 77') -Insert OK, 1 row affected +--- +- [77, u'tuple 77'] +... insert into t0 values (78, 'tuple 78') -Insert OK, 1 row affected +--- +- [78, u'tuple 78'] +... insert into t0 values (79, 'tuple 79') -Insert OK, 1 row affected +--- +- [79, u'tuple 79'] +... select * from t0 where k0 = 75 -Found 1 tuple: -[75, 'tuple 75'] +--- +- [75, u'tuple 75'] +... select * from t0 where k0 = 76 -Found 1 tuple: -[76, 'tuple 76'] +--- +- [76, u'tuple 76'] +... select * from t0 where k0 = 77 -Found 1 tuple: -[77, 'tuple 77'] +--- +- [77, u'tuple 77'] +... select * from t0 where k0 = 78 -Found 1 tuple: -[78, 'tuple 78'] +--- +- [78, u'tuple 78'] +... select * from t0 where k0 = 79 -Found 1 tuple: -[79, 'tuple 79'] +--- +- [79, u'tuple 79'] +... rollback servers configuration box.cfg.reload() --- @@ -484,55 +724,85 @@ box.cfg.reload() ... test 4 iteration insert into t0 values (80, 'tuple 80') -Insert OK, 1 row affected +--- +- [80, u'tuple 80'] +... insert into t0 values (81, 'tuple 81') -Insert OK, 1 row affected +--- +- [81, u'tuple 81'] +... insert into t0 values (82, 'tuple 82') -Insert OK, 1 row affected +--- +- [82, u'tuple 82'] +... insert into t0 values (83, 'tuple 83') -Insert OK, 1 row affected +--- +- [83, u'tuple 83'] +... insert into t0 values (84, 'tuple 84') -Insert OK, 1 row affected +--- +- [84, u'tuple 84'] +... select * from t0 where k0 = 80 -Found 1 tuple: -[80, 'tuple 80'] +--- +- [80, u'tuple 80'] +... select * from t0 where k0 = 81 -Found 1 tuple: -[81, 'tuple 81'] +--- +- [81, u'tuple 81'] +... select * from t0 where k0 = 82 -Found 1 tuple: -[82, 'tuple 82'] +--- +- [82, u'tuple 82'] +... select * from t0 where k0 = 83 -Found 1 tuple: -[83, 'tuple 83'] +--- +- [83, u'tuple 83'] +... select * from t0 where k0 = 84 -Found 1 tuple: -[84, 'tuple 84'] +--- +- [84, u'tuple 84'] +... insert into t0 values (85, 'tuple 85') -Insert OK, 1 row affected +--- +- [85, u'tuple 85'] +... insert into t0 values (86, 'tuple 86') -Insert OK, 1 row affected +--- +- [86, u'tuple 86'] +... insert into t0 values (87, 'tuple 87') -Insert OK, 1 row affected +--- +- [87, u'tuple 87'] +... insert into t0 values (88, 'tuple 88') -Insert OK, 1 row affected +--- +- [88, u'tuple 88'] +... insert into t0 values (89, 'tuple 89') -Insert OK, 1 row affected +--- +- [89, u'tuple 89'] +... select * from t0 where k0 = 85 -Found 1 tuple: -[85, 'tuple 85'] +--- +- [85, u'tuple 85'] +... select * from t0 where k0 = 86 -Found 1 tuple: -[86, 'tuple 86'] +--- +- [86, u'tuple 86'] +... select * from t0 where k0 = 87 -Found 1 tuple: -[87, 'tuple 87'] +--- +- [87, u'tuple 87'] +... select * from t0 where k0 = 88 -Found 1 tuple: -[88, 'tuple 88'] +--- +- [88, u'tuple 88'] +... select * from t0 where k0 = 89 -Found 1 tuple: -[89, 'tuple 89'] +--- +- [89, u'tuple 89'] +... swap servers box.cfg.reload() --- @@ -543,55 +813,85 @@ box.cfg.reload() - ok ... insert into t0 values (90, 'tuple 90') -Insert OK, 1 row affected +--- +- [90, u'tuple 90'] +... insert into t0 values (91, 'tuple 91') -Insert OK, 1 row affected +--- +- [91, u'tuple 91'] +... insert into t0 values (92, 'tuple 92') -Insert OK, 1 row affected +--- +- [92, u'tuple 92'] +... insert into t0 values (93, 'tuple 93') -Insert OK, 1 row affected +--- +- [93, u'tuple 93'] +... insert into t0 values (94, 'tuple 94') -Insert OK, 1 row affected +--- +- [94, u'tuple 94'] +... select * from t0 where k0 = 90 -Found 1 tuple: -[90, 'tuple 90'] +--- +- [90, u'tuple 90'] +... select * from t0 where k0 = 91 -Found 1 tuple: -[91, 'tuple 91'] +--- +- [91, u'tuple 91'] +... select * from t0 where k0 = 92 -Found 1 tuple: -[92, 'tuple 92'] +--- +- [92, u'tuple 92'] +... select * from t0 where k0 = 93 -Found 1 tuple: -[93, 'tuple 93'] +--- +- [93, u'tuple 93'] +... select * from t0 where k0 = 94 -Found 1 tuple: -[94, 'tuple 94'] +--- +- [94, u'tuple 94'] +... insert into t0 values (95, 'tuple 95') -Insert OK, 1 row affected +--- +- [95, u'tuple 95'] +... insert into t0 values (96, 'tuple 96') -Insert OK, 1 row affected +--- +- [96, u'tuple 96'] +... insert into t0 values (97, 'tuple 97') -Insert OK, 1 row affected +--- +- [97, u'tuple 97'] +... insert into t0 values (98, 'tuple 98') -Insert OK, 1 row affected +--- +- [98, u'tuple 98'] +... insert into t0 values (99, 'tuple 99') -Insert OK, 1 row affected +--- +- [99, u'tuple 99'] +... select * from t0 where k0 = 95 -Found 1 tuple: -[95, 'tuple 95'] +--- +- [95, u'tuple 95'] +... select * from t0 where k0 = 96 -Found 1 tuple: -[96, 'tuple 96'] +--- +- [96, u'tuple 96'] +... select * from t0 where k0 = 97 -Found 1 tuple: -[97, 'tuple 97'] +--- +- [97, u'tuple 97'] +... select * from t0 where k0 = 98 -Found 1 tuple: -[98, 'tuple 98'] +--- +- [98, u'tuple 98'] +... select * from t0 where k0 = 99 -Found 1 tuple: -[99, 'tuple 99'] +--- +- [99, u'tuple 99'] +... rollback servers configuration box.cfg.reload() --- @@ -603,55 +903,85 @@ box.cfg.reload() ... test 5 iteration insert into t0 values (100, 'tuple 100') -Insert OK, 1 row affected +--- +- [100, u'tuple 100'] +... insert into t0 values (101, 'tuple 101') -Insert OK, 1 row affected +--- +- [101, u'tuple 101'] +... insert into t0 values (102, 'tuple 102') -Insert OK, 1 row affected +--- +- [102, u'tuple 102'] +... insert into t0 values (103, 'tuple 103') -Insert OK, 1 row affected +--- +- [103, u'tuple 103'] +... insert into t0 values (104, 'tuple 104') -Insert OK, 1 row affected +--- +- [104, u'tuple 104'] +... select * from t0 where k0 = 100 -Found 1 tuple: -[100, 'tuple 100'] +--- +- [100, u'tuple 100'] +... select * from t0 where k0 = 101 -Found 1 tuple: -[101, 'tuple 101'] +--- +- [101, u'tuple 101'] +... select * from t0 where k0 = 102 -Found 1 tuple: -[102, 'tuple 102'] +--- +- [102, u'tuple 102'] +... select * from t0 where k0 = 103 -Found 1 tuple: -[103, 'tuple 103'] +--- +- [103, u'tuple 103'] +... select * from t0 where k0 = 104 -Found 1 tuple: -[104, 'tuple 104'] +--- +- [104, u'tuple 104'] +... insert into t0 values (105, 'tuple 105') -Insert OK, 1 row affected +--- +- [105, u'tuple 105'] +... insert into t0 values (106, 'tuple 106') -Insert OK, 1 row affected +--- +- [106, u'tuple 106'] +... insert into t0 values (107, 'tuple 107') -Insert OK, 1 row affected +--- +- [107, u'tuple 107'] +... insert into t0 values (108, 'tuple 108') -Insert OK, 1 row affected +--- +- [108, u'tuple 108'] +... insert into t0 values (109, 'tuple 109') -Insert OK, 1 row affected +--- +- [109, u'tuple 109'] +... select * from t0 where k0 = 105 -Found 1 tuple: -[105, 'tuple 105'] +--- +- [105, u'tuple 105'] +... select * from t0 where k0 = 106 -Found 1 tuple: -[106, 'tuple 106'] +--- +- [106, u'tuple 106'] +... select * from t0 where k0 = 107 -Found 1 tuple: -[107, 'tuple 107'] +--- +- [107, u'tuple 107'] +... select * from t0 where k0 = 108 -Found 1 tuple: -[108, 'tuple 108'] +--- +- [108, u'tuple 108'] +... select * from t0 where k0 = 109 -Found 1 tuple: -[109, 'tuple 109'] +--- +- [109, u'tuple 109'] +... swap servers box.cfg.reload() --- @@ -662,55 +992,85 @@ box.cfg.reload() - ok ... insert into t0 values (110, 'tuple 110') -Insert OK, 1 row affected +--- +- [110, u'tuple 110'] +... insert into t0 values (111, 'tuple 111') -Insert OK, 1 row affected +--- +- [111, u'tuple 111'] +... insert into t0 values (112, 'tuple 112') -Insert OK, 1 row affected +--- +- [112, u'tuple 112'] +... insert into t0 values (113, 'tuple 113') -Insert OK, 1 row affected +--- +- [113, u'tuple 113'] +... insert into t0 values (114, 'tuple 114') -Insert OK, 1 row affected +--- +- [114, u'tuple 114'] +... select * from t0 where k0 = 110 -Found 1 tuple: -[110, 'tuple 110'] +--- +- [110, u'tuple 110'] +... select * from t0 where k0 = 111 -Found 1 tuple: -[111, 'tuple 111'] +--- +- [111, u'tuple 111'] +... select * from t0 where k0 = 112 -Found 1 tuple: -[112, 'tuple 112'] +--- +- [112, u'tuple 112'] +... select * from t0 where k0 = 113 -Found 1 tuple: -[113, 'tuple 113'] +--- +- [113, u'tuple 113'] +... select * from t0 where k0 = 114 -Found 1 tuple: -[114, 'tuple 114'] +--- +- [114, u'tuple 114'] +... insert into t0 values (115, 'tuple 115') -Insert OK, 1 row affected +--- +- [115, u'tuple 115'] +... insert into t0 values (116, 'tuple 116') -Insert OK, 1 row affected +--- +- [116, u'tuple 116'] +... insert into t0 values (117, 'tuple 117') -Insert OK, 1 row affected +--- +- [117, u'tuple 117'] +... insert into t0 values (118, 'tuple 118') -Insert OK, 1 row affected +--- +- [118, u'tuple 118'] +... insert into t0 values (119, 'tuple 119') -Insert OK, 1 row affected +--- +- [119, u'tuple 119'] +... select * from t0 where k0 = 115 -Found 1 tuple: -[115, 'tuple 115'] +--- +- [115, u'tuple 115'] +... select * from t0 where k0 = 116 -Found 1 tuple: -[116, 'tuple 116'] +--- +- [116, u'tuple 116'] +... select * from t0 where k0 = 117 -Found 1 tuple: -[117, 'tuple 117'] +--- +- [117, u'tuple 117'] +... select * from t0 where k0 = 118 -Found 1 tuple: -[118, 'tuple 118'] +--- +- [118, u'tuple 118'] +... select * from t0 where k0 = 119 -Found 1 tuple: -[119, 'tuple 119'] +--- +- [119, u'tuple 119'] +... rollback servers configuration box.cfg.reload() --- @@ -722,55 +1082,85 @@ box.cfg.reload() ... test 6 iteration insert into t0 values (120, 'tuple 120') -Insert OK, 1 row affected +--- +- [120, u'tuple 120'] +... insert into t0 values (121, 'tuple 121') -Insert OK, 1 row affected +--- +- [121, u'tuple 121'] +... insert into t0 values (122, 'tuple 122') -Insert OK, 1 row affected +--- +- [122, u'tuple 122'] +... insert into t0 values (123, 'tuple 123') -Insert OK, 1 row affected +--- +- [123, u'tuple 123'] +... insert into t0 values (124, 'tuple 124') -Insert OK, 1 row affected +--- +- [124, u'tuple 124'] +... select * from t0 where k0 = 120 -Found 1 tuple: -[120, 'tuple 120'] +--- +- [120, u'tuple 120'] +... select * from t0 where k0 = 121 -Found 1 tuple: -[121, 'tuple 121'] +--- +- [121, u'tuple 121'] +... select * from t0 where k0 = 122 -Found 1 tuple: -[122, 'tuple 122'] +--- +- [122, u'tuple 122'] +... select * from t0 where k0 = 123 -Found 1 tuple: -[123, 'tuple 123'] +--- +- [123, u'tuple 123'] +... select * from t0 where k0 = 124 -Found 1 tuple: -[124, 'tuple 124'] +--- +- [124, u'tuple 124'] +... insert into t0 values (125, 'tuple 125') -Insert OK, 1 row affected +--- +- [125, u'tuple 125'] +... insert into t0 values (126, 'tuple 126') -Insert OK, 1 row affected +--- +- [126, u'tuple 126'] +... insert into t0 values (127, 'tuple 127') -Insert OK, 1 row affected +--- +- [127, u'tuple 127'] +... insert into t0 values (128, 'tuple 128') -Insert OK, 1 row affected +--- +- [128, u'tuple 128'] +... insert into t0 values (129, 'tuple 129') -Insert OK, 1 row affected +--- +- [129, u'tuple 129'] +... select * from t0 where k0 = 125 -Found 1 tuple: -[125, 'tuple 125'] +--- +- [125, u'tuple 125'] +... select * from t0 where k0 = 126 -Found 1 tuple: -[126, 'tuple 126'] +--- +- [126, u'tuple 126'] +... select * from t0 where k0 = 127 -Found 1 tuple: -[127, 'tuple 127'] +--- +- [127, u'tuple 127'] +... select * from t0 where k0 = 128 -Found 1 tuple: -[128, 'tuple 128'] +--- +- [128, u'tuple 128'] +... select * from t0 where k0 = 129 -Found 1 tuple: -[129, 'tuple 129'] +--- +- [129, u'tuple 129'] +... swap servers box.cfg.reload() --- @@ -781,55 +1171,85 @@ box.cfg.reload() - ok ... insert into t0 values (130, 'tuple 130') -Insert OK, 1 row affected +--- +- [130, u'tuple 130'] +... insert into t0 values (131, 'tuple 131') -Insert OK, 1 row affected +--- +- [131, u'tuple 131'] +... insert into t0 values (132, 'tuple 132') -Insert OK, 1 row affected +--- +- [132, u'tuple 132'] +... insert into t0 values (133, 'tuple 133') -Insert OK, 1 row affected +--- +- [133, u'tuple 133'] +... insert into t0 values (134, 'tuple 134') -Insert OK, 1 row affected +--- +- [134, u'tuple 134'] +... select * from t0 where k0 = 130 -Found 1 tuple: -[130, 'tuple 130'] +--- +- [130, u'tuple 130'] +... select * from t0 where k0 = 131 -Found 1 tuple: -[131, 'tuple 131'] +--- +- [131, u'tuple 131'] +... select * from t0 where k0 = 132 -Found 1 tuple: -[132, 'tuple 132'] +--- +- [132, u'tuple 132'] +... select * from t0 where k0 = 133 -Found 1 tuple: -[133, 'tuple 133'] +--- +- [133, u'tuple 133'] +... select * from t0 where k0 = 134 -Found 1 tuple: -[134, 'tuple 134'] +--- +- [134, u'tuple 134'] +... insert into t0 values (135, 'tuple 135') -Insert OK, 1 row affected +--- +- [135, u'tuple 135'] +... insert into t0 values (136, 'tuple 136') -Insert OK, 1 row affected +--- +- [136, u'tuple 136'] +... insert into t0 values (137, 'tuple 137') -Insert OK, 1 row affected +--- +- [137, u'tuple 137'] +... insert into t0 values (138, 'tuple 138') -Insert OK, 1 row affected +--- +- [138, u'tuple 138'] +... insert into t0 values (139, 'tuple 139') -Insert OK, 1 row affected +--- +- [139, u'tuple 139'] +... select * from t0 where k0 = 135 -Found 1 tuple: -[135, 'tuple 135'] +--- +- [135, u'tuple 135'] +... select * from t0 where k0 = 136 -Found 1 tuple: -[136, 'tuple 136'] +--- +- [136, u'tuple 136'] +... select * from t0 where k0 = 137 -Found 1 tuple: -[137, 'tuple 137'] +--- +- [137, u'tuple 137'] +... select * from t0 where k0 = 138 -Found 1 tuple: -[138, 'tuple 138'] +--- +- [138, u'tuple 138'] +... select * from t0 where k0 = 139 -Found 1 tuple: -[139, 'tuple 139'] +--- +- [139, u'tuple 139'] +... rollback servers configuration box.cfg.reload() --- @@ -841,55 +1261,85 @@ box.cfg.reload() ... test 7 iteration insert into t0 values (140, 'tuple 140') -Insert OK, 1 row affected +--- +- [140, u'tuple 140'] +... insert into t0 values (141, 'tuple 141') -Insert OK, 1 row affected +--- +- [141, u'tuple 141'] +... insert into t0 values (142, 'tuple 142') -Insert OK, 1 row affected +--- +- [142, u'tuple 142'] +... insert into t0 values (143, 'tuple 143') -Insert OK, 1 row affected +--- +- [143, u'tuple 143'] +... insert into t0 values (144, 'tuple 144') -Insert OK, 1 row affected +--- +- [144, u'tuple 144'] +... select * from t0 where k0 = 140 -Found 1 tuple: -[140, 'tuple 140'] +--- +- [140, u'tuple 140'] +... select * from t0 where k0 = 141 -Found 1 tuple: -[141, 'tuple 141'] +--- +- [141, u'tuple 141'] +... select * from t0 where k0 = 142 -Found 1 tuple: -[142, 'tuple 142'] +--- +- [142, u'tuple 142'] +... select * from t0 where k0 = 143 -Found 1 tuple: -[143, 'tuple 143'] +--- +- [143, u'tuple 143'] +... select * from t0 where k0 = 144 -Found 1 tuple: -[144, 'tuple 144'] +--- +- [144, u'tuple 144'] +... insert into t0 values (145, 'tuple 145') -Insert OK, 1 row affected +--- +- [145, u'tuple 145'] +... insert into t0 values (146, 'tuple 146') -Insert OK, 1 row affected +--- +- [146, u'tuple 146'] +... insert into t0 values (147, 'tuple 147') -Insert OK, 1 row affected +--- +- [147, u'tuple 147'] +... insert into t0 values (148, 'tuple 148') -Insert OK, 1 row affected +--- +- [148, u'tuple 148'] +... insert into t0 values (149, 'tuple 149') -Insert OK, 1 row affected +--- +- [149, u'tuple 149'] +... select * from t0 where k0 = 145 -Found 1 tuple: -[145, 'tuple 145'] +--- +- [145, u'tuple 145'] +... select * from t0 where k0 = 146 -Found 1 tuple: -[146, 'tuple 146'] +--- +- [146, u'tuple 146'] +... select * from t0 where k0 = 147 -Found 1 tuple: -[147, 'tuple 147'] +--- +- [147, u'tuple 147'] +... select * from t0 where k0 = 148 -Found 1 tuple: -[148, 'tuple 148'] +--- +- [148, u'tuple 148'] +... select * from t0 where k0 = 149 -Found 1 tuple: -[149, 'tuple 149'] +--- +- [149, u'tuple 149'] +... swap servers box.cfg.reload() --- @@ -900,55 +1350,85 @@ box.cfg.reload() - ok ... insert into t0 values (150, 'tuple 150') -Insert OK, 1 row affected +--- +- [150, u'tuple 150'] +... insert into t0 values (151, 'tuple 151') -Insert OK, 1 row affected +--- +- [151, u'tuple 151'] +... insert into t0 values (152, 'tuple 152') -Insert OK, 1 row affected +--- +- [152, u'tuple 152'] +... insert into t0 values (153, 'tuple 153') -Insert OK, 1 row affected +--- +- [153, u'tuple 153'] +... insert into t0 values (154, 'tuple 154') -Insert OK, 1 row affected +--- +- [154, u'tuple 154'] +... select * from t0 where k0 = 150 -Found 1 tuple: -[150, 'tuple 150'] +--- +- [150, u'tuple 150'] +... select * from t0 where k0 = 151 -Found 1 tuple: -[151, 'tuple 151'] +--- +- [151, u'tuple 151'] +... select * from t0 where k0 = 152 -Found 1 tuple: -[152, 'tuple 152'] +--- +- [152, u'tuple 152'] +... select * from t0 where k0 = 153 -Found 1 tuple: -[153, 'tuple 153'] +--- +- [153, u'tuple 153'] +... select * from t0 where k0 = 154 -Found 1 tuple: -[154, 'tuple 154'] +--- +- [154, u'tuple 154'] +... insert into t0 values (155, 'tuple 155') -Insert OK, 1 row affected +--- +- [155, u'tuple 155'] +... insert into t0 values (156, 'tuple 156') -Insert OK, 1 row affected +--- +- [156, u'tuple 156'] +... insert into t0 values (157, 'tuple 157') -Insert OK, 1 row affected +--- +- [157, u'tuple 157'] +... insert into t0 values (158, 'tuple 158') -Insert OK, 1 row affected +--- +- [158, u'tuple 158'] +... insert into t0 values (159, 'tuple 159') -Insert OK, 1 row affected +--- +- [159, u'tuple 159'] +... select * from t0 where k0 = 155 -Found 1 tuple: -[155, 'tuple 155'] +--- +- [155, u'tuple 155'] +... select * from t0 where k0 = 156 -Found 1 tuple: -[156, 'tuple 156'] +--- +- [156, u'tuple 156'] +... select * from t0 where k0 = 157 -Found 1 tuple: -[157, 'tuple 157'] +--- +- [157, u'tuple 157'] +... select * from t0 where k0 = 158 -Found 1 tuple: -[158, 'tuple 158'] +--- +- [158, u'tuple 158'] +... select * from t0 where k0 = 159 -Found 1 tuple: -[159, 'tuple 159'] +--- +- [159, u'tuple 159'] +... rollback servers configuration box.cfg.reload() --- @@ -960,55 +1440,85 @@ box.cfg.reload() ... test 8 iteration insert into t0 values (160, 'tuple 160') -Insert OK, 1 row affected +--- +- [160, u'tuple 160'] +... insert into t0 values (161, 'tuple 161') -Insert OK, 1 row affected +--- +- [161, u'tuple 161'] +... insert into t0 values (162, 'tuple 162') -Insert OK, 1 row affected +--- +- [162, u'tuple 162'] +... insert into t0 values (163, 'tuple 163') -Insert OK, 1 row affected +--- +- [163, u'tuple 163'] +... insert into t0 values (164, 'tuple 164') -Insert OK, 1 row affected +--- +- [164, u'tuple 164'] +... select * from t0 where k0 = 160 -Found 1 tuple: -[160, 'tuple 160'] +--- +- [160, u'tuple 160'] +... select * from t0 where k0 = 161 -Found 1 tuple: -[161, 'tuple 161'] +--- +- [161, u'tuple 161'] +... select * from t0 where k0 = 162 -Found 1 tuple: -[162, 'tuple 162'] +--- +- [162, u'tuple 162'] +... select * from t0 where k0 = 163 -Found 1 tuple: -[163, 'tuple 163'] +--- +- [163, u'tuple 163'] +... select * from t0 where k0 = 164 -Found 1 tuple: -[164, 'tuple 164'] +--- +- [164, u'tuple 164'] +... insert into t0 values (165, 'tuple 165') -Insert OK, 1 row affected +--- +- [165, u'tuple 165'] +... insert into t0 values (166, 'tuple 166') -Insert OK, 1 row affected +--- +- [166, u'tuple 166'] +... insert into t0 values (167, 'tuple 167') -Insert OK, 1 row affected +--- +- [167, u'tuple 167'] +... insert into t0 values (168, 'tuple 168') -Insert OK, 1 row affected +--- +- [168, u'tuple 168'] +... insert into t0 values (169, 'tuple 169') -Insert OK, 1 row affected +--- +- [169, u'tuple 169'] +... select * from t0 where k0 = 165 -Found 1 tuple: -[165, 'tuple 165'] +--- +- [165, u'tuple 165'] +... select * from t0 where k0 = 166 -Found 1 tuple: -[166, 'tuple 166'] +--- +- [166, u'tuple 166'] +... select * from t0 where k0 = 167 -Found 1 tuple: -[167, 'tuple 167'] +--- +- [167, u'tuple 167'] +... select * from t0 where k0 = 168 -Found 1 tuple: -[168, 'tuple 168'] +--- +- [168, u'tuple 168'] +... select * from t0 where k0 = 169 -Found 1 tuple: -[169, 'tuple 169'] +--- +- [169, u'tuple 169'] +... swap servers box.cfg.reload() --- @@ -1019,55 +1529,85 @@ box.cfg.reload() - ok ... insert into t0 values (170, 'tuple 170') -Insert OK, 1 row affected +--- +- [170, u'tuple 170'] +... insert into t0 values (171, 'tuple 171') -Insert OK, 1 row affected +--- +- [171, u'tuple 171'] +... insert into t0 values (172, 'tuple 172') -Insert OK, 1 row affected +--- +- [172, u'tuple 172'] +... insert into t0 values (173, 'tuple 173') -Insert OK, 1 row affected +--- +- [173, u'tuple 173'] +... insert into t0 values (174, 'tuple 174') -Insert OK, 1 row affected +--- +- [174, u'tuple 174'] +... select * from t0 where k0 = 170 -Found 1 tuple: -[170, 'tuple 170'] +--- +- [170, u'tuple 170'] +... select * from t0 where k0 = 171 -Found 1 tuple: -[171, 'tuple 171'] +--- +- [171, u'tuple 171'] +... select * from t0 where k0 = 172 -Found 1 tuple: -[172, 'tuple 172'] +--- +- [172, u'tuple 172'] +... select * from t0 where k0 = 173 -Found 1 tuple: -[173, 'tuple 173'] +--- +- [173, u'tuple 173'] +... select * from t0 where k0 = 174 -Found 1 tuple: -[174, 'tuple 174'] +--- +- [174, u'tuple 174'] +... insert into t0 values (175, 'tuple 175') -Insert OK, 1 row affected +--- +- [175, u'tuple 175'] +... insert into t0 values (176, 'tuple 176') -Insert OK, 1 row affected +--- +- [176, u'tuple 176'] +... insert into t0 values (177, 'tuple 177') -Insert OK, 1 row affected +--- +- [177, u'tuple 177'] +... insert into t0 values (178, 'tuple 178') -Insert OK, 1 row affected +--- +- [178, u'tuple 178'] +... insert into t0 values (179, 'tuple 179') -Insert OK, 1 row affected +--- +- [179, u'tuple 179'] +... select * from t0 where k0 = 175 -Found 1 tuple: -[175, 'tuple 175'] +--- +- [175, u'tuple 175'] +... select * from t0 where k0 = 176 -Found 1 tuple: -[176, 'tuple 176'] +--- +- [176, u'tuple 176'] +... select * from t0 where k0 = 177 -Found 1 tuple: -[177, 'tuple 177'] +--- +- [177, u'tuple 177'] +... select * from t0 where k0 = 178 -Found 1 tuple: -[178, 'tuple 178'] +--- +- [178, u'tuple 178'] +... select * from t0 where k0 = 179 -Found 1 tuple: -[179, 'tuple 179'] +--- +- [179, u'tuple 179'] +... rollback servers configuration box.cfg.reload() --- @@ -1079,55 +1619,85 @@ box.cfg.reload() ... test 9 iteration insert into t0 values (180, 'tuple 180') -Insert OK, 1 row affected +--- +- [180, u'tuple 180'] +... insert into t0 values (181, 'tuple 181') -Insert OK, 1 row affected +--- +- [181, u'tuple 181'] +... insert into t0 values (182, 'tuple 182') -Insert OK, 1 row affected +--- +- [182, u'tuple 182'] +... insert into t0 values (183, 'tuple 183') -Insert OK, 1 row affected +--- +- [183, u'tuple 183'] +... insert into t0 values (184, 'tuple 184') -Insert OK, 1 row affected +--- +- [184, u'tuple 184'] +... select * from t0 where k0 = 180 -Found 1 tuple: -[180, 'tuple 180'] +--- +- [180, u'tuple 180'] +... select * from t0 where k0 = 181 -Found 1 tuple: -[181, 'tuple 181'] +--- +- [181, u'tuple 181'] +... select * from t0 where k0 = 182 -Found 1 tuple: -[182, 'tuple 182'] +--- +- [182, u'tuple 182'] +... select * from t0 where k0 = 183 -Found 1 tuple: -[183, 'tuple 183'] +--- +- [183, u'tuple 183'] +... select * from t0 where k0 = 184 -Found 1 tuple: -[184, 'tuple 184'] +--- +- [184, u'tuple 184'] +... insert into t0 values (185, 'tuple 185') -Insert OK, 1 row affected +--- +- [185, u'tuple 185'] +... insert into t0 values (186, 'tuple 186') -Insert OK, 1 row affected +--- +- [186, u'tuple 186'] +... insert into t0 values (187, 'tuple 187') -Insert OK, 1 row affected +--- +- [187, u'tuple 187'] +... insert into t0 values (188, 'tuple 188') -Insert OK, 1 row affected +--- +- [188, u'tuple 188'] +... insert into t0 values (189, 'tuple 189') -Insert OK, 1 row affected +--- +- [189, u'tuple 189'] +... select * from t0 where k0 = 185 -Found 1 tuple: -[185, 'tuple 185'] +--- +- [185, u'tuple 185'] +... select * from t0 where k0 = 186 -Found 1 tuple: -[186, 'tuple 186'] +--- +- [186, u'tuple 186'] +... select * from t0 where k0 = 187 -Found 1 tuple: -[187, 'tuple 187'] +--- +- [187, u'tuple 187'] +... select * from t0 where k0 = 188 -Found 1 tuple: -[188, 'tuple 188'] +--- +- [188, u'tuple 188'] +... select * from t0 where k0 = 189 -Found 1 tuple: -[189, 'tuple 189'] +--- +- [189, u'tuple 189'] +... swap servers box.cfg.reload() --- @@ -1138,55 +1708,85 @@ box.cfg.reload() - ok ... insert into t0 values (190, 'tuple 190') -Insert OK, 1 row affected +--- +- [190, u'tuple 190'] +... insert into t0 values (191, 'tuple 191') -Insert OK, 1 row affected +--- +- [191, u'tuple 191'] +... insert into t0 values (192, 'tuple 192') -Insert OK, 1 row affected +--- +- [192, u'tuple 192'] +... insert into t0 values (193, 'tuple 193') -Insert OK, 1 row affected +--- +- [193, u'tuple 193'] +... insert into t0 values (194, 'tuple 194') -Insert OK, 1 row affected +--- +- [194, u'tuple 194'] +... select * from t0 where k0 = 190 -Found 1 tuple: -[190, 'tuple 190'] +--- +- [190, u'tuple 190'] +... select * from t0 where k0 = 191 -Found 1 tuple: -[191, 'tuple 191'] +--- +- [191, u'tuple 191'] +... select * from t0 where k0 = 192 -Found 1 tuple: -[192, 'tuple 192'] +--- +- [192, u'tuple 192'] +... select * from t0 where k0 = 193 -Found 1 tuple: -[193, 'tuple 193'] +--- +- [193, u'tuple 193'] +... select * from t0 where k0 = 194 -Found 1 tuple: -[194, 'tuple 194'] +--- +- [194, u'tuple 194'] +... insert into t0 values (195, 'tuple 195') -Insert OK, 1 row affected +--- +- [195, u'tuple 195'] +... insert into t0 values (196, 'tuple 196') -Insert OK, 1 row affected +--- +- [196, u'tuple 196'] +... insert into t0 values (197, 'tuple 197') -Insert OK, 1 row affected +--- +- [197, u'tuple 197'] +... insert into t0 values (198, 'tuple 198') -Insert OK, 1 row affected +--- +- [198, u'tuple 198'] +... insert into t0 values (199, 'tuple 199') -Insert OK, 1 row affected +--- +- [199, u'tuple 199'] +... select * from t0 where k0 = 195 -Found 1 tuple: -[195, 'tuple 195'] +--- +- [195, u'tuple 195'] +... select * from t0 where k0 = 196 -Found 1 tuple: -[196, 'tuple 196'] +--- +- [196, u'tuple 196'] +... select * from t0 where k0 = 197 -Found 1 tuple: -[197, 'tuple 197'] +--- +- [197, u'tuple 197'] +... select * from t0 where k0 = 198 -Found 1 tuple: -[198, 'tuple 198'] +--- +- [198, u'tuple 198'] +... select * from t0 where k0 = 199 -Found 1 tuple: -[199, 'tuple 199'] +--- +- [199, u'tuple 199'] +... rollback servers configuration box.cfg.reload() --- @@ -1198,55 +1798,85 @@ box.cfg.reload() ... test 10 iteration insert into t0 values (200, 'tuple 200') -Insert OK, 1 row affected +--- +- [200, u'tuple 200'] +... insert into t0 values (201, 'tuple 201') -Insert OK, 1 row affected +--- +- [201, u'tuple 201'] +... insert into t0 values (202, 'tuple 202') -Insert OK, 1 row affected +--- +- [202, u'tuple 202'] +... insert into t0 values (203, 'tuple 203') -Insert OK, 1 row affected +--- +- [203, u'tuple 203'] +... insert into t0 values (204, 'tuple 204') -Insert OK, 1 row affected +--- +- [204, u'tuple 204'] +... select * from t0 where k0 = 200 -Found 1 tuple: -[200, 'tuple 200'] +--- +- [200, u'tuple 200'] +... select * from t0 where k0 = 201 -Found 1 tuple: -[201, 'tuple 201'] +--- +- [201, u'tuple 201'] +... select * from t0 where k0 = 202 -Found 1 tuple: -[202, 'tuple 202'] +--- +- [202, u'tuple 202'] +... select * from t0 where k0 = 203 -Found 1 tuple: -[203, 'tuple 203'] +--- +- [203, u'tuple 203'] +... select * from t0 where k0 = 204 -Found 1 tuple: -[204, 'tuple 204'] +--- +- [204, u'tuple 204'] +... insert into t0 values (205, 'tuple 205') -Insert OK, 1 row affected +--- +- [205, u'tuple 205'] +... insert into t0 values (206, 'tuple 206') -Insert OK, 1 row affected +--- +- [206, u'tuple 206'] +... insert into t0 values (207, 'tuple 207') -Insert OK, 1 row affected +--- +- [207, u'tuple 207'] +... insert into t0 values (208, 'tuple 208') -Insert OK, 1 row affected +--- +- [208, u'tuple 208'] +... insert into t0 values (209, 'tuple 209') -Insert OK, 1 row affected +--- +- [209, u'tuple 209'] +... select * from t0 where k0 = 205 -Found 1 tuple: -[205, 'tuple 205'] +--- +- [205, u'tuple 205'] +... select * from t0 where k0 = 206 -Found 1 tuple: -[206, 'tuple 206'] +--- +- [206, u'tuple 206'] +... select * from t0 where k0 = 207 -Found 1 tuple: -[207, 'tuple 207'] +--- +- [207, u'tuple 207'] +... select * from t0 where k0 = 208 -Found 1 tuple: -[208, 'tuple 208'] +--- +- [208, u'tuple 208'] +... select * from t0 where k0 = 209 -Found 1 tuple: -[209, 'tuple 209'] +--- +- [209, u'tuple 209'] +... swap servers box.cfg.reload() --- @@ -1257,55 +1887,85 @@ box.cfg.reload() - ok ... insert into t0 values (210, 'tuple 210') -Insert OK, 1 row affected +--- +- [210, u'tuple 210'] +... insert into t0 values (211, 'tuple 211') -Insert OK, 1 row affected +--- +- [211, u'tuple 211'] +... insert into t0 values (212, 'tuple 212') -Insert OK, 1 row affected +--- +- [212, u'tuple 212'] +... insert into t0 values (213, 'tuple 213') -Insert OK, 1 row affected +--- +- [213, u'tuple 213'] +... insert into t0 values (214, 'tuple 214') -Insert OK, 1 row affected +--- +- [214, u'tuple 214'] +... select * from t0 where k0 = 210 -Found 1 tuple: -[210, 'tuple 210'] +--- +- [210, u'tuple 210'] +... select * from t0 where k0 = 211 -Found 1 tuple: -[211, 'tuple 211'] +--- +- [211, u'tuple 211'] +... select * from t0 where k0 = 212 -Found 1 tuple: -[212, 'tuple 212'] +--- +- [212, u'tuple 212'] +... select * from t0 where k0 = 213 -Found 1 tuple: -[213, 'tuple 213'] +--- +- [213, u'tuple 213'] +... select * from t0 where k0 = 214 -Found 1 tuple: -[214, 'tuple 214'] +--- +- [214, u'tuple 214'] +... insert into t0 values (215, 'tuple 215') -Insert OK, 1 row affected +--- +- [215, u'tuple 215'] +... insert into t0 values (216, 'tuple 216') -Insert OK, 1 row affected +--- +- [216, u'tuple 216'] +... insert into t0 values (217, 'tuple 217') -Insert OK, 1 row affected +--- +- [217, u'tuple 217'] +... insert into t0 values (218, 'tuple 218') -Insert OK, 1 row affected +--- +- [218, u'tuple 218'] +... insert into t0 values (219, 'tuple 219') -Insert OK, 1 row affected +--- +- [219, u'tuple 219'] +... select * from t0 where k0 = 215 -Found 1 tuple: -[215, 'tuple 215'] +--- +- [215, u'tuple 215'] +... select * from t0 where k0 = 216 -Found 1 tuple: -[216, 'tuple 216'] +--- +- [216, u'tuple 216'] +... select * from t0 where k0 = 217 -Found 1 tuple: -[217, 'tuple 217'] +--- +- [217, u'tuple 217'] +... select * from t0 where k0 = 218 -Found 1 tuple: -[218, 'tuple 218'] +--- +- [218, u'tuple 218'] +... select * from t0 where k0 = 219 -Found 1 tuple: -[219, 'tuple 219'] +--- +- [219, u'tuple 219'] +... rollback servers configuration box.cfg.reload() --- @@ -1317,55 +1977,85 @@ box.cfg.reload() ... test 11 iteration insert into t0 values (220, 'tuple 220') -Insert OK, 1 row affected +--- +- [220, u'tuple 220'] +... insert into t0 values (221, 'tuple 221') -Insert OK, 1 row affected +--- +- [221, u'tuple 221'] +... insert into t0 values (222, 'tuple 222') -Insert OK, 1 row affected +--- +- [222, u'tuple 222'] +... insert into t0 values (223, 'tuple 223') -Insert OK, 1 row affected +--- +- [223, u'tuple 223'] +... insert into t0 values (224, 'tuple 224') -Insert OK, 1 row affected +--- +- [224, u'tuple 224'] +... select * from t0 where k0 = 220 -Found 1 tuple: -[220, 'tuple 220'] +--- +- [220, u'tuple 220'] +... select * from t0 where k0 = 221 -Found 1 tuple: -[221, 'tuple 221'] +--- +- [221, u'tuple 221'] +... select * from t0 where k0 = 222 -Found 1 tuple: -[222, 'tuple 222'] +--- +- [222, u'tuple 222'] +... select * from t0 where k0 = 223 -Found 1 tuple: -[223, 'tuple 223'] +--- +- [223, u'tuple 223'] +... select * from t0 where k0 = 224 -Found 1 tuple: -[224, 'tuple 224'] +--- +- [224, u'tuple 224'] +... insert into t0 values (225, 'tuple 225') -Insert OK, 1 row affected +--- +- [225, u'tuple 225'] +... insert into t0 values (226, 'tuple 226') -Insert OK, 1 row affected +--- +- [226, u'tuple 226'] +... insert into t0 values (227, 'tuple 227') -Insert OK, 1 row affected +--- +- [227, u'tuple 227'] +... insert into t0 values (228, 'tuple 228') -Insert OK, 1 row affected +--- +- [228, u'tuple 228'] +... insert into t0 values (229, 'tuple 229') -Insert OK, 1 row affected +--- +- [229, u'tuple 229'] +... select * from t0 where k0 = 225 -Found 1 tuple: -[225, 'tuple 225'] +--- +- [225, u'tuple 225'] +... select * from t0 where k0 = 226 -Found 1 tuple: -[226, 'tuple 226'] +--- +- [226, u'tuple 226'] +... select * from t0 where k0 = 227 -Found 1 tuple: -[227, 'tuple 227'] +--- +- [227, u'tuple 227'] +... select * from t0 where k0 = 228 -Found 1 tuple: -[228, 'tuple 228'] +--- +- [228, u'tuple 228'] +... select * from t0 where k0 = 229 -Found 1 tuple: -[229, 'tuple 229'] +--- +- [229, u'tuple 229'] +... swap servers box.cfg.reload() --- @@ -1376,55 +2066,85 @@ box.cfg.reload() - ok ... insert into t0 values (230, 'tuple 230') -Insert OK, 1 row affected +--- +- [230, u'tuple 230'] +... insert into t0 values (231, 'tuple 231') -Insert OK, 1 row affected +--- +- [231, u'tuple 231'] +... insert into t0 values (232, 'tuple 232') -Insert OK, 1 row affected +--- +- [232, u'tuple 232'] +... insert into t0 values (233, 'tuple 233') -Insert OK, 1 row affected +--- +- [233, u'tuple 233'] +... insert into t0 values (234, 'tuple 234') -Insert OK, 1 row affected +--- +- [234, u'tuple 234'] +... select * from t0 where k0 = 230 -Found 1 tuple: -[230, 'tuple 230'] +--- +- [230, u'tuple 230'] +... select * from t0 where k0 = 231 -Found 1 tuple: -[231, 'tuple 231'] +--- +- [231, u'tuple 231'] +... select * from t0 where k0 = 232 -Found 1 tuple: -[232, 'tuple 232'] +--- +- [232, u'tuple 232'] +... select * from t0 where k0 = 233 -Found 1 tuple: -[233, 'tuple 233'] +--- +- [233, u'tuple 233'] +... select * from t0 where k0 = 234 -Found 1 tuple: -[234, 'tuple 234'] +--- +- [234, u'tuple 234'] +... insert into t0 values (235, 'tuple 235') -Insert OK, 1 row affected +--- +- [235, u'tuple 235'] +... insert into t0 values (236, 'tuple 236') -Insert OK, 1 row affected +--- +- [236, u'tuple 236'] +... insert into t0 values (237, 'tuple 237') -Insert OK, 1 row affected +--- +- [237, u'tuple 237'] +... insert into t0 values (238, 'tuple 238') -Insert OK, 1 row affected +--- +- [238, u'tuple 238'] +... insert into t0 values (239, 'tuple 239') -Insert OK, 1 row affected +--- +- [239, u'tuple 239'] +... select * from t0 where k0 = 235 -Found 1 tuple: -[235, 'tuple 235'] +--- +- [235, u'tuple 235'] +... select * from t0 where k0 = 236 -Found 1 tuple: -[236, 'tuple 236'] +--- +- [236, u'tuple 236'] +... select * from t0 where k0 = 237 -Found 1 tuple: -[237, 'tuple 237'] +--- +- [237, u'tuple 237'] +... select * from t0 where k0 = 238 -Found 1 tuple: -[238, 'tuple 238'] +--- +- [238, u'tuple 238'] +... select * from t0 where k0 = 239 -Found 1 tuple: -[239, 'tuple 239'] +--- +- [239, u'tuple 239'] +... rollback servers configuration box.cfg.reload() --- @@ -1436,55 +2156,85 @@ box.cfg.reload() ... test 12 iteration insert into t0 values (240, 'tuple 240') -Insert OK, 1 row affected +--- +- [240, u'tuple 240'] +... insert into t0 values (241, 'tuple 241') -Insert OK, 1 row affected +--- +- [241, u'tuple 241'] +... insert into t0 values (242, 'tuple 242') -Insert OK, 1 row affected +--- +- [242, u'tuple 242'] +... insert into t0 values (243, 'tuple 243') -Insert OK, 1 row affected +--- +- [243, u'tuple 243'] +... insert into t0 values (244, 'tuple 244') -Insert OK, 1 row affected +--- +- [244, u'tuple 244'] +... select * from t0 where k0 = 240 -Found 1 tuple: -[240, 'tuple 240'] +--- +- [240, u'tuple 240'] +... select * from t0 where k0 = 241 -Found 1 tuple: -[241, 'tuple 241'] +--- +- [241, u'tuple 241'] +... select * from t0 where k0 = 242 -Found 1 tuple: -[242, 'tuple 242'] +--- +- [242, u'tuple 242'] +... select * from t0 where k0 = 243 -Found 1 tuple: -[243, 'tuple 243'] +--- +- [243, u'tuple 243'] +... select * from t0 where k0 = 244 -Found 1 tuple: -[244, 'tuple 244'] +--- +- [244, u'tuple 244'] +... insert into t0 values (245, 'tuple 245') -Insert OK, 1 row affected +--- +- [245, u'tuple 245'] +... insert into t0 values (246, 'tuple 246') -Insert OK, 1 row affected +--- +- [246, u'tuple 246'] +... insert into t0 values (247, 'tuple 247') -Insert OK, 1 row affected +--- +- [247, u'tuple 247'] +... insert into t0 values (248, 'tuple 248') -Insert OK, 1 row affected +--- +- [248, u'tuple 248'] +... insert into t0 values (249, 'tuple 249') -Insert OK, 1 row affected +--- +- [249, u'tuple 249'] +... select * from t0 where k0 = 245 -Found 1 tuple: -[245, 'tuple 245'] +--- +- [245, u'tuple 245'] +... select * from t0 where k0 = 246 -Found 1 tuple: -[246, 'tuple 246'] +--- +- [246, u'tuple 246'] +... select * from t0 where k0 = 247 -Found 1 tuple: -[247, 'tuple 247'] +--- +- [247, u'tuple 247'] +... select * from t0 where k0 = 248 -Found 1 tuple: -[248, 'tuple 248'] +--- +- [248, u'tuple 248'] +... select * from t0 where k0 = 249 -Found 1 tuple: -[249, 'tuple 249'] +--- +- [249, u'tuple 249'] +... swap servers box.cfg.reload() --- @@ -1495,55 +2245,85 @@ box.cfg.reload() - ok ... insert into t0 values (250, 'tuple 250') -Insert OK, 1 row affected +--- +- [250, u'tuple 250'] +... insert into t0 values (251, 'tuple 251') -Insert OK, 1 row affected +--- +- [251, u'tuple 251'] +... insert into t0 values (252, 'tuple 252') -Insert OK, 1 row affected +--- +- [252, u'tuple 252'] +... insert into t0 values (253, 'tuple 253') -Insert OK, 1 row affected +--- +- [253, u'tuple 253'] +... insert into t0 values (254, 'tuple 254') -Insert OK, 1 row affected +--- +- [254, u'tuple 254'] +... select * from t0 where k0 = 250 -Found 1 tuple: -[250, 'tuple 250'] +--- +- [250, u'tuple 250'] +... select * from t0 where k0 = 251 -Found 1 tuple: -[251, 'tuple 251'] +--- +- [251, u'tuple 251'] +... select * from t0 where k0 = 252 -Found 1 tuple: -[252, 'tuple 252'] +--- +- [252, u'tuple 252'] +... select * from t0 where k0 = 253 -Found 1 tuple: -[253, 'tuple 253'] +--- +- [253, u'tuple 253'] +... select * from t0 where k0 = 254 -Found 1 tuple: -[254, 'tuple 254'] +--- +- [254, u'tuple 254'] +... insert into t0 values (255, 'tuple 255') -Insert OK, 1 row affected +--- +- [255, u'tuple 255'] +... insert into t0 values (256, 'tuple 256') -Insert OK, 1 row affected +--- +- [256, u'tuple 256'] +... insert into t0 values (257, 'tuple 257') -Insert OK, 1 row affected +--- +- [257, u'tuple 257'] +... insert into t0 values (258, 'tuple 258') -Insert OK, 1 row affected +--- +- [258, u'tuple 258'] +... insert into t0 values (259, 'tuple 259') -Insert OK, 1 row affected +--- +- [259, u'tuple 259'] +... select * from t0 where k0 = 255 -Found 1 tuple: -[255, 'tuple 255'] +--- +- [255, u'tuple 255'] +... select * from t0 where k0 = 256 -Found 1 tuple: -[256, 'tuple 256'] +--- +- [256, u'tuple 256'] +... select * from t0 where k0 = 257 -Found 1 tuple: -[257, 'tuple 257'] +--- +- [257, u'tuple 257'] +... select * from t0 where k0 = 258 -Found 1 tuple: -[258, 'tuple 258'] +--- +- [258, u'tuple 258'] +... select * from t0 where k0 = 259 -Found 1 tuple: -[259, 'tuple 259'] +--- +- [259, u'tuple 259'] +... rollback servers configuration box.cfg.reload() --- @@ -1555,55 +2335,85 @@ box.cfg.reload() ... test 13 iteration insert into t0 values (260, 'tuple 260') -Insert OK, 1 row affected +--- +- [260, u'tuple 260'] +... insert into t0 values (261, 'tuple 261') -Insert OK, 1 row affected +--- +- [261, u'tuple 261'] +... insert into t0 values (262, 'tuple 262') -Insert OK, 1 row affected +--- +- [262, u'tuple 262'] +... insert into t0 values (263, 'tuple 263') -Insert OK, 1 row affected +--- +- [263, u'tuple 263'] +... insert into t0 values (264, 'tuple 264') -Insert OK, 1 row affected +--- +- [264, u'tuple 264'] +... select * from t0 where k0 = 260 -Found 1 tuple: -[260, 'tuple 260'] +--- +- [260, u'tuple 260'] +... select * from t0 where k0 = 261 -Found 1 tuple: -[261, 'tuple 261'] +--- +- [261, u'tuple 261'] +... select * from t0 where k0 = 262 -Found 1 tuple: -[262, 'tuple 262'] +--- +- [262, u'tuple 262'] +... select * from t0 where k0 = 263 -Found 1 tuple: -[263, 'tuple 263'] +--- +- [263, u'tuple 263'] +... select * from t0 where k0 = 264 -Found 1 tuple: -[264, 'tuple 264'] +--- +- [264, u'tuple 264'] +... insert into t0 values (265, 'tuple 265') -Insert OK, 1 row affected +--- +- [265, u'tuple 265'] +... insert into t0 values (266, 'tuple 266') -Insert OK, 1 row affected +--- +- [266, u'tuple 266'] +... insert into t0 values (267, 'tuple 267') -Insert OK, 1 row affected +--- +- [267, u'tuple 267'] +... insert into t0 values (268, 'tuple 268') -Insert OK, 1 row affected +--- +- [268, u'tuple 268'] +... insert into t0 values (269, 'tuple 269') -Insert OK, 1 row affected +--- +- [269, u'tuple 269'] +... select * from t0 where k0 = 265 -Found 1 tuple: -[265, 'tuple 265'] +--- +- [265, u'tuple 265'] +... select * from t0 where k0 = 266 -Found 1 tuple: -[266, 'tuple 266'] +--- +- [266, u'tuple 266'] +... select * from t0 where k0 = 267 -Found 1 tuple: -[267, 'tuple 267'] +--- +- [267, u'tuple 267'] +... select * from t0 where k0 = 268 -Found 1 tuple: -[268, 'tuple 268'] +--- +- [268, u'tuple 268'] +... select * from t0 where k0 = 269 -Found 1 tuple: -[269, 'tuple 269'] +--- +- [269, u'tuple 269'] +... swap servers box.cfg.reload() --- @@ -1614,55 +2424,85 @@ box.cfg.reload() - ok ... insert into t0 values (270, 'tuple 270') -Insert OK, 1 row affected +--- +- [270, u'tuple 270'] +... insert into t0 values (271, 'tuple 271') -Insert OK, 1 row affected +--- +- [271, u'tuple 271'] +... insert into t0 values (272, 'tuple 272') -Insert OK, 1 row affected +--- +- [272, u'tuple 272'] +... insert into t0 values (273, 'tuple 273') -Insert OK, 1 row affected +--- +- [273, u'tuple 273'] +... insert into t0 values (274, 'tuple 274') -Insert OK, 1 row affected +--- +- [274, u'tuple 274'] +... select * from t0 where k0 = 270 -Found 1 tuple: -[270, 'tuple 270'] +--- +- [270, u'tuple 270'] +... select * from t0 where k0 = 271 -Found 1 tuple: -[271, 'tuple 271'] +--- +- [271, u'tuple 271'] +... select * from t0 where k0 = 272 -Found 1 tuple: -[272, 'tuple 272'] +--- +- [272, u'tuple 272'] +... select * from t0 where k0 = 273 -Found 1 tuple: -[273, 'tuple 273'] +--- +- [273, u'tuple 273'] +... select * from t0 where k0 = 274 -Found 1 tuple: -[274, 'tuple 274'] +--- +- [274, u'tuple 274'] +... insert into t0 values (275, 'tuple 275') -Insert OK, 1 row affected +--- +- [275, u'tuple 275'] +... insert into t0 values (276, 'tuple 276') -Insert OK, 1 row affected +--- +- [276, u'tuple 276'] +... insert into t0 values (277, 'tuple 277') -Insert OK, 1 row affected +--- +- [277, u'tuple 277'] +... insert into t0 values (278, 'tuple 278') -Insert OK, 1 row affected +--- +- [278, u'tuple 278'] +... insert into t0 values (279, 'tuple 279') -Insert OK, 1 row affected +--- +- [279, u'tuple 279'] +... select * from t0 where k0 = 275 -Found 1 tuple: -[275, 'tuple 275'] +--- +- [275, u'tuple 275'] +... select * from t0 where k0 = 276 -Found 1 tuple: -[276, 'tuple 276'] +--- +- [276, u'tuple 276'] +... select * from t0 where k0 = 277 -Found 1 tuple: -[277, 'tuple 277'] +--- +- [277, u'tuple 277'] +... select * from t0 where k0 = 278 -Found 1 tuple: -[278, 'tuple 278'] +--- +- [278, u'tuple 278'] +... select * from t0 where k0 = 279 -Found 1 tuple: -[279, 'tuple 279'] +--- +- [279, u'tuple 279'] +... rollback servers configuration box.cfg.reload() --- @@ -1674,55 +2514,85 @@ box.cfg.reload() ... test 14 iteration insert into t0 values (280, 'tuple 280') -Insert OK, 1 row affected +--- +- [280, u'tuple 280'] +... insert into t0 values (281, 'tuple 281') -Insert OK, 1 row affected +--- +- [281, u'tuple 281'] +... insert into t0 values (282, 'tuple 282') -Insert OK, 1 row affected +--- +- [282, u'tuple 282'] +... insert into t0 values (283, 'tuple 283') -Insert OK, 1 row affected +--- +- [283, u'tuple 283'] +... insert into t0 values (284, 'tuple 284') -Insert OK, 1 row affected +--- +- [284, u'tuple 284'] +... select * from t0 where k0 = 280 -Found 1 tuple: -[280, 'tuple 280'] +--- +- [280, u'tuple 280'] +... select * from t0 where k0 = 281 -Found 1 tuple: -[281, 'tuple 281'] +--- +- [281, u'tuple 281'] +... select * from t0 where k0 = 282 -Found 1 tuple: -[282, 'tuple 282'] +--- +- [282, u'tuple 282'] +... select * from t0 where k0 = 283 -Found 1 tuple: -[283, 'tuple 283'] +--- +- [283, u'tuple 283'] +... select * from t0 where k0 = 284 -Found 1 tuple: -[284, 'tuple 284'] +--- +- [284, u'tuple 284'] +... insert into t0 values (285, 'tuple 285') -Insert OK, 1 row affected +--- +- [285, u'tuple 285'] +... insert into t0 values (286, 'tuple 286') -Insert OK, 1 row affected +--- +- [286, u'tuple 286'] +... insert into t0 values (287, 'tuple 287') -Insert OK, 1 row affected +--- +- [287, u'tuple 287'] +... insert into t0 values (288, 'tuple 288') -Insert OK, 1 row affected +--- +- [288, u'tuple 288'] +... insert into t0 values (289, 'tuple 289') -Insert OK, 1 row affected +--- +- [289, u'tuple 289'] +... select * from t0 where k0 = 285 -Found 1 tuple: -[285, 'tuple 285'] +--- +- [285, u'tuple 285'] +... select * from t0 where k0 = 286 -Found 1 tuple: -[286, 'tuple 286'] +--- +- [286, u'tuple 286'] +... select * from t0 where k0 = 287 -Found 1 tuple: -[287, 'tuple 287'] +--- +- [287, u'tuple 287'] +... select * from t0 where k0 = 288 -Found 1 tuple: -[288, 'tuple 288'] +--- +- [288, u'tuple 288'] +... select * from t0 where k0 = 289 -Found 1 tuple: -[289, 'tuple 289'] +--- +- [289, u'tuple 289'] +... swap servers box.cfg.reload() --- @@ -1733,55 +2603,85 @@ box.cfg.reload() - ok ... insert into t0 values (290, 'tuple 290') -Insert OK, 1 row affected +--- +- [290, u'tuple 290'] +... insert into t0 values (291, 'tuple 291') -Insert OK, 1 row affected +--- +- [291, u'tuple 291'] +... insert into t0 values (292, 'tuple 292') -Insert OK, 1 row affected +--- +- [292, u'tuple 292'] +... insert into t0 values (293, 'tuple 293') -Insert OK, 1 row affected +--- +- [293, u'tuple 293'] +... insert into t0 values (294, 'tuple 294') -Insert OK, 1 row affected +--- +- [294, u'tuple 294'] +... select * from t0 where k0 = 290 -Found 1 tuple: -[290, 'tuple 290'] +--- +- [290, u'tuple 290'] +... select * from t0 where k0 = 291 -Found 1 tuple: -[291, 'tuple 291'] +--- +- [291, u'tuple 291'] +... select * from t0 where k0 = 292 -Found 1 tuple: -[292, 'tuple 292'] +--- +- [292, u'tuple 292'] +... select * from t0 where k0 = 293 -Found 1 tuple: -[293, 'tuple 293'] +--- +- [293, u'tuple 293'] +... select * from t0 where k0 = 294 -Found 1 tuple: -[294, 'tuple 294'] +--- +- [294, u'tuple 294'] +... insert into t0 values (295, 'tuple 295') -Insert OK, 1 row affected +--- +- [295, u'tuple 295'] +... insert into t0 values (296, 'tuple 296') -Insert OK, 1 row affected +--- +- [296, u'tuple 296'] +... insert into t0 values (297, 'tuple 297') -Insert OK, 1 row affected +--- +- [297, u'tuple 297'] +... insert into t0 values (298, 'tuple 298') -Insert OK, 1 row affected +--- +- [298, u'tuple 298'] +... insert into t0 values (299, 'tuple 299') -Insert OK, 1 row affected +--- +- [299, u'tuple 299'] +... select * from t0 where k0 = 295 -Found 1 tuple: -[295, 'tuple 295'] +--- +- [295, u'tuple 295'] +... select * from t0 where k0 = 296 -Found 1 tuple: -[296, 'tuple 296'] +--- +- [296, u'tuple 296'] +... select * from t0 where k0 = 297 -Found 1 tuple: -[297, 'tuple 297'] +--- +- [297, u'tuple 297'] +... select * from t0 where k0 = 298 -Found 1 tuple: -[298, 'tuple 298'] +--- +- [298, u'tuple 298'] +... select * from t0 where k0 = 299 -Found 1 tuple: -[299, 'tuple 299'] +--- +- [299, u'tuple 299'] +... rollback servers configuration box.cfg.reload() --- @@ -1793,55 +2693,85 @@ box.cfg.reload() ... test 15 iteration insert into t0 values (300, 'tuple 300') -Insert OK, 1 row affected +--- +- [300, u'tuple 300'] +... insert into t0 values (301, 'tuple 301') -Insert OK, 1 row affected +--- +- [301, u'tuple 301'] +... insert into t0 values (302, 'tuple 302') -Insert OK, 1 row affected +--- +- [302, u'tuple 302'] +... insert into t0 values (303, 'tuple 303') -Insert OK, 1 row affected +--- +- [303, u'tuple 303'] +... insert into t0 values (304, 'tuple 304') -Insert OK, 1 row affected +--- +- [304, u'tuple 304'] +... select * from t0 where k0 = 300 -Found 1 tuple: -[300, 'tuple 300'] +--- +- [300, u'tuple 300'] +... select * from t0 where k0 = 301 -Found 1 tuple: -[301, 'tuple 301'] +--- +- [301, u'tuple 301'] +... select * from t0 where k0 = 302 -Found 1 tuple: -[302, 'tuple 302'] +--- +- [302, u'tuple 302'] +... select * from t0 where k0 = 303 -Found 1 tuple: -[303, 'tuple 303'] +--- +- [303, u'tuple 303'] +... select * from t0 where k0 = 304 -Found 1 tuple: -[304, 'tuple 304'] +--- +- [304, u'tuple 304'] +... insert into t0 values (305, 'tuple 305') -Insert OK, 1 row affected +--- +- [305, u'tuple 305'] +... insert into t0 values (306, 'tuple 306') -Insert OK, 1 row affected +--- +- [306, u'tuple 306'] +... insert into t0 values (307, 'tuple 307') -Insert OK, 1 row affected +--- +- [307, u'tuple 307'] +... insert into t0 values (308, 'tuple 308') -Insert OK, 1 row affected +--- +- [308, u'tuple 308'] +... insert into t0 values (309, 'tuple 309') -Insert OK, 1 row affected +--- +- [309, u'tuple 309'] +... select * from t0 where k0 = 305 -Found 1 tuple: -[305, 'tuple 305'] +--- +- [305, u'tuple 305'] +... select * from t0 where k0 = 306 -Found 1 tuple: -[306, 'tuple 306'] +--- +- [306, u'tuple 306'] +... select * from t0 where k0 = 307 -Found 1 tuple: -[307, 'tuple 307'] +--- +- [307, u'tuple 307'] +... select * from t0 where k0 = 308 -Found 1 tuple: -[308, 'tuple 308'] +--- +- [308, u'tuple 308'] +... select * from t0 where k0 = 309 -Found 1 tuple: -[309, 'tuple 309'] +--- +- [309, u'tuple 309'] +... swap servers box.cfg.reload() --- @@ -1852,55 +2782,85 @@ box.cfg.reload() - ok ... insert into t0 values (310, 'tuple 310') -Insert OK, 1 row affected +--- +- [310, u'tuple 310'] +... insert into t0 values (311, 'tuple 311') -Insert OK, 1 row affected +--- +- [311, u'tuple 311'] +... insert into t0 values (312, 'tuple 312') -Insert OK, 1 row affected +--- +- [312, u'tuple 312'] +... insert into t0 values (313, 'tuple 313') -Insert OK, 1 row affected +--- +- [313, u'tuple 313'] +... insert into t0 values (314, 'tuple 314') -Insert OK, 1 row affected +--- +- [314, u'tuple 314'] +... select * from t0 where k0 = 310 -Found 1 tuple: -[310, 'tuple 310'] +--- +- [310, u'tuple 310'] +... select * from t0 where k0 = 311 -Found 1 tuple: -[311, 'tuple 311'] +--- +- [311, u'tuple 311'] +... select * from t0 where k0 = 312 -Found 1 tuple: -[312, 'tuple 312'] +--- +- [312, u'tuple 312'] +... select * from t0 where k0 = 313 -Found 1 tuple: -[313, 'tuple 313'] +--- +- [313, u'tuple 313'] +... select * from t0 where k0 = 314 -Found 1 tuple: -[314, 'tuple 314'] +--- +- [314, u'tuple 314'] +... insert into t0 values (315, 'tuple 315') -Insert OK, 1 row affected +--- +- [315, u'tuple 315'] +... insert into t0 values (316, 'tuple 316') -Insert OK, 1 row affected +--- +- [316, u'tuple 316'] +... insert into t0 values (317, 'tuple 317') -Insert OK, 1 row affected +--- +- [317, u'tuple 317'] +... insert into t0 values (318, 'tuple 318') -Insert OK, 1 row affected +--- +- [318, u'tuple 318'] +... insert into t0 values (319, 'tuple 319') -Insert OK, 1 row affected +--- +- [319, u'tuple 319'] +... select * from t0 where k0 = 315 -Found 1 tuple: -[315, 'tuple 315'] +--- +- [315, u'tuple 315'] +... select * from t0 where k0 = 316 -Found 1 tuple: -[316, 'tuple 316'] +--- +- [316, u'tuple 316'] +... select * from t0 where k0 = 317 -Found 1 tuple: -[317, 'tuple 317'] +--- +- [317, u'tuple 317'] +... select * from t0 where k0 = 318 -Found 1 tuple: -[318, 'tuple 318'] +--- +- [318, u'tuple 318'] +... select * from t0 where k0 = 319 -Found 1 tuple: -[319, 'tuple 319'] +--- +- [319, u'tuple 319'] +... rollback servers configuration box.cfg.reload() --- @@ -1912,55 +2872,85 @@ box.cfg.reload() ... test 16 iteration insert into t0 values (320, 'tuple 320') -Insert OK, 1 row affected +--- +- [320, u'tuple 320'] +... insert into t0 values (321, 'tuple 321') -Insert OK, 1 row affected +--- +- [321, u'tuple 321'] +... insert into t0 values (322, 'tuple 322') -Insert OK, 1 row affected +--- +- [322, u'tuple 322'] +... insert into t0 values (323, 'tuple 323') -Insert OK, 1 row affected +--- +- [323, u'tuple 323'] +... insert into t0 values (324, 'tuple 324') -Insert OK, 1 row affected +--- +- [324, u'tuple 324'] +... select * from t0 where k0 = 320 -Found 1 tuple: -[320, 'tuple 320'] +--- +- [320, u'tuple 320'] +... select * from t0 where k0 = 321 -Found 1 tuple: -[321, 'tuple 321'] +--- +- [321, u'tuple 321'] +... select * from t0 where k0 = 322 -Found 1 tuple: -[322, 'tuple 322'] +--- +- [322, u'tuple 322'] +... select * from t0 where k0 = 323 -Found 1 tuple: -[323, 'tuple 323'] +--- +- [323, u'tuple 323'] +... select * from t0 where k0 = 324 -Found 1 tuple: -[324, 'tuple 324'] +--- +- [324, u'tuple 324'] +... insert into t0 values (325, 'tuple 325') -Insert OK, 1 row affected +--- +- [325, u'tuple 325'] +... insert into t0 values (326, 'tuple 326') -Insert OK, 1 row affected +--- +- [326, u'tuple 326'] +... insert into t0 values (327, 'tuple 327') -Insert OK, 1 row affected +--- +- [327, u'tuple 327'] +... insert into t0 values (328, 'tuple 328') -Insert OK, 1 row affected +--- +- [328, u'tuple 328'] +... insert into t0 values (329, 'tuple 329') -Insert OK, 1 row affected +--- +- [329, u'tuple 329'] +... select * from t0 where k0 = 325 -Found 1 tuple: -[325, 'tuple 325'] +--- +- [325, u'tuple 325'] +... select * from t0 where k0 = 326 -Found 1 tuple: -[326, 'tuple 326'] +--- +- [326, u'tuple 326'] +... select * from t0 where k0 = 327 -Found 1 tuple: -[327, 'tuple 327'] +--- +- [327, u'tuple 327'] +... select * from t0 where k0 = 328 -Found 1 tuple: -[328, 'tuple 328'] +--- +- [328, u'tuple 328'] +... select * from t0 where k0 = 329 -Found 1 tuple: -[329, 'tuple 329'] +--- +- [329, u'tuple 329'] +... swap servers box.cfg.reload() --- @@ -1971,55 +2961,85 @@ box.cfg.reload() - ok ... insert into t0 values (330, 'tuple 330') -Insert OK, 1 row affected +--- +- [330, u'tuple 330'] +... insert into t0 values (331, 'tuple 331') -Insert OK, 1 row affected +--- +- [331, u'tuple 331'] +... insert into t0 values (332, 'tuple 332') -Insert OK, 1 row affected +--- +- [332, u'tuple 332'] +... insert into t0 values (333, 'tuple 333') -Insert OK, 1 row affected +--- +- [333, u'tuple 333'] +... insert into t0 values (334, 'tuple 334') -Insert OK, 1 row affected +--- +- [334, u'tuple 334'] +... select * from t0 where k0 = 330 -Found 1 tuple: -[330, 'tuple 330'] +--- +- [330, u'tuple 330'] +... select * from t0 where k0 = 331 -Found 1 tuple: -[331, 'tuple 331'] +--- +- [331, u'tuple 331'] +... select * from t0 where k0 = 332 -Found 1 tuple: -[332, 'tuple 332'] +--- +- [332, u'tuple 332'] +... select * from t0 where k0 = 333 -Found 1 tuple: -[333, 'tuple 333'] +--- +- [333, u'tuple 333'] +... select * from t0 where k0 = 334 -Found 1 tuple: -[334, 'tuple 334'] +--- +- [334, u'tuple 334'] +... insert into t0 values (335, 'tuple 335') -Insert OK, 1 row affected +--- +- [335, u'tuple 335'] +... insert into t0 values (336, 'tuple 336') -Insert OK, 1 row affected +--- +- [336, u'tuple 336'] +... insert into t0 values (337, 'tuple 337') -Insert OK, 1 row affected +--- +- [337, u'tuple 337'] +... insert into t0 values (338, 'tuple 338') -Insert OK, 1 row affected +--- +- [338, u'tuple 338'] +... insert into t0 values (339, 'tuple 339') -Insert OK, 1 row affected +--- +- [339, u'tuple 339'] +... select * from t0 where k0 = 335 -Found 1 tuple: -[335, 'tuple 335'] +--- +- [335, u'tuple 335'] +... select * from t0 where k0 = 336 -Found 1 tuple: -[336, 'tuple 336'] +--- +- [336, u'tuple 336'] +... select * from t0 where k0 = 337 -Found 1 tuple: -[337, 'tuple 337'] +--- +- [337, u'tuple 337'] +... select * from t0 where k0 = 338 -Found 1 tuple: -[338, 'tuple 338'] +--- +- [338, u'tuple 338'] +... select * from t0 where k0 = 339 -Found 1 tuple: -[339, 'tuple 339'] +--- +- [339, u'tuple 339'] +... rollback servers configuration box.cfg.reload() --- @@ -2031,55 +3051,85 @@ box.cfg.reload() ... test 17 iteration insert into t0 values (340, 'tuple 340') -Insert OK, 1 row affected +--- +- [340, u'tuple 340'] +... insert into t0 values (341, 'tuple 341') -Insert OK, 1 row affected +--- +- [341, u'tuple 341'] +... insert into t0 values (342, 'tuple 342') -Insert OK, 1 row affected +--- +- [342, u'tuple 342'] +... insert into t0 values (343, 'tuple 343') -Insert OK, 1 row affected +--- +- [343, u'tuple 343'] +... insert into t0 values (344, 'tuple 344') -Insert OK, 1 row affected +--- +- [344, u'tuple 344'] +... select * from t0 where k0 = 340 -Found 1 tuple: -[340, 'tuple 340'] +--- +- [340, u'tuple 340'] +... select * from t0 where k0 = 341 -Found 1 tuple: -[341, 'tuple 341'] +--- +- [341, u'tuple 341'] +... select * from t0 where k0 = 342 -Found 1 tuple: -[342, 'tuple 342'] +--- +- [342, u'tuple 342'] +... select * from t0 where k0 = 343 -Found 1 tuple: -[343, 'tuple 343'] +--- +- [343, u'tuple 343'] +... select * from t0 where k0 = 344 -Found 1 tuple: -[344, 'tuple 344'] +--- +- [344, u'tuple 344'] +... insert into t0 values (345, 'tuple 345') -Insert OK, 1 row affected +--- +- [345, u'tuple 345'] +... insert into t0 values (346, 'tuple 346') -Insert OK, 1 row affected +--- +- [346, u'tuple 346'] +... insert into t0 values (347, 'tuple 347') -Insert OK, 1 row affected +--- +- [347, u'tuple 347'] +... insert into t0 values (348, 'tuple 348') -Insert OK, 1 row affected +--- +- [348, u'tuple 348'] +... insert into t0 values (349, 'tuple 349') -Insert OK, 1 row affected +--- +- [349, u'tuple 349'] +... select * from t0 where k0 = 345 -Found 1 tuple: -[345, 'tuple 345'] +--- +- [345, u'tuple 345'] +... select * from t0 where k0 = 346 -Found 1 tuple: -[346, 'tuple 346'] +--- +- [346, u'tuple 346'] +... select * from t0 where k0 = 347 -Found 1 tuple: -[347, 'tuple 347'] +--- +- [347, u'tuple 347'] +... select * from t0 where k0 = 348 -Found 1 tuple: -[348, 'tuple 348'] +--- +- [348, u'tuple 348'] +... select * from t0 where k0 = 349 -Found 1 tuple: -[349, 'tuple 349'] +--- +- [349, u'tuple 349'] +... swap servers box.cfg.reload() --- @@ -2090,55 +3140,85 @@ box.cfg.reload() - ok ... insert into t0 values (350, 'tuple 350') -Insert OK, 1 row affected +--- +- [350, u'tuple 350'] +... insert into t0 values (351, 'tuple 351') -Insert OK, 1 row affected +--- +- [351, u'tuple 351'] +... insert into t0 values (352, 'tuple 352') -Insert OK, 1 row affected +--- +- [352, u'tuple 352'] +... insert into t0 values (353, 'tuple 353') -Insert OK, 1 row affected +--- +- [353, u'tuple 353'] +... insert into t0 values (354, 'tuple 354') -Insert OK, 1 row affected +--- +- [354, u'tuple 354'] +... select * from t0 where k0 = 350 -Found 1 tuple: -[350, 'tuple 350'] +--- +- [350, u'tuple 350'] +... select * from t0 where k0 = 351 -Found 1 tuple: -[351, 'tuple 351'] +--- +- [351, u'tuple 351'] +... select * from t0 where k0 = 352 -Found 1 tuple: -[352, 'tuple 352'] +--- +- [352, u'tuple 352'] +... select * from t0 where k0 = 353 -Found 1 tuple: -[353, 'tuple 353'] +--- +- [353, u'tuple 353'] +... select * from t0 where k0 = 354 -Found 1 tuple: -[354, 'tuple 354'] +--- +- [354, u'tuple 354'] +... insert into t0 values (355, 'tuple 355') -Insert OK, 1 row affected +--- +- [355, u'tuple 355'] +... insert into t0 values (356, 'tuple 356') -Insert OK, 1 row affected +--- +- [356, u'tuple 356'] +... insert into t0 values (357, 'tuple 357') -Insert OK, 1 row affected +--- +- [357, u'tuple 357'] +... insert into t0 values (358, 'tuple 358') -Insert OK, 1 row affected +--- +- [358, u'tuple 358'] +... insert into t0 values (359, 'tuple 359') -Insert OK, 1 row affected +--- +- [359, u'tuple 359'] +... select * from t0 where k0 = 355 -Found 1 tuple: -[355, 'tuple 355'] +--- +- [355, u'tuple 355'] +... select * from t0 where k0 = 356 -Found 1 tuple: -[356, 'tuple 356'] +--- +- [356, u'tuple 356'] +... select * from t0 where k0 = 357 -Found 1 tuple: -[357, 'tuple 357'] +--- +- [357, u'tuple 357'] +... select * from t0 where k0 = 358 -Found 1 tuple: -[358, 'tuple 358'] +--- +- [358, u'tuple 358'] +... select * from t0 where k0 = 359 -Found 1 tuple: -[359, 'tuple 359'] +--- +- [359, u'tuple 359'] +... rollback servers configuration box.cfg.reload() --- @@ -2150,55 +3230,85 @@ box.cfg.reload() ... test 18 iteration insert into t0 values (360, 'tuple 360') -Insert OK, 1 row affected +--- +- [360, u'tuple 360'] +... insert into t0 values (361, 'tuple 361') -Insert OK, 1 row affected +--- +- [361, u'tuple 361'] +... insert into t0 values (362, 'tuple 362') -Insert OK, 1 row affected +--- +- [362, u'tuple 362'] +... insert into t0 values (363, 'tuple 363') -Insert OK, 1 row affected +--- +- [363, u'tuple 363'] +... insert into t0 values (364, 'tuple 364') -Insert OK, 1 row affected +--- +- [364, u'tuple 364'] +... select * from t0 where k0 = 360 -Found 1 tuple: -[360, 'tuple 360'] +--- +- [360, u'tuple 360'] +... select * from t0 where k0 = 361 -Found 1 tuple: -[361, 'tuple 361'] +--- +- [361, u'tuple 361'] +... select * from t0 where k0 = 362 -Found 1 tuple: -[362, 'tuple 362'] +--- +- [362, u'tuple 362'] +... select * from t0 where k0 = 363 -Found 1 tuple: -[363, 'tuple 363'] +--- +- [363, u'tuple 363'] +... select * from t0 where k0 = 364 -Found 1 tuple: -[364, 'tuple 364'] +--- +- [364, u'tuple 364'] +... insert into t0 values (365, 'tuple 365') -Insert OK, 1 row affected +--- +- [365, u'tuple 365'] +... insert into t0 values (366, 'tuple 366') -Insert OK, 1 row affected +--- +- [366, u'tuple 366'] +... insert into t0 values (367, 'tuple 367') -Insert OK, 1 row affected +--- +- [367, u'tuple 367'] +... insert into t0 values (368, 'tuple 368') -Insert OK, 1 row affected +--- +- [368, u'tuple 368'] +... insert into t0 values (369, 'tuple 369') -Insert OK, 1 row affected +--- +- [369, u'tuple 369'] +... select * from t0 where k0 = 365 -Found 1 tuple: -[365, 'tuple 365'] +--- +- [365, u'tuple 365'] +... select * from t0 where k0 = 366 -Found 1 tuple: -[366, 'tuple 366'] +--- +- [366, u'tuple 366'] +... select * from t0 where k0 = 367 -Found 1 tuple: -[367, 'tuple 367'] +--- +- [367, u'tuple 367'] +... select * from t0 where k0 = 368 -Found 1 tuple: -[368, 'tuple 368'] +--- +- [368, u'tuple 368'] +... select * from t0 where k0 = 369 -Found 1 tuple: -[369, 'tuple 369'] +--- +- [369, u'tuple 369'] +... swap servers box.cfg.reload() --- @@ -2209,55 +3319,85 @@ box.cfg.reload() - ok ... insert into t0 values (370, 'tuple 370') -Insert OK, 1 row affected +--- +- [370, u'tuple 370'] +... insert into t0 values (371, 'tuple 371') -Insert OK, 1 row affected +--- +- [371, u'tuple 371'] +... insert into t0 values (372, 'tuple 372') -Insert OK, 1 row affected +--- +- [372, u'tuple 372'] +... insert into t0 values (373, 'tuple 373') -Insert OK, 1 row affected +--- +- [373, u'tuple 373'] +... insert into t0 values (374, 'tuple 374') -Insert OK, 1 row affected +--- +- [374, u'tuple 374'] +... select * from t0 where k0 = 370 -Found 1 tuple: -[370, 'tuple 370'] +--- +- [370, u'tuple 370'] +... select * from t0 where k0 = 371 -Found 1 tuple: -[371, 'tuple 371'] +--- +- [371, u'tuple 371'] +... select * from t0 where k0 = 372 -Found 1 tuple: -[372, 'tuple 372'] +--- +- [372, u'tuple 372'] +... select * from t0 where k0 = 373 -Found 1 tuple: -[373, 'tuple 373'] +--- +- [373, u'tuple 373'] +... select * from t0 where k0 = 374 -Found 1 tuple: -[374, 'tuple 374'] +--- +- [374, u'tuple 374'] +... insert into t0 values (375, 'tuple 375') -Insert OK, 1 row affected +--- +- [375, u'tuple 375'] +... insert into t0 values (376, 'tuple 376') -Insert OK, 1 row affected +--- +- [376, u'tuple 376'] +... insert into t0 values (377, 'tuple 377') -Insert OK, 1 row affected +--- +- [377, u'tuple 377'] +... insert into t0 values (378, 'tuple 378') -Insert OK, 1 row affected +--- +- [378, u'tuple 378'] +... insert into t0 values (379, 'tuple 379') -Insert OK, 1 row affected +--- +- [379, u'tuple 379'] +... select * from t0 where k0 = 375 -Found 1 tuple: -[375, 'tuple 375'] +--- +- [375, u'tuple 375'] +... select * from t0 where k0 = 376 -Found 1 tuple: -[376, 'tuple 376'] +--- +- [376, u'tuple 376'] +... select * from t0 where k0 = 377 -Found 1 tuple: -[377, 'tuple 377'] +--- +- [377, u'tuple 377'] +... select * from t0 where k0 = 378 -Found 1 tuple: -[378, 'tuple 378'] +--- +- [378, u'tuple 378'] +... select * from t0 where k0 = 379 -Found 1 tuple: -[379, 'tuple 379'] +--- +- [379, u'tuple 379'] +... rollback servers configuration box.cfg.reload() --- @@ -2269,55 +3409,85 @@ box.cfg.reload() ... test 19 iteration insert into t0 values (380, 'tuple 380') -Insert OK, 1 row affected +--- +- [380, u'tuple 380'] +... insert into t0 values (381, 'tuple 381') -Insert OK, 1 row affected +--- +- [381, u'tuple 381'] +... insert into t0 values (382, 'tuple 382') -Insert OK, 1 row affected +--- +- [382, u'tuple 382'] +... insert into t0 values (383, 'tuple 383') -Insert OK, 1 row affected +--- +- [383, u'tuple 383'] +... insert into t0 values (384, 'tuple 384') -Insert OK, 1 row affected +--- +- [384, u'tuple 384'] +... select * from t0 where k0 = 380 -Found 1 tuple: -[380, 'tuple 380'] +--- +- [380, u'tuple 380'] +... select * from t0 where k0 = 381 -Found 1 tuple: -[381, 'tuple 381'] +--- +- [381, u'tuple 381'] +... select * from t0 where k0 = 382 -Found 1 tuple: -[382, 'tuple 382'] +--- +- [382, u'tuple 382'] +... select * from t0 where k0 = 383 -Found 1 tuple: -[383, 'tuple 383'] +--- +- [383, u'tuple 383'] +... select * from t0 where k0 = 384 -Found 1 tuple: -[384, 'tuple 384'] +--- +- [384, u'tuple 384'] +... insert into t0 values (385, 'tuple 385') -Insert OK, 1 row affected +--- +- [385, u'tuple 385'] +... insert into t0 values (386, 'tuple 386') -Insert OK, 1 row affected +--- +- [386, u'tuple 386'] +... insert into t0 values (387, 'tuple 387') -Insert OK, 1 row affected +--- +- [387, u'tuple 387'] +... insert into t0 values (388, 'tuple 388') -Insert OK, 1 row affected +--- +- [388, u'tuple 388'] +... insert into t0 values (389, 'tuple 389') -Insert OK, 1 row affected +--- +- [389, u'tuple 389'] +... select * from t0 where k0 = 385 -Found 1 tuple: -[385, 'tuple 385'] +--- +- [385, u'tuple 385'] +... select * from t0 where k0 = 386 -Found 1 tuple: -[386, 'tuple 386'] +--- +- [386, u'tuple 386'] +... select * from t0 where k0 = 387 -Found 1 tuple: -[387, 'tuple 387'] +--- +- [387, u'tuple 387'] +... select * from t0 where k0 = 388 -Found 1 tuple: -[388, 'tuple 388'] +--- +- [388, u'tuple 388'] +... select * from t0 where k0 = 389 -Found 1 tuple: -[389, 'tuple 389'] +--- +- [389, u'tuple 389'] +... swap servers box.cfg.reload() --- @@ -2328,55 +3498,85 @@ box.cfg.reload() - ok ... insert into t0 values (390, 'tuple 390') -Insert OK, 1 row affected +--- +- [390, u'tuple 390'] +... insert into t0 values (391, 'tuple 391') -Insert OK, 1 row affected +--- +- [391, u'tuple 391'] +... insert into t0 values (392, 'tuple 392') -Insert OK, 1 row affected +--- +- [392, u'tuple 392'] +... insert into t0 values (393, 'tuple 393') -Insert OK, 1 row affected +--- +- [393, u'tuple 393'] +... insert into t0 values (394, 'tuple 394') -Insert OK, 1 row affected +--- +- [394, u'tuple 394'] +... select * from t0 where k0 = 390 -Found 1 tuple: -[390, 'tuple 390'] +--- +- [390, u'tuple 390'] +... select * from t0 where k0 = 391 -Found 1 tuple: -[391, 'tuple 391'] +--- +- [391, u'tuple 391'] +... select * from t0 where k0 = 392 -Found 1 tuple: -[392, 'tuple 392'] +--- +- [392, u'tuple 392'] +... select * from t0 where k0 = 393 -Found 1 tuple: -[393, 'tuple 393'] +--- +- [393, u'tuple 393'] +... select * from t0 where k0 = 394 -Found 1 tuple: -[394, 'tuple 394'] +--- +- [394, u'tuple 394'] +... insert into t0 values (395, 'tuple 395') -Insert OK, 1 row affected +--- +- [395, u'tuple 395'] +... insert into t0 values (396, 'tuple 396') -Insert OK, 1 row affected +--- +- [396, u'tuple 396'] +... insert into t0 values (397, 'tuple 397') -Insert OK, 1 row affected +--- +- [397, u'tuple 397'] +... insert into t0 values (398, 'tuple 398') -Insert OK, 1 row affected +--- +- [398, u'tuple 398'] +... insert into t0 values (399, 'tuple 399') -Insert OK, 1 row affected +--- +- [399, u'tuple 399'] +... select * from t0 where k0 = 395 -Found 1 tuple: -[395, 'tuple 395'] +--- +- [395, u'tuple 395'] +... select * from t0 where k0 = 396 -Found 1 tuple: -[396, 'tuple 396'] +--- +- [396, u'tuple 396'] +... select * from t0 where k0 = 397 -Found 1 tuple: -[397, 'tuple 397'] +--- +- [397, u'tuple 397'] +... select * from t0 where k0 = 398 -Found 1 tuple: -[398, 'tuple 398'] +--- +- [398, u'tuple 398'] +... select * from t0 where k0 = 399 -Found 1 tuple: -[399, 'tuple 399'] +--- +- [399, u'tuple 399'] +... rollback servers configuration box.cfg.reload() --- diff --git a/test/replication/swap.test.py b/test/replication/swap.test.py index c1a1ef5ed0..9c4d2348a3 100644 --- a/test/replication/swap.test.py +++ b/test/replication/swap.test.py @@ -24,6 +24,22 @@ replica.deploy("replication/cfg/replica.cfg", replica.find_exe(self.args.builddir), os.path.join(self.args.vardir, "replica")) +schema = Schema({ + 0 : { + 'default_type': tntSTR, + 'fields' : { + 0 : tntNUM, + 1 : tntSTR + }, + 'indexes': { + 0 : [0] # HASH + } + } +}) + +master.sql.py_con.schema = schema +replica.sql.py_con.schema = schema + master.admin("box.replace(box.schema.SPACE_ID, 0, 0, 'tweedledum')") master.admin("box.replace(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num')") id = ID_BEGIN -- GitLab