[TRACKING ISSUE] Don't allow empty memberlist on cluster id changes [API-1215]
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 20/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- java
- Domaine
- distributed-systems
Piste de recherche
Commencez par lire le PR Java #20818 lié et l’échec associé dans l’issue #20264. Vérifiez la gestion de la modification de cluster-id et ClientHotRestartTest ; le travail est considéré comme terminé lorsque les redémarrages du cluster émettent les événements de membre requis sans exposer une memberlist vide, tandis que le comportement de hot-restart associé continue de passer.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 115
- Forks
- 78
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de hazelcast/hazelcast-python-client
-
Type: Test-Failure
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Type: Test-Failure
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
-
asyncio Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#761 · 1 commentaire ·
-
asyncio to-jira Type: Test-Failure
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
hazelcast/hazelcast-python-client#760 · 1 commentaire ·
Toutes les issues de hazelcast/hazelcast-python-client
Issues similaires
-
breaking change
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
it-at-m/lhm_actions#441 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
TigreGotico/euskaphone#68 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ultralytics/ultralytics#27258 ·
Les mainteneurs répondent en général sous 1 jour