Skip to content

Test vinyl.select_consistency.defer_deletes:true is flaky - assertion failure at line 244 #11019

Open
@sergepetrenko

Description

The test vinyl-luatest/select_consistency_test.lua failed like this on branch release/3.3 in CI (link):

1855/1913 Test #1761: test/vinyl-luatest/select_consistency_test.lua .........................................................***Failed   45.72 sec
Tarantool version is 3.3.2-entrypoint-5-gabaa8a42a32
TAP version 13
1..2
# Started on Sat Dec 28 10:06:11 2024
# Starting group: vinyl.select_consistency.defer_deletes:true
not ok 1	vinyl.select_consistency.defer_deletes:true.test_select_consistency
#   ...tarantool/test/vinyl-luatest/select_consistency_test.lua:244: expected: 80724, actual: 92246
#   stack traceback:
#   	...tarantool/test/vinyl-luatest/select_consistency_test.lua:244: in function <...tarantool/test/vinyl-luatest/select_consistency_test.lua:217>
#   	...tarantool/test/vinyl-luatest/select_consistency_test.lua:217: in function 'vinyl.select_consistency.defer_deletes:true.test_select_consistency'
#   artifacts:
#   	master -> /tmp/t/artifacts/master-LVVfYGbwUB5F
# Starting group: vinyl.select_consistency.defer_deletes:false
ok     2	vinyl.select_consistency.defer_deletes:false.test_select_consistency
# Ran 2 tests in 45.499 seconds, 1 succeeded, 1 failed

Here's an exerpt from the test around these lines:

local s = box.space.test
box.stat.reset()
box.snapshot()
s.index.i1:compact()
t.helpers.retrying({timeout = 60}, function()
t.assert_equals(box.stat.vinyl().scheduler.compaction_queue, 0)
t.assert_equals(box.stat.vinyl().scheduler.tasks_inprogress, 0)
end)
box.snapshot()
s.index.i2:compact()
s.index.i3:compact()
s.index.i4:compact()
s.index.i5:compact()
t.helpers.retrying({timeout = 60}, function()
t.assert_equals(box.stat.vinyl().scheduler.compaction_queue, 0)
t.assert_equals(box.stat.vinyl().scheduler.tasks_inprogress, 0)
end)
local c1 = s.index.i1:count()
local c2 = s.index.i2:count()
local c3 = s.index.i3:count()
local c4 = s.index.i4:count()
local c5 = s.index.i5:count()
t.assert_equals(s.index.i1:len(), c1)
t.assert_equals(s.index.i2:len(), c2)
t.assert_equals(s.index.i3:len(), c3)
t.assert_equals(s.index.i4:len(), c4)
t.assert_equals(s.index.i5:len(), c5)
t.assert_equals(c2, c3)
t.assert_equals(c4, c5)

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