-
Notifications
You must be signed in to change notification settings - Fork 986
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 issues warning when using ProxySQL query annotations #4756
Comments
ProxySQL only needs that the annotation is in the first comment, it doesn't require the same syntax used by the optimizer. |
Testing for us seems to suggest that |
Nope, that is not right. |
Thank you, I was. This query is now correctly routed by the annotation. However, the MySQL optimizer hint is ignored by MySQL as query isn't killed at 3s.
If I flip the comment order, MySQL optimizer hint is obeyed
If we reduce the sleep so that the optimizer hint doesn't kick in, we see hostgroup annotation being ignored
So I think I'm still at the same place where to get both MySQL optimizer hints and ProxySQL annotations functioning, we get the warning?
|
When using ProxySQL annotations these are passed through to MySQL causing it to raise a warning. As we capture warnings in ProxySQL, our logs are now littered with unwanted noise, which we would like to prevent.
The same happens when issuing a query that uses MySQL Optimizer hints and ProxySQL query annotations - both work when all MySQL optimizer hints appear first, followed by all ProxySQL query annotations. However, MySQL issues a warning when it sees the first ProxySQL annotation.
We have tried using separate comments for MySQL and for ProxySQL, but this results in loss of functionality, as only the first comment starting
/*+
is obeyed.Before sending a query to MySQL, would it be possible to have ProxySQL
/*+
for annotations so as to not clash with MySQL's parsingThe text was updated successfully, but these errors were encountered: