github / github/gh-ost

Bug to apply migration if binlog is compressed.

Ouverte
#800 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
documentation enhancement
Langage dominant
Go
Étoiles
13.6k
Forks
1.4k
Merge moyen
2 h 31 min
PR mergées (30 j)
4

Description

Database Version: `10.2.25-MariaDB`
OS: `debian-linux-gnu`

The bug happens if the bank is set to save [compressed binlog](https://mariadb.com/kb/en/library/compressing-events-to-reduce-size-of-the-binary-log/). '
```
MariaDB [(none)]> show variables like 'log_bin_compress';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| log_bin_compress | ON |
+------------------+-------+
```

Behavior:
The whole process happens correctly, but after the postponing file removal the following log occurs:

```
2019-11-13 17:53:21 INFO Grabbing voluntary lock: gh-ost.1276299.lock
2019-11-13 17:53:21 INFO Setting LOCK timeout as 6 seconds
2019-11-13 17:53:21 INFO Looking for magic cut-over table
2019-11-13 17:53:21 INFO Creating magic cut-over table `cifra`.`_songbook_log_del`
2019-11-13 17:53:21 INFO Magic cut-over table created
2019-11-13 17:53:21 INFO Locking `cifra`.`songbook_log`, `cifra`.`_songbook_log_del`
2019-11-13 17:53:22 INFO Tables locked
2019-11-13 17:53:22 INFO Session locking original & magic tables is 1276299
2019-11-13 17:53:22 INFO Writing changelog state: AllEventsUpToLockProcessed:1573667602084929375
2019-11-13 17:53:22 INFO Waiting for events up to lock
2019-11-13 17:53:25 ERROR Timeout while waiting for events up to lock
2019-11-13 17:53:25 ERROR 2019-11-13 17:53:25 ERROR Timeout while waiting for events up to lock
2019-11-13 17:53:25 INFO Looking for magic cut-over table
2019-11-13 17:53:25 INFO Will now proceed to drop magic table and unlock tables
2019-11-13 17:53:25 INFO Dropping magic cut-over table
2019-11-13 17:53:25 INFO Releasing lock from `cifra`.`songbook_log`, `cifra`.`_songbook_log_del`
2019-11-13 17:53:25 INFO Tables unlocked
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Le rapport ne fournit aucun fichier source, test ni point d’entrée. Commencez par reproduire la migration avec MariaDB 10.2.25, Debian et log_bin_compress activé, puis retracez la gestion des événements du binlog compressé de la migration autour du timeout qui survient après le report de la suppression du fichier. Le travail est terminé lorsque la migration s’achève sans le timeout signalé et qu’un test de régression couvre cette configuration.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go, mariadb
Domaine
databases
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.