[MXS-1576] Maxscale crashes when starting if .avro and .avsc files are present Created: 2017-12-12 Updated: 2018-01-16 Resolved: 2018-01-16 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | avrorouter |
| Affects Version/s: | 2.1.11 |
| Fix Version/s: | 2.1.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Drew Schatt | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7.4, x86_64 |
||
| Sprint: | 2017-49, MXS-SPRINT-50 |
| Description |
|
Started maxscale. Set up binlog/avro routing. Started slave, it runs through all the binlogs and creates corresponding .avro and .avsc files. Killed maxscale, on restarting, we get: [root@nf-mdb-maxscale01 dschatt]# /bin/maxscale MariaDB Corporation MaxScale 2.1.11 Thu Dec 7 23:08:58 2017 /bin/maxscale[0x4043a0] Writing core dump |
| Comments |
| Comment by markus makela [ 2017-12-12 ] |
|
Removing the avro-conversion.ini found in /var/lib/maxscale might fix it if the conversion file position tracking is wrong. |
| Comment by Drew Schatt [ 2017-12-16 ] |
|
Removing that file does indeed let maxscale start up, but it seems to lose the position for the avro files if it's removed. So while it's a temporary workaround, it doesn't seem like it is a production level fix. |
| Comment by markus makela [ 2018-01-03 ] |
|
How do you kill MaxScale? Stopping the process via systemctl should stop the conversion process at a well-defined point. If this is how you stop MaxScale and it still loses the position, there is something wrong with the code that aborts the conversion process. |
| Comment by markus makela [ 2018-01-15 ] |
|
A guaranteed way to stop the avrorouter at a well-defined point is to issue the following MaxAdmin command: maxadmin call command avrorouter convert <service-name> stop The <service-name> should be the name of the avrorouter service. The command stops the conversion process which makes sure that no data is being converted when MaxScale is stopped. If possible, please try and see if the aforementioned steps result in a successful startup. If it is successful, I suspect that the way the internal task threads in MaxScale are stopped does not allow enough time for the tasks to complete. |
| Comment by markus makela [ 2018-01-16 ] |
|
schatt Any updates on this? |
| Comment by markus makela [ 2018-01-16 ] |
|
Added the new command, if the problem persists, reopen this issue. |