[TRACKING ISSUE] Don't allow empty memberlist on cluster id changes [API-1215]
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- distributed-systems
Direzione di ricerca
Inizia leggendo la PR Java #20818 collegata e il problema correlato nell’issue #20264. Controlla la gestione della modifica di cluster-id e ClientHotRestartTest; il lavoro è completato quando i riavvii del cluster emettono gli eventi membro richiesti senza esporre una memberlist vuota, mentre il comportamento correlato di hot-restart continua a superare i test.
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/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
- Lingua principale
- Python
- Stelle
- 115
- Fork
- 78
- Merge medio
- 2g 23h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hazelcast/hazelcast-python-client
-
Type: Test-Failure
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Type: Test-Failure
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
-
asyncio Type: Test-Failure
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
-
asyncio to-jira Type: Test-Failure
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
hazelcast/hazelcast-python-client#761 · 1 commento ·
-
asyncio to-jira Type: Test-Failure
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
hazelcast/hazelcast-python-client#760 · 1 commento ·
Tutte le issue di hazelcast/hazelcast-python-client
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
marketcalls/openalgo#2472 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
marimo-team/marimo#11949 ·
I maintainer di solito rispondono entro 1 giorno
-
bug server-time v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
modelcontextprotocol/servers#5559 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jxxghp/MoviePilot#7449 ·
I maintainer di solito rispondono entro 1 giorno
-
devops help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
guaardvark/guaardvark#421 ·
I maintainer di solito rispondono entro 2 giorni