Typed exception for tuple deserialization failures
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- distributed-systems
Línea de trabajo
Empieza por DeserializingConnectionCallback.recv() y KryoTupleDeserializer y, a continuación, sigue kryo.deserializeFrom y los serializers registrados en topology.kryo.register. Revisa #9074 y #9076 para conocer el contexto de worker-kill y del manejo actual de excepciones. Se considera terminado cuando haya un límite de wrap acordado y un comportamiento de fallo tipado que distinga los descartes intencionados de los errores del serializer o del framework.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The #9076 review raised a design question that deserves its own issue.
Today DeserializingConnectionCallback.recv() decides to drop a message by matching the decode failure against a list of exception types, walked along the cause chain. The review sketched a cleaner shape: KryoTupleDeserializer would validate the structural fields it already reads (source task id, stream id) and throw a dedicated exception for values the topology cannot resolve, instead of relying on a NullPointerException or IllegalArgumentException coming from deep in the lookup; the exception types that only a corrupt byte stream produces (KryoException, IOException, BufferUnderflowException, NegativeArraySizeException) would be wrapped into that same dedicated exception at the source; and recv() would catch exactly one intentional type, with everything else propagating.
The open problem is the wrap boundary. kryo.deserializeFrom runs the framework decode and the serializers registered through topology.kryo.register with nothing between them, so an IllegalArgumentException or ClassCastException thrown by a user serializer is indistinguishable from the same type thrown by the framework decode. Dropping both swallows real topology bugs. Unwrapping both is not possible either: with registration required, an unregistered class fails with a raw IllegalArgumentException from Kryo.getRegistration(Class), which is exactly the remote worker-kill vector #9074 fixed, so the generic types cannot simply be made fatal again.
Directions worth considering: structural validation typed at the source as above, plus a strict mode that turns drops back into fatal errors for operators who prefer loud failure; or attaching enough context (task, stream, input position) to the wrapped failure to separate framework decode errors from serializer errors in the logs.
- Lenguaje dominante
- Java
- Estrellas
- 6.7k
- Forks
- 4k
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 86
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 apache/storm
-
docker-to-squash.py: check_dependencies should find mksquashfs on PATHPosiblemente ocupada @linzch3 la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
docker-to-squash.py: get_working_dir creates a new directory on every call, so push-update cannot find pulled imagesPosiblemente ocupada @linzch3 la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
docker-to-squash.py does not run on Python 3Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
apache/storm#9155 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Kafka spout cannot commit past a message that always fails to deserializePosiblemente ocupada @linzch3 la tomó hace 10 días. Abiertobug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
apache/storm#9078 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/storm
Issues similares
-
NeoForge 安装任务的子任务描述有误Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
PCL-Community/PCL-CE#3907 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 2 días
-
area/dependencies area/dependencies/quarkus backport/26.6 backport/26.8 kind/cve severity/critical source/scan-dependencies status/triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
chore
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
lugassawan/swe-workbench#841 ·
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
EndlessPixel-Studio/FakePlayer-CE#155 ·
Los mantenedores suelen responder en 1 día