Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
8063ad6c
Commit
8063ad6c
authored
6 months ago
by
Dmitry Ivanov
Browse files
Options
Downloads
Patches
Plain Diff
fix(qpromote): drop flaky test
NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
parent
b1d7f001
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/replication-luatest/qpromote_several_outstanding_promotes_test.lua
+0
-112
0 additions, 112 deletions
...on-luatest/qpromote_several_outstanding_promotes_test.lua
test/replication-luatest/suite.ini
+1
-1
1 addition, 1 deletion
test/replication-luatest/suite.ini
with
1 addition
and
113 deletions
test/replication-luatest/qpromote_several_outstanding_promotes_test.lua
deleted
100644 → 0
+
0
−
112
View file @
b1d7f001
local
t
=
require
(
'luatest'
)
local
common
=
require
(
'test.replication-luatest.qpromote_common'
)
local
g
=
common
.
make_test_group
({
nodes
=
5
,
quorum
=
3
})
-- The idea here is that in a cluster of 5 nodes we can have 2 nodes
-- being unresponsive and cluster still should continue. In this case two
-- nodes become unresponsive by emitting promotes that get stuck.
g
.
test_two_stuck_outstanding_promotes
=
function
(
g
)
local
n1
=
g
.
cluster
.
servers
[
1
]
local
n2
=
g
.
cluster
.
servers
[
2
]
local
n3
=
g
.
cluster
.
servers
[
3
]
-- Both n1 and n2 have hard time pushing out their promotes.
common
.
spawn_stuck_promote
(
n1
)
common
.
spawn_stuck_promote
(
n2
)
common
.
promote
(
n3
)
n3
:
exec
(
function
()
box
.
space
.
test
:
replace
({
1
})
end
)
common
.
remove_wal_delay_on_xrow_type
(
n1
)
common
.
remove_wal_delay_on_xrow_type
(
n2
)
for
_
,
server
in
ipairs
(
g
.
cluster
.
servers
)
do
server
:
wait_for_vclock_of
(
n3
)
t
.
assert_equals
(
server
:
exec
(
function
()
return
box
.
space
.
test
:
get
{
1
}
end
),
{
1
})
end
common
.
ensure_healthy
(
g
.
cluster
.
servers
)
common
.
promote
(
n1
)
n1
:
exec
(
function
()
box
.
space
.
test
:
replace
({
2
})
end
)
for
_
,
server
in
ipairs
(
g
.
cluster
.
servers
)
do
t
.
assert_equals
(
server
:
exec
(
function
()
return
box
.
space
.
test
:
get
{
2
}
end
),
{
2
})
end
common
.
ensure_healthy
(
g
.
cluster
.
servers
)
end
-- Variation of the previous test, but here nodes get stuck on confirm request
g
.
test_two_stuck_outstanding_confirms
=
function
(
g
)
local
n1
=
g
.
cluster
.
servers
[
1
]
local
n2
=
g
.
cluster
.
servers
[
2
]
local
n3
=
g
.
cluster
.
servers
[
3
]
-- Both n1 and n2 have hard time pushing out their confirms.
common
.
spawn_promote_stuck_on_confirm
(
n1
)
common
.
spawn_promote_stuck_on_confirm
(
n2
)
common
.
promote
(
n3
)
n3
:
exec
(
function
()
box
.
space
.
test
:
replace
({
1
})
end
)
common
.
remove_wal_delay_on_xrow_type
(
n1
)
common
.
remove_wal_delay_on_xrow_type
(
n2
)
for
_
,
server
in
ipairs
(
g
.
cluster
.
servers
)
do
server
:
wait_for_vclock_of
(
n3
)
t
.
assert_equals
(
server
:
exec
(
function
()
return
box
.
space
.
test
:
get
{
1
}
end
),
{
1
})
end
common
.
ensure_healthy
(
g
.
cluster
.
servers
)
common
.
promote
(
n1
)
n1
:
exec
(
function
()
box
.
space
.
test
:
replace
({
2
})
end
)
for
_
,
server
in
ipairs
(
g
.
cluster
.
servers
)
do
t
.
assert_equals
(
server
:
exec
(
function
()
return
box
.
space
.
test
:
get
{
2
}
end
),
{
2
})
end
common
.
ensure_healthy
(
g
.
cluster
.
servers
)
end
g
.
test_two_dependent_promotes
=
function
(
g
)
local
n1
=
g
.
cluster
.
servers
[
1
]
local
n2
=
g
.
cluster
.
servers
[
2
]
-- emit promote without confirming it
common
.
spawn_promote_stuck_on_confirm
(
n1
)
-- wait until everybody has this pending promote
for
_
,
server
in
ipairs
(
g
.
cluster
.
servers
)
do
common
.
wait_for_promote_queue_len
(
server
,
1
)
end
-- n2's promote is logicaly dependent on n1's promote
common
.
promote
(
n2
)
common
.
remove_wal_delay_on_xrow_type
(
n1
)
common
.
ensure_healthy
(
g
.
cluster
.
servers
)
end
This diff is collapsed.
Click to expand it.
test/replication-luatest/suite.ini
+
1
−
1
View file @
8063ad6c
...
...
@@ -2,4 +2,4 @@
core
=
luatest
description
=
replication luatests
is_parallel
=
True
release_disabled
=
gh_5295_split_brain_test.lua gh_6036_qsync_order_test.lua gh_6842_qsync_applier_order_test.lua gh_6033_box_promote_demote_test.lua gh_7253_election_long_wal_write_test.lua gh_7086_box_issue_promote_assert_test.lua qpromote_aba_leader_test.lua qpromote_diverging_limbo_owner_test.lua qpromote_transient_wal_error_on_promote_write_test.lua
qpromote_several_outstanding_promotes_test.lua
release_disabled
=
gh_5295_split_brain_test.lua gh_6036_qsync_order_test.lua gh_6842_qsync_applier_order_test.lua gh_6033_box_promote_demote_test.lua gh_7253_election_long_wal_write_test.lua gh_7086_box_issue_promote_assert_test.lua qpromote_aba_leader_test.lua qpromote_diverging_limbo_owner_test.lua qpromote_transient_wal_error_on_promote_write_test.lua
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment