fix heartbeating in fakeProgress activity
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- backend, distributed-systems
Línea de trabajo
Comienza con la actividad fakeProgress y la reproducción mínima descrita en el issue, centrándote en cuándo se registra el progreso del heartbeat en relación con cada iteración del bucle. Verifica el valor de progreso guardado para un heartbeat después del progreso 4 y prueba un reintento después de un fallo; terminado significa que un reintento no repite la iteración que ya tuvo éxito ni duplica los datos insertados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What are you really trying to do?
When heartbeating after some task (that may be writing data in DB) in fakeProgress activity when there is a failure the activity retries from a previous successful progress which may lead to data inconsistency(when dealing with data insertion in DB).
Describe the bug
With the existing heartbeat in the fakeProgress activity it whem retried it have to perform an extra iteration, which when the heartbeat is sent immediately after entering the loop saves this extra iteration. When some data insertion is a step in this loop, this may lead to data duplication.
Minimal Reproduction
I have identified this issue on my personal project and this is quite self explanatory.
Example case:
when progress = 4
heartbeat details -> 3 (previous progress)
if activity fails at this progress it will be retried from the point where progress == 3, and the iteration with progress == 3 is a successful iteration which should not be the retrying point.
PR - https://github.com/temporalio/samples-typescript/pull/363
Environment/Versions
temporal sdk version - 1.9.3
- Lenguaje dominante
- TypeScript
- Estrellas
- 469
- Forks
- 150
- Merge medio
- 2 d 16 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 temporalio/samples-typescript
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
temporalio/samples-typescript#418 ·
-
[Feature Request] Health checkAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
temporalio/samples-typescript#433 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
temporalio/samples-typescript#425 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
temporalio/samples-typescript#419 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
temporalio/samples-typescript#411 ·
Todos los issues de temporalio/samples-typescript
Issues similares
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Export the Hemi Earn Router address and the Router and Agent ABIs from `@vetro-protocol/earn`Abiertohemi-earn
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
vetro-protocol/vetro-monorepo#1043 ·
Los mantenedores suelen responder en 1 día
-
stage 2: bare names resolve against PATH differently from the shell (empty and relative entries)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
STRML/omp-classifier#206 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
atlassian-labs/mermaid-diagrams-viewer#188 ·
Los mantenedores suelen responder en 1 día
-
dashboard enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Olanetsoft/agent-lookout#225 ·
Los mantenedores suelen responder en 1 día