-
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
Percona 8.0 User statistics not working due to changed type #7360
Comments
I believe this was fixed in #9966, but if not please do come back and let us know. Thanks for the issue and the PR that you put up! |
Nope, the issue won't be fixed with #9966. The problem is that |
For totalConnections that is still correct as it is still a bigint in 5.7 and 8.0 per your original post, right? The issue you are calling out is that |
Yeah, I meant connectedTime, busyTime, and cpuTime. |
ok thanks for letting us know that the previous PR is unrelated. Did you have a fix in mind? It seems the |
I have several possibilities in my mind. One could update We could also use the We don't need type guessing with the |
Hello, |
yes we have still that problem, i follow this bug |
Can we cast double() to uint64 ? I prefer losing precision a bit than having a big error... |
@odoucet, @fxedel, @fferraro87 and others interested in this issue, please test the binary in #15012 available as-soon-as CI finished the tests successfully! Let me know if the PR fixes the issue! |
Relevant telegraf.conf:
System info:
Telegraf 1.14.0 (git: HEAD fefd7ff)
Debian GNU/Linux 10 (buster)
Steps to reproduce:
E! [inputs.mysql] Error in plugin: sql: Scan error on column index 3, name "CONNECTED_TIME": converting driver.Value type []uint8 ("791.4448604999997") to a int64: invalid syntax
Expected behavior:
Telegraf should find out the correct type.
Actual behavior:
Telegraf throws an error.
Additional info:
Since 8.0, Percona uses double type for some variables in user statistics:
For comparison, with Percona 5.7:
The text was updated successfully, but these errors were encountered: