MXS-2047 Create test that reveals problem

If

* BLR replicates from a node in a Galera cluster and
* writes are made to all nodes in that cluster,

then

* if a slave to BLR is stopped when it has received an event
  originating in a node different than the one BLR is replicating
  from

the subsequent (re)starting of the slave will fail because BLR looks
for the last event from a file whose path contains the server id of
the node where the event originates, although it should look for it
in the file whose path contains the server id of the node from which
BLR replicates.
This commit is contained in:
Johan Wikman
2018-09-20 16:51:58 +03:00
parent 6e4556849c
commit c105a71317
3 changed files with 322 additions and 0 deletions

View File

@ -1068,5 +1068,8 @@ add_test_executable(mxs1113_schemarouter_ps.cpp mxs1113_schemarouter_ps mxs1113_
# https://jira.mariadb.org/browse/MXS-2037
add_test_executable(mxs2037_namedserver_wildcards.cpp mxs2037_namedserver_wildcards mxs2037_namedserver_wildcards LABELS namedserverfilter LIGHT REPL_BACKEND)
# MXS-2047: BLR must store full path of events
# https://jira.mariadb.org/browse/MXS-2047
add_test_executable(mxs2047_blr_gtid_path.cpp mxs2047_blr_gtid_path mxs2047_blr_gtid_path LABELS binlogrouter GALERA_BACKEND)
configure_file(templates.h.in ${CMAKE_CURRENT_BINARY_DIR}/templates.h @ONLY)