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
8dda6a9f
Commit
8dda6a9f
authored
6 months ago
by
Kurdakov Alexander
Browse files
Options
Downloads
Patches
Plain Diff
test: expel offline instance works
parent
7156a7a1
No related branches found
No related tags found
1 merge request
!1318
test: expel offline instance works
Pipeline
#51679
passed
6 months ago
Stage: test
Stage: docker
Stage: stress-test
Stage: front-deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/int/test_expelling.py
+29
-0
29 additions, 0 deletions
test/int/test_expelling.py
with
29 additions
and
0 deletions
test/int/test_expelling.py
+
29
−
0
View file @
8dda6a9f
...
...
@@ -108,3 +108,32 @@ def test_raft_id_after_expel(cluster: Cluster):
i4
=
cluster
.
add_instance
()
assert
i4
.
raft_id
==
4
def
test_expelled_instance_is_not_offline
(
cluster
:
Cluster
):
cluster
.
deploy
(
instance_count
=
2
)
# second instance just for quorum
i1
,
_
=
cluster
.
instances
ddl
=
i1
.
sql
(
"""
CREATE TABLE
"
testing_space
"
(
"
id
"
INTEGER NOT NULL, PRIMARY KEY (
"
id
"
) )
DISTRIBUTED BY (
"
id
"
)
"""
)
assert
ddl
[
"
row_count
"
]
==
1
response
=
i1
.
sql
(
"
INSERT INTO testing_space VALUES
"
+
"
,
"
.
join
([
f
"
(
{
i
}
)
"
for
i
in
range
(
1000
)])
)
assert
response
[
"
row_count
"
]
==
1000
i3
=
cluster
.
add_instance
()
cluster
.
wait_until_instance_has_this_many_active_buckets
(
i3
,
1000
)
i3
.
kill
()
cluster
.
expel
(
i3
,
peer
=
i1
)
Retriable
(
timeout
=
10
).
call
(
lambda
:
assert_instance_expelled
(
i3
,
i1
))
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