Slave UUID in replica for gh-ost shows java.lang.ArrayIndexOutOfBoundsException

Aperta
#1,492 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 10 giorni

Nessuno ha ancora preso questa issue.

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, mysql
Ambito
databases

Direzione di ricerca

Inizia riproducendo SHOW SLAVE HOSTS sulla configurazione Aurora MySQL 5.7 indicata utilizzando gh-ost v1.1.5, quindi confronta l'errore Slave_UUID riportato con lo stack trace MariaDB JDBC. Determina se l'errore si trova in gh-ost, nel driver JDBC o nella configurazione del database, e documenta il risultato con le versioni pertinenti e la configurazione della replica.

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

Descrizione

While using v.1.1.5 (due to compatibility issues of gh-ost's latest version with MySQL 5.7) everything runs fine, but we noticed, after issuing a

show slave hosts ;

command in the replica gh-ost uses to read the binlog, that the "Slave_UUID" column shows an error message rather than a proper value

Server_id 99999
Host ip-10-0-0-113.ec2.internal
Port 3306
Master_id 1778116519
Slave_UUID  <failed to load>
java.lang.ArrayIndexOutOfBoundsException: Index 49 out of bounds for length 49
	at org.mariadb.jdbc.internal.com.read.resultset.rowprotocol.TextRowProtocol.setPosition(TextRowProtocol.java:135)
	at org.mariadb.jdbc.internal.com.read.resultset.SelectResultSet.checkObjectRange(SelectResultSet.java:635)
	at org.mariadb.jdbc.internal.com.read.resultset.SelectResultSet.getString(SelectResultSet.java:943)
	in JdbcHelperImpl.getObject(JdbcHelperImpl.java:337)

Is this a known issue that is fixed in newer versions? Or maybe a DBMS issue rather than a gh-ost issue?

Again, migrations run fine, we've moved several tables and around 700M rows with no issues so far.

We're using AWS RDS, our setup is as follows:

Master cluster, hosting the master writer and 3 Aurora read replicas
binglog format is MIXED
Engine is 5.7.mysql_aurora.2.11.3
5.7.12-log

Replica cluster, set up manually to replicate via binlog from the master writer, only 1 writer
binlog format is ROW
filtering is OFF (0)
Engine is 5.7.mysql_aurora.2.11.3
5.7.12-log

I'll gladly give more info on the issue if needed.

Lingua principale
Go
Stelle
13.6k
Fork
1.4k
Merge medio
9g 19h
PR unite (30g)
1

Preparare l'ambiente

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 github/gh-ost

Tutte le issue di github/gh-ost

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.