MariaDB binlog events differ from MySQL

Aperta
#296 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@HemeraOne ci sta già lavorando.

Dal 8/7/2021.

  • #297 di @HemeraOne — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go, mariadb, mysql
Ambito
databases

Direzione di ricerca

Start with the binlog_streamer entry point and the replication.TableMapEvent, replication.GenericEvent, and replication.QueryEvent handling. Compare the MariaDB ANNOTATE_ROWS_EVENT and the embedded BEGIN text with the zero log position error; done means MariaDB binlog streaming no longer panics on these events.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Running the binlog_streamer from MariaDB seems to be a little bit different.

an error seems to occur:

PANI[0001] tried to advance to a zero log position: mysql-bin.047756 0 string  tag=source_binlog_streamer

I tracked it down to the following events:
*replication.TableMapEvent, *replication.GenericEvent, *replication.QueryEvent

Which is documented to happen when a replica is unable to understand MariaDB's protocol:
"Dummy event replacing event type X that slave cannot handle."

To me it looks like it comes from the following events:
ANNOTATE_ROWS_EVENT (https://mariadb.com/kb/en/annotate_rows_event/)
As this is what I sniffed from the traffic:

# Dummy event replacing event type 160 that slave cannot handle

and the plain text "BEGIN" which both gets shoved in the replication.QueryEvent

Further more the also state that the TABLE_MAP_EVENT is used for row-based binlog:
https://mariadb.com/kb/en/table_map_event/

Currently debugging for more data, will come with a PR that works with my current MariaDB: 10.3.28-MariaDB-1:10.3.28+maria~focal-log

Lingua principale
Go
Stelle
858
Fork
77
Merge medio
10g 4h
PR unite (30g)
4

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Shopify/ghostferry

Tutte le issue di Shopify/ghostferry

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.