Timofey Turenko
d0cae12ca5
fix build-depends in .spec
2014-06-17 17:41:29 +03:00
Timofey Turenko
62c5937ae1
fix build-depends in .spec
2014-06-17 17:18:40 +03:00
MassimilianoPinto
38fd7b0844
master_id set by monitor
...
master_id set by monitor and printed via dprint* routines
2014-06-17 16:10:11 +02:00
VilhoRaatikka
e7fa80a591
Code clean up
2014-06-17 16:15:19 +03:00
MassimilianoPinto
e0c3ef24d7
typo fix
...
typo fix
2014-06-17 13:05:31 +02:00
MassimilianoPinto
fe846885d5
depth and master_id fields added
...
depth and master_id fields added
2014-06-17 13:05:03 +02:00
VilhoRaatikka
49163a4c43
Merge branch 'develop' into MAX-11
2014-06-16 19:53:19 +03:00
VilhoRaatikka
4f03c775e5
sescmd_cursor_reset didn't reset cursor's property pointer which made reset ineffective.
2014-06-16 13:40:45 +03:00
Mark Riddoch
189793f992
Clean up some compiler warnings
2014-06-16 08:40:04 +01:00
Mark Riddoch
9f6a1061c6
Config fix
2014-06-16 08:10:34 +01:00
Mark Riddoch
850603171b
Improvements to CLI commands and client
2014-06-16 07:57:12 +01:00
Mark Riddoch
70ba1f028a
Fixed bug in generation of execution time in report
2014-06-15 23:03:41 +01:00
VilhoRaatikka
0200ca4e24
Some things weren't switched off from product build.
2014-06-16 00:31:14 +03:00
VilhoRaatikka
5bcae64538
When protocol closes DCB it calls dcb_close instead of dcb->func.close. dcb_close then calls dcb->func.close. This is now changed to all protocols and routers.
...
Rwsplit handles ERRACT_NEW_CONNECTION by clearing backend reference, removing callbacks and associating backend reference with new backend server. If it succeeds and the router session can continue, handleError returns true. Otherwise false. When ever false is returned it means that session must be closed.
Rwsplit now tolerates backend failures in a way that it searches new backends when monitor, backend, or client operation fails due to backend failure.
2014-06-15 23:44:07 +03:00
Mark Riddoch
8103ac6052
Merge branch 'develop' into MAX-65
2014-06-14 12:54:08 +01:00
Mark Riddoch
c2fa112407
Remove .swp file which was added by mistake
2014-06-13 23:42:21 +01:00
Mark Riddoch
719503e471
Addition of new client utility, maxadmin.
...
Supporting protocol for the admin interface
New routing module, cli, which shares source with debugcli
Tidyup output of lsit commands
2014-06-13 23:40:07 +01:00
VilhoRaatikka
09d20d1059
Modified dcb_call_foreach so that it doesn't hold spinlock (dcbspin) continuously because it caused deadlock when new slaves were tried to connect with.
...
Fixed a few smallish things.
2014-06-13 14:52:04 +03:00
VilhoRaatikka
dfc9141a38
Whenever monitored server's state changes, a callback, router_handle_state_switch is called for each DCB in MaxScale session. The DCB referring to the server in question will be passed as parameter to backend DCB's hangup function.
...
The logic that solves the situation is not in place yet.
2014-06-13 13:30:50 +03:00
Mark Riddoch
480c842308
Improved diagnostics in filters
2014-06-13 08:50:28 +01:00
Mark Riddoch
1868210a59
Enhancements to topfilter and qlafilter
...
Documentation for topfilter and qlafilter
2014-06-13 08:35:23 +01:00
VilhoRaatikka
9eda859724
Added callback for rwsplit router which traverses through every rwsplit router session and for each rses, all backend references. Each bref is checked whether it is connected to non responsive server and if it is flagged to be waiting for response from the non-responsive backend. For matching ones, backend protocol's hangup function is called.
2014-06-13 08:01:26 +03:00
VilhoRaatikka
15ff1fd26a
Fixed many error handling issues regading to timing and multiple threads.
...
Added flags to those backend references which have sent something to backend which causes the backend to send results or reply back. Didn't add removal of the flag since there's currently no way to tell whether response from backend contains anything else than session command reply - which aren't counted when BREF_WAITING_RESULT is set and cleared.
2014-06-12 23:22:51 +03:00
VilhoRaatikka
e95b6cc0d9
dcb.c, gw_utils.c, mysql_server_protocol.h, mysql_client.c : Replaced gw_read_gwbuff with dcb_read in mysql_client.c:gw_read_client_event.
...
rwsplit.sh, test_sescmd.sql : Added test case for session commands.
2014-06-12 19:02:47 +03:00
Mark Riddoch
d17315b2cd
Updated QLA filter to allow for regex matches and client address matches
...
to control the statements that are logged.
2014-06-11 23:55:29 +01:00
VilhoRaatikka
02330093cc
Added test for session commands.
2014-06-11 15:33:42 +03:00
Mark Riddoch
a8def0d670
Additional error checking and documentation.
...
Implementation of topfilter options
2014-06-10 11:57:48 +01:00
Mark Riddoch
77e1426dbf
Initial upstream fitlering implementation.
...
Test filter with up and down stream filtering. Keeps top N queries
and prints a report of these queries on session close.
2014-06-09 21:13:28 +01:00
VilhoRaatikka
889bdd4f8c
In dcb.c:dcb_close DCB is removed either before or after the call dcb->func.close. Since mysql backend protocol sends COM_QUIT and thus, writes to backend DCB, it is kept in DCB_STATE_POLLING until the write is completed.
...
dcb.h: define ERRHAND temporarily since changes are still behind that macro
Defined two error handling actions in router.h: ERRACT_NEW_COMMECTION and ERRACT_REPLY_CLIENT.
Failed database is logged at expanding frequence to error and to message log due changes in mysql_mon.c. Added two new members in MONITOR_SERVERS: mon_err_count, and mon_prev_status so that each backend can be treated individually.
Error handling: if mysql_backend.c:dcb_read fails, router's handleError is called instead of closing session.
If mysql_client.c:SESSION_ROUTE_QUERY fails router's handleError is called instead of sending error to client.
readwritesplit.c:select_connect_backend_servers is modified so that in can be called during active router session. When called, it attempts to find one master and maximum number of configured slaves in correct state if necessary.
When handleError needs to replace failed unit it now calls select_connect_backend_servers.
2014-06-08 19:36:12 +03:00
Mark Riddoch
9e164b83f0
Updates to debug CLI
...
Fix for argument passign to show filter
Addition of list dcbs commands
2014-06-07 20:41:58 +01:00
VilhoRaatikka
916b763685
Completed merge, fixed print delay to simple one.
2014-06-07 01:05:12 +03:00
VilhoRaatikka
ad744962b2
Merge branch 'develop' into MAX-11
...
Conflicts:
server/include/server.h
server/modules/monitor/mysql_mon.c
server/modules/protocol/mysql_client.c
server/modules/routing/readwritesplit/readwritesplit.c
utils/skygw_debug.h
2014-06-07 00:50:08 +03:00
VilhoRaatikka
7e6cb7afc2
Snapshot of failure tolerance changes.
...
Added a lot of logging to error, trace and message logs which should help the user to handle errors which can't be automatically resolved, like attempt to use nonexisting database.
2014-06-06 23:32:04 +03:00
Mark Riddoch
7c8803f2f2
Updated with new debug CLI guide
2014-06-06 10:55:47 +01:00
Mark Riddoch
e9bd3676c1
Merge branch 'develop' of github.com:skysql/MaxScale into develop
2014-06-06 10:51:14 +01:00
Mark Riddoch
0ae1b3b15c
Updated configuration guide
2014-06-06 10:50:40 +01:00
Mark Riddoch
03b9f11e1e
Delete MaxScale 0.6 Release Notes.pdf
2014-06-06 09:02:30 +01:00
Mark Riddoch
827c08a751
Delete Max Scale 0.6 Release Notes.pdf
2014-06-06 09:02:20 +01:00
Mark Riddoch
c7b3c0925d
Merge branch 'develop' of github.com:skysql/MaxScale into develop
2014-06-06 09:01:06 +01:00
Mark Riddoch
4f560889f8
Addition of 0.7 release note
2014-06-06 09:00:50 +01:00
VilhoRaatikka
047dd5f90e
process_config_update didn't handle filter type which caused erroneous message being printed to error log.
2014-06-05 21:09:23 +03:00
VilhoRaatikka
1a43a4868f
Added check for NULL pointer in serviceClearRouterOptions.
2014-06-05 20:17:39 +03:00
Mark Riddoch
515f6de742
Incremented version number
2014-06-05 17:10:10 +01:00
Mark Riddoch
656c54af0a
Fixed memory allocation issue when the repalcement text is considerably
...
longer than the match text.
2014-06-05 17:08:44 +01:00
Mark Riddoch
c1c188cf4f
Fix for unintialised structure member
2014-06-05 16:24:05 +01:00
Mark Riddoch
be87556ab0
Fix for compiler warnings
2014-06-05 15:26:57 +01:00
Mark Riddoch
959b9aeec8
Merge branch 'develop' of github.com:skysql/MaxScale into develop
2014-06-05 15:09:16 +01:00
Mark Riddoch
01af5d1aef
Fix for config file ordering
2014-06-05 15:08:49 +01:00
Mark Riddoch
9904e71efe
Fixed issue with filter object poitner not being initialised.
...
Addition of "not loaded" message in show filters
2014-06-05 08:55:19 +01:00
Mark Riddoch
ea177b481f
Fixed for typo in modutil.h
...
Addition of timestamps to the query log produced by the QLA filter
2014-06-04 23:30:54 +01:00