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
afb7aea1
Commit
afb7aea1
authored
6 months ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
test: fix test_join_with_duplicate_instance_id
parent
aabf6206
No related branches found
Branches containing commit
No related tags found
1 merge request
!1303
fix: expel is blocked until buckets are rebalanced from last instance
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/int/test_joining.py
+17
-3
17 additions, 3 deletions
test/int/test_joining.py
with
17 additions
and
3 deletions
test/int/test_joining.py
+
17
−
3
View file @
afb7aea1
...
...
@@ -498,12 +498,22 @@ def test_pico_service_invalid_requirements_password(cluster: Cluster):
def
test_join_with_duplicate_instance_name
(
cluster
:
Cluster
):
[
leader
,
quorum_helper
]
=
cluster
.
deploy
(
instance_count
=
2
)
same_replicaset
=
"
r1
"
cluster
.
set_service_password
(
"
secret
"
)
leader
=
cluster
.
add_instance
(
replicaset_name
=
same_replicaset
,
wait_online
=
False
)
# Quorum helper
cluster
.
add_instance
(
replicaset_name
=
same_replicaset
,
wait_online
=
False
)
cluster
.
wait_online
()
namesakes
=
[]
log_crawlers
=
[]
for
_
in
range
(
5
):
i
=
cluster
.
add_instance
(
wait_online
=
False
,
instance_name
=
"
original-name
"
)
i
=
cluster
.
add_instance
(
wait_online
=
False
,
instance_name
=
"
original-name
"
,
replicaset_name
=
same_replicaset
,
)
lc
=
log_crawler
(
i
,
"
`original-name` is already joined
"
)
log_crawlers
.
append
(
lc
)
namesakes
.
append
(
i
)
...
...
@@ -529,7 +539,11 @@ def test_join_with_duplicate_instance_name(cluster: Cluster):
namesakes
=
[]
log_crawlers
=
[]
for
_
in
range
(
5
):
i
=
cluster
.
add_instance
(
wait_online
=
False
,
instance_name
=
"
original-name
"
)
i
=
cluster
.
add_instance
(
wait_online
=
False
,
instance_name
=
"
original-name
"
,
replicaset_name
=
same_replicaset
,
)
lc
=
log_crawler
(
i
,
"
`original-name` is already joined
"
)
log_crawlers
.
append
(
lc
)
namesakes
.
append
(
i
)
...
...
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