[TRACKING ISSUE] Don't allow empty memberlist on cluster id changes [API-1215]
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- java
- Área
- distributed-systems
Línea de trabajo
Empieza leyendo el PR de Java #20818 enlazado y el fallo relacionado en el issue #20264. Comprueba el manejo del cambio de cluster-id y ClientHotRestartTest; se considera terminado cuando los reinicios del clúster emiten los eventos de miembro requeridos sin exponer una memberlist vacía, mientras el comportamiento relacionado de hot-restart sigue pasando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 115
- Forks
- 78
- Merge medio
- 2 d 23 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hazelcast/hazelcast-python-client
-
Type: Test-Failure
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Type: Test-Failure
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
-
asyncio Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
-
asyncio to-jira Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
hazelcast/hazelcast-python-client#761 · 1 comentario ·
-
asyncio to-jira Type: Test-Failure
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
hazelcast/hazelcast-python-client#760 · 1 comentario ·
Todos los issues de hazelcast/hazelcast-python-client
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
marketcalls/openalgo#2472 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
marimo-team/marimo#11949 ·
Los mantenedores suelen responder en 1 día
-
bug server-time v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/servers#5559 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
jxxghp/MoviePilot#7449 ·
Los mantenedores suelen responder en 1 día
-
devops help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
guaardvark/guaardvark#421 ·
Los mantenedores suelen responder en 2 días