Граф коммитов

2165 Коммитов

Автор SHA1 Сообщение Дата
René Cannaò 21b91ae618 Preparation branch 1.4.9 2018-04-16 11:09:40 +02:00
René Cannaò 669c149f5c Disable brotli from curl #1458 2018-04-06 09:25:35 +02:00
René Cannaò d1a14e6c12 Add support for wildcard in mysql_query_rules.client_addr #1450
Input validation:
- client_addr not longer than INET6_ADDRSTRLEN
- % allowed only at the end of client_addr

Query rule itself remembers if there is a wildcard or not.
If there is a wildcard compares string till the wildcard.
If client_addr=='%' , it is a match all.
2018-04-06 08:00:33 +02:00
René Cannaò 52fdaa15d3
Merge pull request #1457 from pondix/v1.4.8_chwt
Fix to return OK packet for SET WAIT_TIMEOUT in ClickHouse
2018-04-05 01:45:40 +10:00
Nikolaos Vyzas 2cb7088833 Fix to return OK packet for SET WAIT_TIMEOUT 2018-04-04 18:43:30 +03:00
René Cannaò d00a07559f
Merge pull request #1456 from pondix/v1.4.8
Adding support for utf8mb4_unicode_520_ci
2018-04-05 01:27:04 +10:00
Nikolaos Vyzas 8cdccf472c Adding support for utf8mb4_unicode_520_ci 2018-04-04 16:54:30 +03:00
René Cannaò 9d931a1a7c
Merge pull request #1447 from pondix/v1.4.8
This patch handles any type of quoting on MySQL variables
2018-04-03 21:49:43 +10:00
René Cannaò a4655b0089
Merge pull request #1448 from dveeden/f27_build_curl_libssh2
Disable libssh2 support in curl to fix building on Fedora 27
2018-04-03 03:24:59 +10:00
Nikolaos Vyzas e83050bb8d This patch handles any type of quoting on MySQL variables. It fixes https://github.com/sysown/proxysql/issues/1429 2018-04-02 20:04:10 +03:00
Daniël van Eeden 3b74e1cc48 Disable libssh2 support in curl to fix building on Fedora 27
Without this building failed with undefined references to libssh2:
```
g++ -o proxysql obj/main.o obj/proxysql_global.o ../lib/libproxysql.a -std=c++11 -I../include -I../deps/jemalloc/jemalloc/include/jemalloc -I../deps/mariadb-client-library/mariadb_client/include -I../deps/libconfig/libconfig-1.4.9/lib -I../deps/libdaemon/libdaemon -I../deps/sqlite3/sqlite3 -I../deps/clickhouse-cpp/clickhouse-cpp -I../deps/libmicrohttpd/libmicrohttpd/src/include -I../deps/curl/curl//include -O2 -ggdb    -L../lib -L../deps/jemalloc/jemalloc/lib -L../deps/libconfig/libconfig-1.4.9/lib/.libs -L../deps/re2/re2/obj -L../deps/mariadb-client-library/mariadb_client/libmariadb -L../deps/libdaemon/libdaemon/libdaemon/.libs -L../deps/pcre/pcre/.libs -L../deps/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs -L../deps/curl/curl//lib/.libs   -Wl,--export-dynamic -Wl,-Bstatic -lconfig -lproxysql -ldaemon -ljemalloc -lconfig++ -lre2 -lpcrecpp -lpcre -lmariadbclient -lmicrohttpd -lcurl -Wl,-Bdynamic -lpthread -lm -lz -lrt -lcrypto -lssl  -ldl
../deps/curl/curl//lib/.libs/libcurl.a(libcurl_la-easy.o): In function `global_init':
easy.c:(.text+0x7d): undefined reference to `libssh2_init'
../deps/curl/curl//lib/.libs/libcurl.a(libcurl_la-easy.o): In function `curl_global_cleanup':
easy.c:(.text+0x2c8): undefined reference to `libssh2_exit'
```

I don't think libssh2 support is needed and this fixes the build.
The other option would be to add `-lssh2`.
2018-04-02 19:03:57 +02:00
René Cannaò 18109c6901 Remember if the current connection has an unknown transaction status
Further improvement on previous commit
2018-04-02 17:03:22 +02:00
René Cannaò 94ad7b7229 Remember if the current connection has an unknown transaction status
The fix for bug #1038 was to not return a connection to the connection pool if it has an error.
Although this is correct, it also has the side effect that connections coming
from connection pool and failing during the first query because the connection
was already broken, would be considered as possibly to run a transaction.
That is incorrect.

