BinlogStreamer could block forever due to unconfigurable caughtupThreshold
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with ferry.go lines 254-258 and trace the caughtupThreshold loop and IsAlmostCaughtUp behavior. Review the discussion about a configurable deadline, aborting the move, and ControlServer-triggered cutover; done means an agreed behavior is implemented without forcing a disruptive cutover by default.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Originally by @hkdsun:
See https://github.com/Shopify/ghostferry/blob/be4f15d/ferry.go#L254-L258
In the situation where the source database is under very heavy load, such that ghostferry is always caughtupThreshold behind on writing data to the target, we could stay in that loop for a potentially really long time.
An idea is to have the function accept a configurable deadline. Once the deadline is reached, either abort the run or force the application to stop writes on the source (i.e. forcefully initiate the cutover phase).
Comment by @shuhaowu:
I would like to add, we could also add an API to dynamically force a cutover to occur (i.e. make IsAlmostCaughtUp return true always), perhaps triggerable via the ControlServer.
Comment by @fw42:
I think I'd prefer to abort the move rather than to force the cutover, at least as the default behaviour. If the source database has so many writes that we can't catch up, that probably means that it's very active right now. Locking the source database would be very disruptive at that moment.
- Lenguaje dominante
- Go
- Estrellas
- 858
- Forks
- 77
- Merge medio
- 10 d 4 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 Shopify/ghostferry
-
Gradual copy throttle recoveryAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Shopify/ghostferry#471 · 1 comentario ·
-
Trouble with virtual generated columnsPosiblemente ocupada @driv3r la tomó hace 222 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
Shopify/ghostferry#338 · 7 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Shopify/ghostferry#332 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Shopify/ghostferry#318 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Shopify/ghostferry#306 ·
Todos los issues de Shopify/ghostferry
Issues similares
-
[Bug]: gate 缺失Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandPosiblemente ocupada @k4kratik la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sachincool/cruft#4 ·
-
help wanted kind/good-first-issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
knative/func#4191 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
VictoriaMetrics/VictoriaLogs#1965 ·
Los mantenedores suelen responder en 1 día
-
kind/bug sig/ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
kubermatic/dashboard#8540 · 1 comentario ·
Los mantenedores suelen responder en 1 día