Skip to content

Commit c79fef6

Browse files
PavelShilin89Pavel_Shilin
andauthored
Test mysqldump with replication (#2816)
* Improved and test replication-with-mysqldump.rec, adding new data and checks * Added checking status nodes * Splitting a common mysqldump into separate tables * Added cases using different users * Added cases using different flags and users to the test replication-with-mysqldump.rec * Added checks that stopwords and exceptions are correctly restored and working in the cluster after dumping --------- Co-authored-by: Pavel_Shilin <[email protected]>
1 parent c887f2d commit c79fef6

File tree

5 files changed

+546
-31
lines changed

5 files changed

+546
-31
lines changed

test/clt-tests/base/replication/start-searchd-precach.recb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
33
––– output –––
44
––– input –––
5-
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
5+
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
66
––– output –––
7-
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
8-
Copyright (c) 2001-2016, Andrew Aksyonoff
9-
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
10-
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
11-
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
12-
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
13-
listening on %{IPADDR}:%{NUMBER} for mysql
14-
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
15-
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
167
––– input –––
178
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
189
––– output –––

test/clt-tests/base/searchd-with-flexible-ports.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cat << EOF
33
common {
44
plugin_dir = /usr/local/lib/manticore
5-
lemmatizer_base = /usr/share/manticore/morph/
5+
lemmatizer_base = /usr/share/manticore/
66
}
77
searchd {
88
listen = 127.0.0.1:${INSTANCE}306:mysql41
@@ -14,7 +14,6 @@ searchd {
1414
data_dir = /var/log/manticore-${INSTANCE}
1515
query_log_format = sphinxql
1616
query_log_commands = 1
17-
diskchunk_flush_write_timeout = -1
1817
}
1918
2019
EOF

test/clt-tests/core/show-settings.rec

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ export INSTANCE=1
55
––– input –––
66
mysql -h0 -P1306 -e "SHOW SETTINGS;"
77
––– output –––
8-
+---------------------------------------+------------------------------------------------------------+
9-
| Setting_name | Value |
10-
+---------------------------------------+------------------------------------------------------------+
11-
| configuration_file | /.clt/test/clt-tests/base/searchd-with-flexible-ports.conf |
12-
| worker_pid | %{NUMBER} |
13-
| searchd.listen | %{IPADDR}:%{NUMBER}:mysql41 |
14-
| searchd.listen | %{IPADDR}:%{NUMBER} |
15-
| searchd.listen | %{IPADDR}:%{NUMBER}:http |
16-
| searchd.log | /var/log/manticore-1/searchd.log |
17-
| searchd.query_log | /var/log/manticore-1/query.log |
18-
| searchd.pid_file | /var/log/manticore-1/searchd.pid |
19-
| searchd.data_dir | /var/log/manticore-1 |
20-
| searchd.query_log_format | sphinxql |
21-
| searchd.query_log_commands | 1 |
22-
| searchd.diskchunk_flush_write_timeout | -1 |
23-
| searchd.binlog_path | /var/log/manticore-1/binlog |
24-
| common.plugin_dir | /usr/local/lib/manticore |
25-
| common.lemmatizer_base | /usr/share/manticore/morph/ |
26-
+---------------------------------------+------------------------------------------------------------+
8+
+----------------------------+------------------------------------------------------------+
9+
| Setting_name | Value |
10+
+----------------------------+------------------------------------------------------------+
11+
| configuration_file | /.clt/test/clt-tests/base/searchd-with-flexible-ports.conf |
12+
| worker_pid | %{NUMBER} |
13+
| searchd.listen | %{IPADDR}:%{NUMBER}:mysql41 |
14+
| searchd.listen | %{IPADDR}:%{NUMBER} |
15+
| searchd.listen | %{IPADDR}:%{NUMBER}:http |
16+
| searchd.log | /var/log/manticore-1/searchd.log |
17+
| searchd.query_log | /var/log/manticore-1/query.log |
18+
| searchd.pid_file | /var/log/manticore-1/searchd.pid |
19+
| searchd.data_dir | /var/log/manticore-1 |
20+
| searchd.query_log_format | sphinxql |
21+
| searchd.query_log_commands | 1 |
22+
| searchd.binlog_path | /var/log/manticore-1/binlog |
23+
| common.plugin_dir | /usr/local/lib/manticore |
24+
| common.lemmatizer_base | /usr/share/manticore/ |
25+
+----------------------------+------------------------------------------------------------+

0 commit comments

Comments
 (0)