Skip to content
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

Timeout overflow in mysql_query_rules #2765

Open
alpes214 opened this issue May 8, 2020 · 1 comment
Open

Timeout overflow in mysql_query_rules #2765

alpes214 opened this issue May 8, 2020 · 1 comment

Comments

@alpes214
Copy link
Contributor

alpes214 commented May 8, 2020

Description of the issue

It is possible to set query timeout in mysql_query_rules. If timeout is set to a relatively high value, for example more than 35 minutes, then query is ending unexpectedly.

Steps to reproduce

  1. Set query rules with timeout value equals to one hour.
INSERT INTO mysql_query_rules (rule_id,active,match_digest,destination_hostgroup,timeout,apply) VALUES (1,1,'^SELECT.*FOR UPDATE$',0,3600*1000,1), (2,1,'^SELECT',1,3600*1000,1);
load mysql query rules to runtime; save mysql query rules to disk;
  1. Execute query
mysql> select 1, sleep(3601);
+---+-------------+
| 1 | sleep(3601) |
+---+-------------+
| 1 |           1 |
+---+-------------+
1 row in set (2.00 sec)
  1. The query ended sooner than expected. Expected: query runs for 1 hr and 1 second;

The version of OS and ProxySQL

$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

The FULL error log

proxysql.log

@renecannao
Copy link
Contributor

Fixed in 2.0.12 .
Still not fixed in 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants