[TRACKING ISSUE] Don't allow empty memberlist on cluster id changes [API-1215]
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
まず、リンクされている Java PR #20818 と、関連する issue #20264 の失敗を読みます。cluster-id の変更処理と ClientHotRestartTest を確認します。完了の条件は、クラスタの再起動で必要なメンバーイベントが発行され、空の memberlist が公開されないことです。また、関連する hot-restart の動作が引き続きパスする必要があります。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 115
- フォーク
- 78
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hazelcast/hazelcast-python-client のほかの issue
-
Type: Test-Failure
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Type: Test-Failure
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
asyncio Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
asyncio to-jira Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hazelcast/hazelcast-python-client#761 · コメント 1 件 ·
-
asyncio to-jira Type: Test-Failure
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
hazelcast/hazelcast-python-client#760 · コメント 1 件 ·
hazelcast/hazelcast-python-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
marketcalls/openalgo#2472 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
marimo-team/marimo#11949 ·
メンテナーはふだん 1 日以内に返信
-
bug server-time v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/servers#5559 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jxxghp/MoviePilot#7449 ·
メンテナーはふだん 1 日以内に返信
-
devops help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
guaardvark/guaardvark#421 ·
メンテナーはふだん 2 日以内に返信