7099 Commits

Author SHA1 Message Date
Esa Korhonen
f1efe72f66 Additional documentation cleanup for 2.1
Mostly just reflow text (=linebreaks) for better diffs. Some small changes.
Remove Debug-And-Diagnostic-Support.md.
2017-04-25 10:04:31 +03:00
Markus Mäkelä
2cc3382a46 Add JDBC batch execution limitation to documentation
Readwritesplit doesn't properly handle batched statement execution in
2.1.3. This is now reflected by the limitations document.
2017-04-21 13:55:25 +03:00
Johan Wikman
d1959549fe Update limitations document
Add note about prepared statements, transaction state and
autocommit mode.
2017-04-21 12:31:21 +03:00
Johan Wikman
d7e37b94ce Add notes on MariaDB 10.2 2017-04-21 12:09:03 +03:00
Johan Wikman
defbb9e23b Update upgrade documentation and link to it 2017-04-21 11:27:16 +03:00
Esa Korhonen
e8dfccb4c8 2.1 doc esak (#127)
* Update MySQL-Replication-Read-Write-Splitting-Tutorial.md

* Update MySQL-Replication-Read-Write-Splitting-Tutorial.md

* Update MySQL-Replication-Read-Write-Splitting-Tutorial.md

* Update MySQL-Cluster-Setup.md

* Update Administration-Tutorial.md

* Update Administration-Tutorial.md

* Update Galera-Cluster-Connection-Routing-Tutorial.md

* Update CLI.md

* Update ReadWriteSplit.md

* Update Tee-Filter.md

* Update CCRFilter.md

* Update RabbitMQ-Filter.md

* Update Debug-And-Diagnostic-Support.md

* Update MaxBinlogCheck.md

* Update Configuration-Guide.md

* Update Module-Commands.md
2017-04-21 10:49:20 +03:00
Johan Wikman
73c38230fe Update README.md 2017-04-20 16:03:41 +03:00
Johan Wikman
008d86f99a Update 2.1 Change Log 2017-04-20 16:03:41 +03:00
Johan Wikman
0f7b29f8bf Add 2.1.3 release notes 2017-04-20 16:03:41 +03:00
Johan Wikman
09086994bf 2.1 doc johan (#126)
* Update Documentation-Contents.md

* Update SchemaRouter-technical.md

* Update Plugin-development-guide.md

* Update Replication-Proxy-Binlog-Router-Tutorial.md

* Update MaxScale-HA-with-lsyncd.md

* Update MaxScale-Information-Schema.md

* Update Galera-Cluster-Read-Write-Splitting-Tutorial.md

* Update GSSAPI-Authenticator.md
2017-04-20 14:59:52 +03:00
MassimilianoPinto
695ba19965 Massimiliano pinto doc update 2.1 (#125)
* Update Nagios-Plugins.md

* Update MM-Monitor.md

* Update Nagios-Plugins.md

* Update Nagios-Plugins.md

* Update Galera-Cluster-Connection-Routing-Tutorial.md

* Update Galera-Cluster-Connection-Routing-Tutorial.md

* Update RabbitMQ-Setup-And-MaxScale-Integration.md

* Update MaxScale-Tutorial.md

* Update Cache.md

* Update Transaction-Performance-Monitoring-Filter.md

* Update RabbitMQ-Consumer-Client.md

* Update Building-MaxScale-from-Source-Code.md

* Update MariaDB-MaxScale-Installation-Guide.md

* Update Install-MariaDB-MaxScale-Using-a-Tarball.md

* Update RabbitMQ-Setup-And-MaxScale-Integration.md

* Update RabbitMQ-Consumer-Client.md
2017-04-20 13:36:13 +02:00
Johan Wikman
33b809eec1 Do not build storage_rocksdb by default 2017-04-20 13:12:46 +03:00
Johan Wikman
bda8c478e7 Merge pull request #124 from mariadb-corporation/2.1-doc-markusjm
2.1 documentation update
2017-04-20 12:07:31 +03:00
Markus Mäkelä
7d7ad54482 Update Upgrading-To-MaxScale-2.1.md
Added information about IPv6 changes and persisted configurations.
2017-04-20 10:21:02 +03:00
Markus Mäkelä
83f76d0655 Update MaxAdmin.md
Updated the output of the executed commands.
2017-04-20 10:07:58 +03:00
Markus Mäkelä
ce95983896 Update MaxAdmin runtime configuration documentation
The example help output for the commands is now shown in the
documentation.
2017-04-20 09:37:29 +03:00
Markus Mäkelä
49bef4e4f0 Delete How-errors-are-handled-in-MaxScale.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
c0b3c7eb9f Update Hint-Syntax.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
03ba0391e1 Update Debug-CLI.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
1fc4490d40 Update ReadConnRoute.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
def475be18 Update Avrorouter.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
f2a0dbd72d Update Binlogrouter.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
9d56fc70f6 Update SchemaRouter.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
767ec74489 Update MySQL-Replication-Connection-Routing-Tutorial.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
94acc9b9ab Update MaxScale-HA-with-Corosync-Pacemaker.md 2017-04-20 09:27:24 +03:00
Markus Mäkelä
afe75e9006 Update Simple-Sharding-Tutorial.md 2017-04-20 09:27:23 +03:00
Markus Mäkelä
1e34bd7642 Update Notification-Service.md
Removed change history, changed company name.
2017-04-20 09:27:23 +03:00
MassimilianoPinto
7989473fbd MXS-1221: Nagios plugin scripts does not process -S option properly
Nagios plugin scripts does not process -S option properly
2017-04-19 18:18:04 +03:00
Johan Wikman
d03b059107 Cache length of buffered data
If a complete response is delivered in many buffers, then calling
gwbuf_length() whenever you need the complete size starts to hurt.
By caching the length of the data received sofar and by updating
the length in clientReply(), gwbuf_length() will be called exactly
once for each buffer(chain) delivered to routeQuery().
2017-04-19 18:15:56 +03:00
Johan Wikman
27e97a546d Remove superfluous logging
Just because of a debug build you do not want the transaction
parser to log.
2017-04-19 18:15:56 +03:00
MassimilianoPinto
5998457142 MXS-1227: Update Nagios Plugins for MaxScale 2.1
Nagios Plugins update for MaxScale 2.1
2017-04-19 16:10:14 +02:00
Markus Mäkelä
a54d6fe816 Add connector plugindir to help output
The output now displays the connector directory.
2017-04-13 17:57:52 +03:00
MassimilianoPinto
f4a5134a83 MXS-1212: use res.length for buffer length instead of computing the size of the whole buffer chain
This reduces CPU usage and decreases the response time for result sets
with many rows.
2017-04-07 12:16:50 +02:00
Esa Korhonen
9e8ddc842c Fix leaks in testconfig 2017-04-06 12:51:09 +03:00
Esa Korhonen
15951423d8 Fix memory errors in test_poll and test_queuemanager
test_poll was calling poll_init() two times since it's already included in
init_test_env().

test_queuemanager was missing a bunch of frees. This doesn't fix it completely,
but removes most of the leaks and valgrind errors.
2017-04-05 17:37:21 +03:00
Esa Korhonen
b1f66d21c8 Fix valgrind-errors in test_filter and test_modutil
Reduces valgrind clutter quite a bit.
2017-04-05 15:04:36 +03:00
Esa Korhonen
2d987b25b2 Fix test_dcb
Set threadcount to one, don't check validity after freeing.
2017-04-05 10:49:43 +03:00
Esa Korhonen
e0a98f6539 Fix calls of pcre2_substitute
If the output buffer given to pcre2_substitute is too small, an error
value is written to the last parameter (output length). That value
should not be used for calculations. This patch gives a copy as
parameter instead.

Coincidentally, this commit fixes the crashes of query classifier tests.

Also, increase buffer growth rate in utils.c.
2017-04-04 16:19:21 +03:00
Esa Korhonen
dca086571b TestMaxScalePCRE2: Fix memory leaks
Not really leaks, but this reduces needless clutter in the valgrind
output.
2017-04-04 16:18:47 +03:00
Markus Mäkelä
872f69b681 Also check IPv6 mapped IPv4 addresses as IPv4
If a client connects from an IPv4 address, but the listener listens on an
IPv6 address, the client IP will be a IPv6 mapped IPv4 address
e.g. ::ffff:127.0.0.1. A grant for an IPv4 address should still match an
IPv6 mapped IPv4 address.
2017-04-04 15:28:39 +03:00
Markus Mäkelä
9f14f3659f Only check user permissions on startup
When users were loaded, the permissions for the service user were
checked. The conditional that makes sure the check is executed only at
startup was checking the listener's users instead of the SQLite handle
which caused all reloads of users to check the permissions.
2017-04-04 15:28:39 +03:00
Markus Mäkelä
860b14526c Fix mxs_mysql_is_result_set
The function assumed that the packet payload was always at least two
bytes.
2017-04-04 15:28:39 +03:00
Markus Mäkelä
1ff83150f0 Revert "Route statements in larger batches"
This reverts commit f3c83770903151a0a3b53593c3e05fa0af94cd5f. The
functionality was used implicitly by modules that declare the
RCAP_TYPE_CONTIGUOUS_OUTPUT capability.
2017-04-04 09:56:51 +03:00
MassimilianoPinto
0c3f9ffa2e Maxrows: documentation update and use of MXS_MODULE_PARAM_SIZE for max_resultset_size parameter
max_resultset_size parameter now uses MXS_MODULE_PARAM_SIZE and
config_get_size

Documentation change follows the change.
2017-04-04 08:43:55 +02:00
Markus Mäkelä
6ef90bf9b6 Add a warning about limit_queries and action=allow
The `limit_queries` rule should not be used in the `allow` mode.
2017-04-03 16:22:21 +03:00
Markus Mäkelä
d32a2e410b Use matched instead of blocked
As queries that match a rule aren't always blocked, it's more appropriate
to use `matched` instead of `blocked`.
2017-04-03 16:22:21 +03:00
Markus Mäkelä
108978fcd2 Format dbfwfilter documentation
Split lines that are longer than 80 characters.
2017-04-03 16:22:21 +03:00
Johan Wikman
8d2d6d8721 Join threads to prevent leaks 2017-04-03 14:20:54 +03:00
Johan Wikman
815780aa4a In cache testrules.c ensure there seems to be at least one thread 2017-04-03 14:20:54 +03:00
Markus Mäkelä
0f2f9d48b7 Improve maxadmin help messages
The help messages are now more descriptive and have usage information in
them. This should help users use the commands without relying on the
online documentation.
2017-04-03 12:09:59 +03:00