[MXS-2264] Schema aware avrorouter ignores table renames Created: 2019-01-15 Updated: 2019-10-01 Resolved: 2019-10-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | avrorouter, cdc |
| Affects Version/s: | 2.2.17 |
| Fix Version/s: | 2.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergiy Kyrychenko | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | MXS-SPRINT-91 |
| Description |
|
We rely on https://github.com/github/gh-ost to make online schema changes in our MariaDB OLTP environment without downtime. gh-ost like many other tools of this kind relies on atomic table renames in its operation. It is critical for Maxscale CDC to process table renames similarly to ALTER TABLE statements, generate new/updated AVRO spec and continue converting events. In current Maxscale version, renaming the table effectively breaks subsequent avro conversion. To reproduce:
Table contents are:
JSON output as follows and last two inserts (some_id =3 and some_id=4) never make it to avro file:
Also, performing following insert into brand new table created by same rename does not result in avro spec generation for table `rename_old` so this new table gets completely ignored by Maxscale:
|
| Comments |
| Comment by Sergiy Kyrychenko [ 2019-02-01 ] |
|
It's been 2 weeks since this issue has been filed. Is it possible to confirm and set proper priority on this? |
| Comment by markus makela [ 2019-02-01 ] |
|
Based on your test case it doesn't work and it's pretty clear it needs to be fixed. The bug is assigned and will be fixed when other higher severity issues have been fixed. |