Now at connection level it is tracked if the transaction status is known or not.
2018-04-02 16:15:07 +02:00
René Cannaò d941a1b922 Missing flag SERVER_STATUS_NO_BACKSLASH_ESCAPES for SQLite3 backends #1446 2018-04-02 05:49:41 +02:00
René Cannaò a3ffb6a36a Monitor: do not consider unhealthy ProxySQL's as backends if monitor is unable to login 2018-04-02 05:01:48 +02:00
René Cannaò a20ec8e280 Bug fix #1441 2018-03-29 15:52:57 +02:00
René Cannaò 64499fdd4d Merge branch 'v1.4.8' of https://github.com/sysown/proxysql into v1.4.8 2018-03-26 18:46:40 +02:00
René Cannaò 5bd9a4b895 Incorrect PS metadata was being erased. Possible fix for #1428 2018-03-26 18:45:46 +02:00
René Cannaò 4b0375cb24
Merge pull request #1433 from sysown/rwlock_patch
Increasing RW Lock in PROCESSING_STMT_PREPARE
2018-03-27 01:21:41 +11:00
Nick Vyzas 461968a2dc
Increasing RW Lock in PROCESSING_STMT_PREPARE
Potentially affecting https://github.com/sysown/proxysql/issues/1427
2018-03-26 17:09:33 +03:00
René Cannaò 07f4448946 Several fixed to graceful shutdown if proxysql_stats.db is not writable #1431 2018-03-26 02:40:15 +02:00
René Cannaò c03462bc06 Do not return a connection after STMT_PREPARE with no parameters #1432 2018-03-25 15:59:28 +02:00
René Cannaò 6d52edb04d Optimize when purging prepared statements 2018-03-23 15:21:22 +01:00
René Cannaò bf64c90c6c Several fixed in Prepared statements
* is STMT_PREPARE failed when there is a previous status (maybe STMT_EXECUTE) disconnect the client immediately. Maybe this is related to #1366 , but I can't reproduce it yet
* purge prepared statements is also their server reference counter is 0
* initialize connections queue for purging connections
2018-03-22 17:31:52 +01:00
René Cannaò 4d431e402a Bug fix for memory leak in LOAD MYSQL SERVERS TO RUNTIME #1425 2018-03-20 04:12:14 +01:00
René Cannaò 583f195819 Add support for nulllable columns #1420 2018-03-19 08:33:18 +01:00
René Cannaò 7cb7371785 Added error for issue #1410 2018-03-18 15:19:56 +01:00
René Cannaò bf865a1e58 Try to understand if an uncompressed packet is wrongly marked as compressed #1410 2018-03-18 14:41:29 +01:00
René Cannaò 834261eb85 Version upgrade to 1.4.8 2018-03-18 03:34:36 +01:00
René Cannaò 4beac141f3 Try to send LAST_INSERT_ID to backend #1421 2018-03-18 03:31:40 +01:00
René Cannaò ad65cf64c1 ClickHouse: add support for nullable column #1420 2018-03-17 16:07:15 +01:00
René Cannaò 8645520415 Set default schema to "default" #1419 2018-03-17 15:59:14 +01:00
René Cannaò 457184fae6 Use the right schema for new connections to ClickHouse #1419 2018-03-17 13:10:05 +01:00
René Cannaò 6141f960eb Disable monitoring of servers not responding to ping
This commit also prevents shunned nodes to come back online if they are missing pings. Related to #1416
Because it reduces the number of checks, it may also be relevant to #1417
2018-03-17 10:28:34 +01:00
René Cannaò 64e0eef4e4 Trigger new routing algorithm only if hash table is not empty 2018-03-13 12:10:54 +01:00
René Cannaò 6eeeb5c255 Reduce the size of delimiter 2018-03-13 10:54:30 +01:00
René Cannaò 3b15ce609c Try to get from connection pool and connections cache, a connection with the same schemaname 2018-03-09 18:11:49 +01:00
René Cannaò a19f5105f2 Initialize qr in Query_Processor 2018-03-09 16:59:13 +01:00
René Cannaò 44dcfe75ac Added table mysql_query_rules_fast_routing
This table is responsible for performing routing for very specific use case
scenarios, like having tens of thousands of schemas
2018-03-09 15:48:22 +01:00
René Cannaò cfc89a6880 Server disappearing when RO=1 becomes RO=0
This issue is similar to #1039
2018-03-07 12:26:49 +01:00
René Cannaò be0843c051 Fix integer overflow on connection_max_age_ms #1393 2018-03-06 15:23:45 +01:00
René Cannaò b347178348 Added variable monitor_read_only_max_timeout_count #1206
It implements a retry mechanism in case read_only checks time out
2018-03-06 06:44:26 +01:00
René Cannaò 79d212e4cf Update curl for centos 2018-02-28 20:25:03 +01:00
René Cannaò 82031c855c Update Makefile for 1.4.7 2018-02-27 16:20:05 +01:00
René Cannaò bdfce24794 Updating docker files for 1.4.7 2018-02-27 16:17:56 +01:00
René Cannaò fa94e390ee Add support for utf8_unicode_ci #1396 2018-02-27 15:49:57 +01:00
René Cannaò 42a7679b25 Use monotonic_time for connection creation time #1393 2018-02-27 14:01:15 +01:00
René Cannaò ec7e9e4964 Reset connection creation time on CHANGE USER #1393 2018-02-27 13:34:40 +01:00
René Cannaò 64241d0169 Merge branch 'v1.4.7' of https://github.com/sysown/proxysql into v1.4.7 2018-02-21 09:55:19 +01:00
René Cannaò 0160b723de MySQL stats_mysql_global queryable as SELECT @@ #1375 2018-02-19 15:11:45 +01:00