Ghostferry current ignores statement based replication events, which may cause data corruption if binlog_format and binlog_row_image is set temporarily to the wrong value
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Start by tracing Ghostferry's binlog event handling and reviewing the documentation near the explanation of why binlog_format must be ROW. Examine how statement-based events and InlineVerifier behave, including the pt-heartbeat example. Done means the behavior is documented and, if feasible, unsafe events cause a cautious error without incorrectly rejecting supported cases.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
binlog_format and binlog_row_image are session variables, which could cause certain data mutating events to be dropped by Ghostferry as it currently doesn't process events. An example program that alters binlog_format on its session is pt-heartbeat.
This is an "user-error" type problem. That said, the problem may cause data corruption that is invisible to the user, which is not acceptable. At the minimum, we need to update the documentations about such an occurrence near where we mention why binlog_format needs to be set to ROW. If users are running with the InlineVerifier, there's a chance that these events will be caught by the verifier, but I don't think it is guaranteed.
Ideally, Ghostferry should know this is wrong and error out if it observes such an event. That said, we may need to exclude some SBR entries like pt-heartbeat, or tell users to ignore those schemas/tables all together. These problems could be tricky to resolve. That said, throwing an error due to any of these events would be a cautious first step.
- 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