Skip to content

test: flaky box/push and box/tree_pk #229

Open
@Gerold103

Description

@Gerold103

I used master branch with the following reproduce file:

- [box/hash_gh-1467.test.lua, null]
- [box/hash_not_a_multikey.test.lua, null]
- [box/gh-4770-broken-pairs-for-space-objects.test.lua, null]
- [box/hash_iterate.test.lua, null]
- [box/hash_string_insert.test.lua, null]
- [box/cfg.test.lua, null]
- [box/access_escalation.test.lua, null]
- [box/net_msg_max.test.lua, null]
- [box/tree_pk.test.lua, null]
- [box/push.test.lua, null]
- [box/rtree_misc.test.lua, null]
- [box/rtree_rect.test.lua, null]
- [box/hash_32bit_insert.test.lua, null]
- [box/gh-4627-session-use-after-free.test.lua, null]
- [box/sql-update-with-nested-select.test.lua, null]
- [box/gh-2763-session-credentials-update.test.lua, null]
- [box/gh-4513-netbox-self-and-connect-interchangeable.test.lua, local]
- [box/hash_64bit_replace.test.lua, null]
- [box/gh-4672-min-integer-value-in-serializer.test.lua, null]
- [box/alter_limits.test.lua, null]
- [box/iproto.test.lua, null]
- [box/access_bin.test.lua, null]

When I run it using python test-run.py --reproduce reproduce.yaml I get various diffs. Some of them:

[001] box/push.test.lua                                               [ fail ]
[001] 
[001] Test failed! Result content mismatch:
[001] --- box/push.result	Sun Apr 12 18:06:29 2020
[001] +++ box/push.reject	Sun Apr 12 18:39:10 2020
[001] @@ -199,7 +199,7 @@
[001]  ...
[001]  #s:select{}
[001]  ---
[001] -- 400
[001] +- 386
[001]  ...
[001]  --
[001]  -- Ok to push NULL.
[001] 
[001] box/push.test.lua                                               [ fail ]
[001] 
[001] Test failed! Result content mismatch:
[001] --- box/push.result	Sun Apr 12 18:06:29 2020
[001] +++ box/push.reject	Sun Apr 12 18:39:22 2020
[001] @@ -480,13 +480,11 @@
[001]  ...
[001]  messages
[001]  ---
[001] -- - 100
[001] -  - Duplicate key exists in unique index 'pk' in space 'test'
[001] +- []
[001]  ...
[001]  keys
[001]  ---
[001] -- - 1
[001] -  - null
[001] +- []
[001]  ...
[001]  box.schema.func.drop('do_push_and_duplicate')
[001]  ---
[001] 
[001] box/tree_pk.test.lua                                            [ fail ]
[001] 
[001] Test failed! Result content mismatch:
[001] --- box/tree_pk.result	Sat Apr 11 18:57:19 2020
[001] +++ box/tree_pk.reject	Sun Apr 12 18:43:53 2020
[001] @@ -796,52 +796,49 @@
[001]  ...
[001]  i1 = s:create_index('i1', { type = 'tree', parts = {{1, 'str', collation='test'}}, unique = true })
[001]  ---
[001] +- error: 'Wrong index options (field 1): ''collation'' must be unsigned'
[001]  ...
[001]  _ = s:replace{"ааа"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"еее"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"ёёё"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"жжж"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"яяя"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"ААА"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  _ = s:replace{"ЯЯЯ"}
[001]  ---
[001] +- error: 'No index #0 is defined in space ''test'''
[001]  ...
[001]  -- good output
[001]  s:select{}
[001]  ---
[001] box/tree_pk.test.lua                                            [ fail ]
[001] 
[001] Test failed! Result content mismatch:
[001] --- box/tree_pk.result	Sat Apr 11 18:57:19 2020
[001] +++ box/tree_pk.reject	Sun Apr 12 18:46:43 2020
[001] @@ -663,27 +663,27 @@
[001]  ...
[001]  i2:select{1}
[001]  ---
[001] -- - ['3', 1, null]
[001] -  - ['4', 1, null]
[001] -  - ['5', 1, null]
[001] -  - ['6', 1, null]
[001] -  - ['7', 1, null]
[001] +- - ['3']
[001] +  - ['4']
[001] +  - ['5']
[001] +  - ['6']
[001] +  - ['7']
[001]  ...
[001]  i2:select{2}
[001]  ---
[001] -- - ['13', 2, 300]
[001] -  - ['14', 2, 500]
[001] -  - ['15', 2, 100]
[001] -  - ['16', 2, 200]
[001] -  - ['17', 2, 400]
[001] +- - ['13']
[001] +  - ['14']
[001] +  - ['15']
[001] +  - ['16']
[001] +  - ['17']
[001]  ...
[001]  i3:select{box.NULL}
[001]  ---
[001] -- - ['3', 1, null]
[001] -  - ['4', 1, null]
[001] -  - ['5', 1, null]
[001] -  - ['6', 1, null]
[001] -  - ['7', 1, null]
[001] +- - ['3']
[001] +  - ['4']
[001] +  - ['5']
[001] +  - ['6']
[001] +  - ['7']
[001]  ...
[001]  s:drop()
[001]  ---
[001] 

I also got a crash once, but couldn't reproduce it again:

[001] box/push.test.lua                                               
[001] 
[001] [Instance "box" killed by signal: 6 (SIGABRT)]
[001] 
[001] Last 15 lines of Tarantool Log file [Instance "box"][/Users/gerold/Work/Repositories/tarantool/test/var/001_box/box.log]:
[001] 2020-04-12 18:35:42.474 [72160] snapshot/101/main I> saving snapshot `/Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000081.snap.inprogress'
[001] 2020-04-12 18:35:42.475 [72160] snapshot/101/main I> done
[001] 2020-04-12 18:35:42.475 [72160] main I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000000.snap
[001] 2020-04-12 18:35:42.476 [72160] wal I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000000.xlog
[001] 2020-04-12 18:35:42.490 [72160] main/106/checkpoint_daemon I> scheduled next checkpoint for Sun Apr 12 20:28:25 2020
[001] 2020-04-12 18:35:42.491 [72160] snapshot/101/main I> saving snapshot `/Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000092.snap.inprogress'
[001] 2020-04-12 18:35:42.492 [72160] snapshot/101/main I> done
[001] 2020-04-12 18:35:42.493 [72160] main I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000080.snap
[001] 2020-04-12 18:35:42.493 [72160] wal I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000080.xlog
[001] 2020-04-12 18:35:42.494 [72160] main/106/checkpoint_daemon I> scheduled next checkpoint for Sun Apr 12 20:16:28 2020
[001] 2020-04-12 18:35:42.494 [72160] snapshot/101/main I> saving snapshot `/Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000093.snap.inprogress'
[001] 2020-04-12 18:35:42.495 [72160] snapshot/101/main I> done
[001] 2020-04-12 18:35:42.495 [72160] main I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000081.snap
[001] 2020-04-12 18:35:42.496 [72160] wal I> removed /Users/gerold/Work/Repositories/tarantool/test/var/001_box/box/00000000000000000081.xlog
[001] Assertion failed: (i < 0), function hint_int, file /Users/gerold/Work/Repositories/tarantool/src/box/tuple_compare.cc, line 1541.
[001] [ fail ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions