[TRACKING ISSUE] Don't allow empty memberlist on cluster id changes [API-1215]
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách đọc Java PR #20818 được liên kết và lỗi liên quan trong issue #20264. Kiểm tra việc xử lý thay đổi cluster-id và ClientHotRestartTest; được xem là hoàn tất khi các lần khởi động lại cluster phát ra các sự kiện member bắt buộc mà không để lộ một memberlist rỗng, đồng thời hành vi hot-restart liên quan vẫn pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The tracking issue for the Java side PR.
See https://github.com/hazelcast/hazelcast/pull/20818 for details.
When cluster id changed we were resetting member list
with an empty memberlist. It turned out that there are implementations
that assumes it will never be empty.
Following test failure is an example of it.
https://github.com/hazelcast/hazelcast/issues/20264
Instead of clearing the memberlist on cluster id change, we
are keeping the cluster id as part of the latest snapshot
to be able to fire correct events. In other words, on cluster restart
we need to fire removed events for all old members and added
events for all new members coming from restarted cluster.
We were achieving this via clearing memberlist and firing removed
events first. Then after some time new memberlist comes and we fire
added events. And the memberlist is empty during this period.
To prevent that, we have changed the logic. Now clusterUuid is
part of the logic. We don't clear the memberlist at all. Upon receiving,
an event, we compare existing and new clusterUuid. If they are different,
without comparing the members, we fire removed events for all existing
members, and added events for all new ones to achieve same behaviour.
Note that clearing memberlist on cluster id change was
introduced as a fix to https://github.com/hazelcast/hazelcast/pull/18245
So it is important not to break related ClientHotRestartTest
fixes https://github.com/hazelcast/hazelcast/issues/20264
Checklist:
- Labels (
Team:,Type:,Source:,Module:) and Milestone set - Label
Add to Release NotesorNot Release Notes contentset - Request reviewers if possible
- Send backports/forwardports if fix needs to be applied to past/future releases
- New public APIs have
@Nonnull/@Nullableannotations - New public APIs have
@sincetags in Javadoc
- Ngôn ngữ chính
- Python
- Star
- 115
- Fork
- 78
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hazelcast/hazelcast-python-client
-
Type: Test-Failure
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Type: Test-Failure
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
asyncio Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#761 · 1 bình luận ·
-
asyncio to-jira Type: Test-Failure
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hazelcast/hazelcast-python-client#760 · 1 bình luận ·
Tất cả issue của hazelcast/hazelcast-python-client
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
marketcalls/openalgo#2472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
marimo-team/marimo#11949 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug server-time v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
modelcontextprotocol/servers#5559 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jxxghp/MoviePilot#7449 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
devops help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
guaardvark/guaardvark#421 ·
Maintainer thường phản hồi trong vòng 2 ngày