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

Aperta
#1,200 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp, java

Direzione di ricerca

Questa è una issue di monitoraggio per il PR 24745 lato Java, non una modifica isolata nel client C++. Leggi la pull request collegata e la logica descritta di reset e connessione di cluster-service; il lavoro è completato quando il client salta l’elenco dei membri del cluster precedente dopo un failover.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
90
Fork
54
Merge medio
2g 24m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazelcast/hazelcast-cpp-client

Tutte le issue di hazelcast/hazelcast-cpp-client

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.