[TRACKING ISSUE] Do not try to connect to the old member list after the cluster changes [API-2038]

オープン
#1,200 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, java

調査の方向性

これは、C++クライアントの独立した変更ではなく、Java側のPR 24745を追跡するためのissueです。リンクされたpull requestと、説明されているcluster-serviceのリセットおよび接続ロジックを読み、failover後にクライアントが以前のクラスターのメンバーリストをスキップすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/24745 for details.


During failover, when the client is about to try to connect to the next cluster, it resets some services including the cluster service.

In its reset logic, cluster service clears the member list version, but leaves the members as it is, as there are some services/proxies that rely on the fact that the member list cannot be empty.

This creates a problem for the failover case. After the cluster change, the client still tries to connect to the last known member list, which is the members of the previous cluster.

To solve the problem, I have introduced a new method to the cluster service, which returns the "effective" member list. That is, it returns an empty list after the service is reset, but returns the member list as expected otherwise. With that, the connection logic simply skips the old member list after the client decides to change the cluster to try to connect to.

主要言語
C++
スター
90
フォーク
54
平均マージ
2日 24分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazelcast/hazelcast-cpp-client のほかの issue

hazelcast/hazelcast-cpp-client の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。