-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mysql input: Slave_IO_Running can have values other than Yes and No #6671
Comments
In documentation, |
I would suggest a correction like this (NB: I did not test it since I don't know how to compile telegraf)
|
well, the logic would be 0 no IO thread, 1 preparing, 2 connecting, 3 a connected io thread, so we can do < and > tests. but this may break existent setups |
I would say that standard would be a 0 for a working replication (as 0 is the standard OK return code). Plus, it is coherent with current telegraf usage. But I don't have preferences for the others ones. However, I would also consider Connecting and Preparing as not working replication, and thus, marking them as errors (>0) |
Fixes influxdata#8319, influxdata#5711, influxdata#5055, influxdata#7421 See influxdata#5529, influxdata#6624 This could be easily extended to fix influxdata#6671 as well
Fixes influxdata#8319, influxdata#5711, influxdata#5055, influxdata#7421 See influxdata#5529, influxdata#6624 This could be easily extended to fix influxdata#6671 as well
Hey @danielmotaleite, #9403 does not fix this issue, feel free to reopen. I think that's a mistake by GitHub's autoclosing, since I commented "This could be easily extended to fix #6671 as well." The variable conversion mapping currently only exists for status and variables, but could be extended to slave status. |
i'm not the but owner, i can't reopen, @jnguiot or maybe @danielnelson can you please reopen this bug as this is still not fixed |
I cannot reopen it. |
Reopened on user-request. |
Relevant telegraf.conf:
System info:
Ubuntu 16.04
telegraf 1.12.5-1
influxdb 1.7.9-1
mariadb-server-10.0 10.0.38-0ubuntu0.16.04.1
Steps to reproduce:
Since everything is right, the value of slave_slave_io_running is 0 (In mysql SHOW SLAVE STATUS\G:
Slave_IO_Running: Yes
If slave is stopped (STOP SLAVE;), the value is slave_slave_io_running is 1. (In mysql SHOW SLAVE STATUS\G:
Slave_IO_Running: No
)Slave_IO_Running: Connecting
Since in normal operation, slave_slave_io_running is an integer, when master crashes, it value become a string and influxdb throw it
received error partial write: field type conflict: input field "slave_slave_io_running" on measurement "mysql" is type string, already exists as type integer dropped=1; discarding points
Expected behavior:
slave_slave_io_running should return an integer value (1 or more in case of connecting)
Actual behavior:
slave_slave_io_running may return a string or an integer, depending on the content.
Additional info:
The text was updated successfully, but these errors were encountered: