Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
picodata
Commits
2b82f806
Commit
2b82f806
authored
2 years ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
test: check that instance configures vshard when restarting
parent
83502c0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!353
test: check that instance configures vshard when restarting
Pipeline
#13443
passed
2 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/int/test_basics.py
+24
-0
24 additions, 0 deletions
test/int/test_basics.py
with
24 additions
and
0 deletions
test/int/test_basics.py
+
24
−
0
View file @
2b82f806
...
...
@@ -234,3 +234,27 @@ def test_raft_log(instance: Instance):
p
=
instance
.
port
,
b
=
"
{}
"
)
assert
strip_spaces
(
expected
)
==
strip_spaces
(
raft_log
)
def
test_governor_notices_restarts
(
instance
:
Instance
):
def
check_vshard_configured
(
instance
:
Instance
):
assert
instance
.
eval
(
"""
local replicasets = vshard.router.info().replicasets
local replica_uuid = replicasets[box.info.cluster.uuid].replica.uuid
return replica_uuid == box.info.uuid
"""
)
# vshard is configured after first start
check_vshard_configured
(
instance
)
assert
instance
.
current_grade
()
==
dict
(
variant
=
"
Online
"
,
incarnation
=
1
)
instance
.
restart
()
instance
.
wait_online
()
# vshard is configured again after restart
check_vshard_configured
(
instance
)
assert
instance
.
current_grade
()
==
dict
(
variant
=
"
Online
"
,
incarnation
=
2
)
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