Markus Mäkelä
f574703f8e
MXS-1881: Abstract the final event processing
...
The final part of the row event processing is now done by an
implementation of the EventConverter class. This makes the implementation
of different storage types easier as only the actual storage operation
needs to be implemented.
2018-06-08 12:18:12 +03:00
Markus Mäkelä
c56b2063aa
MXS-1881: Rename event processing related objects
...
The main objects involved in replication event processing now use camel
case.
2018-06-08 12:18:11 +03:00
Markus Mäkelä
69855f9214
MXS-1881: Refactor AVRO_TABLE
...
Moved initialization into the constructor and removed unused member
variables.
2018-06-08 12:18:11 +03:00
Markus Mäkelä
f61c56228c
MXS-1881: Refactor TABLE_MAP initialization
...
Changed TABLE_MAP to use STL containers and types. The initialization is
now done in the constructor. Removed unnecessary linkage between TABLE_MAP
and TABLE_CREATE.
2018-06-08 12:18:11 +03:00
Markus Mäkelä
e35d9dfc10
Move client functionality into AvroSession
...
Most of the code is unchanged. Some of the code that relied on modifiable
char pointers was modified to use std::string.
2018-06-08 12:18:11 +03:00
Markus Mäkelä
0d73530ff3
Merge branch '2.2' into develop
2018-06-08 11:30:55 +03:00
Markus Mäkelä
a7dd2127d6
Merge branch '2.1' into 2.2
2018-06-08 11:21:35 +03:00
Markus Mäkelä
c850336199
MXS-1907: Allow ssl_verify_peer_certificate when creating listener
...
When a listener is created at runtime or SSL is being enabled for an
already created listener, the ssl_verify_peer_certificate parameter can
now be defined.
2018-06-08 10:11:43 +03:00
Markus Mäkelä
6ba423cf94
Dump statements on unexpected internal state
...
If a server responds when no response was expected, dump stored
statements. This should help deduce root causes of problems relating to
unexpected responses.
2018-06-08 07:45:18 +03:00
Markus Mäkelä
d0feff5eb3
Wait for a number of monitor intervals in tests
...
The tests can now wait for a number of monitor intervals. This removes the
need to have hard-coded sleeps in the code and makes monitor tests more
robust under heavier load.
2018-06-08 07:45:18 +03:00
Markus Mäkelä
7be11af911
Fix release documentation
...
Copied the contents of the pull request to the wrong repo to the correct
one.
2018-06-08 07:45:18 +03:00
Markus Mäkelä
600d459079
Fix attribute assignment in mxs1824_double_cursor
...
Used correct type, checked for return value.
2018-06-08 07:45:18 +03:00
Markus Mäkelä
238a00f29d
Set mysqlmon timeouts to 10 seconds
...
The backend timeouts should help prevent disconnections.
2018-06-08 07:45:18 +03:00
Johan Wikman
8afa8c2c5a
MXS-1775 Add MonitorInstanceSimple class
...
MonitorInstanceSimple is intended for simple monitors that
probe servers in a straightforward fashion. More complex monitors
can be derived directly from MonitorInstance.
2018-06-07 15:13:26 +03:00
Marko
880db1353a
Merge branch '2.2' into develop
2018-06-07 14:39:16 +03:00
Marko
0dd7448586
MXS-1709 Fix memory leaks in unit tests
2018-06-06 22:59:52 +03:00
Marko
3c0f301674
MXS-1709 Fix to test_server
2018-06-06 22:36:10 +03:00
Marko
82a95bfe2d
MXS-1709 Fix memory leaks causing test_server to fail
2018-06-06 22:36:10 +03:00
Esa Korhonen
2481de260f
Move monitor-dependent code in MariaDBServer to MariaDBMonitor
...
Removes Monitor-dependency from the MariaDBServer-class.
2018-06-06 22:28:38 +03:00
Johan Wikman
6d1863451a
MXS-1775 Fix galera monitor
...
The statuses were flushed at the wrong place as far as the
Galera monitor was concerned.
2018-06-06 15:34:40 +03:00
Johan Wikman
b2a190c2b8
MXS-1775 Add switchover_on_low_disk_space parameter
2018-06-06 15:25:57 +03:00
Johan Wikman
dc47835ef6
MXS-1775 Add documentation for new monitor parameter
2018-06-06 15:25:57 +03:00
Johan Wikman
af717426d5
MXS-1775 Load server journal unconditionally
...
The server journal is unconditionally loaded and need not be
done in @c pre_loop.
2018-06-06 15:25:57 +03:00
Johan Wikman
f600b3a769
MXS-1775 Check disk space in MariaDBMonitor
2018-06-06 15:25:57 +03:00
Johan Wikman
18ece193bb
MXS-1775 MariaDBMonitor::main() removed
...
Now uses MonitorInstance::main() as all other monitors.
2018-06-06 15:25:57 +03:00
Johan Wikman
44b1e805a3
MXS-1775 Move MariaDBMonitor functionality to tick
...
Now all is set for moving MariaDBMonitor on top of
MonitorInstance::main.
2018-06-06 15:25:57 +03:00
Johan Wikman
329a6df662
MXS-1775 Factor out post-processing
...
Further adjustments for being able to move MariaDBMonitor on
top of MonitorInstance::main().
2018-06-06 15:25:57 +03:00
Johan Wikman
71194d83d3
MXS-1775 Rearrange for moving main loop to MonitorInstance
...
This is another step in the process for moving the main loop
from MariaDBMonitor to MonitorInstance.
2018-06-06 15:25:57 +03:00
Johan Wikman
5172c43e29
MXS-1775 Add functions for checking disk space of servers
2018-06-06 15:25:57 +03:00
Johan Wikman
4325ab620b
MXS-1775 Add status indicating disk space exhaustion
...
The variable is modified by monitors from their monitor threads.
And made available to routers as nice to know information.
2018-06-06 15:25:57 +03:00
Johan Wikman
50c3c637df
Merge branch '2.2' into develop
2018-06-06 14:54:30 +03:00
Johan Wikman
235bcb4d15
Update 2.2 version number
2018-06-06 14:42:30 +03:00
Johan Wikman
5181d3a10a
Merge branch '2.2' into develop
2018-06-06 14:41:50 +03:00
Johan Wikman
f76abd5584
Merge branch '2.2.9' into 2.2
2018-06-06 14:41:32 +03:00
Johan Wikman
9e70ce5ffd
Fix broken documentation link
2018-06-06 14:38:10 +03:00
Johan Wikman
4b95975d32
Merge branch '2.2' into develop
2018-06-06 12:13:37 +03:00
Johan Wikman
acc192b477
Merge branch '2.2.9' into 2.2
2018-06-06 12:13:02 +03:00
Johan Wikman
ff5f93a751
Update 2.2.9 release date
2018-06-06 12:05:39 +03:00
Markus Mäkelä
70fdd0fc17
Merge branch '2.2' into develop
2018-06-06 08:56:31 +03:00
Markus Mäkelä
f2b2951c99
Track the number of performed monitoring intervals
...
Tracking how many times the monitor has performed its monitoring allows
the test framework to consistently wait for an event instead of waiting
for a hard-coded time period. The MaxCtrl `api get` command can be used to
easily extract the numeric value.
2018-06-06 08:46:46 +03:00
Markus Mäkelä
cfe676b1c8
Sleep longer in mysqlmon_* tests
...
Increased the amount of time that the tests sleep while they wait for
states to change. This should make them more tolerant of server load by
allowing more time for things to settle down.
2018-06-06 08:46:46 +03:00
Markus Mäkelä
994d3bc22d
Disable mxs1824_double_cursor
...
The test doesn't work due to the fact that the connector can't open two
cursors at the same time.
2018-06-06 08:46:45 +03:00
Markus Mäkelä
e6a9b83269
MXS-1899: Test that generated [maxscale] sections work
...
The test alters the configuration at runtime and restarts MaxScale.
2018-06-06 08:46:45 +03:00
Esa Korhonen
17c9ac95bd
MXS-1845 Add unit test for the cycle find algorithm (Tarjan SCC)
...
Only a few test cases for now.
2018-06-05 16:33:51 +03:00
Esa Korhonen
9a0445cd4e
MXS-1845 Save cycle members
...
The saved data may be useful later on. Also includes some cleanup.
2018-06-05 16:25:04 +03:00
Marko
19a0c94661
Typo fix in logthrottling_test
2018-06-05 15:49:22 +03:00
Marko
1857252033
MXS-1749 Delete old process datadir on startup if it still exists
...
When starting MaxScale it deletes all of the old process datadirs that
might have not been cleaned up due to unexpected exit of the program.
2018-06-05 15:10:41 +03:00
Marko
ac998b70a3
Merge branch 'develop' of https://github.com/mariadb-corporation/MaxScale into develop
2018-06-05 11:37:18 +03:00
Marko
48509d30f1
Silence the -Wunused-result warning
...
-Wunused-result warning in test_logthrottling.cc was causing error when
trying to build MaxScale from source. This warning can be silenced with by
putting the function triggering the warning in if-clause.
2018-06-05 11:30:55 +03:00
Johan Wikman
7e1f795ae9
Address review comments
2018-06-05 10:37:03 +03:00