-
-
Notifications
You must be signed in to change notification settings - Fork 622
added cluster binglog #2710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added cluster binglog #2710
Conversation
… restart on crash to speed up node join without SST after daemon crash; fixed #1894; added shared memory buffer
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
-
+ 1
+
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
- Table: tbl_missing_type
+ Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
+ Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
[%{NUMBER}] %{NUMBER}
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
[%{NUMBER}]+ Exit %{NUMBER} mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);"
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
|
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
-
+ 1
+
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[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)...
starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION})' ...
listening on %{IPADDR}:%{NUMBER} for mysql
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
listening on %{IPADDR}:%{NUMBER} for sphinx and http(s)
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
- Table: tbl_missing_type
+ Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
+ Table: tbl2
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- === Node 2306 ===
+ *************************** 1. row ***************************
+ Table: tbl2
+ Type: distributed
+ === Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
[%{NUMBER}] %{NUMBER}
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
[%{NUMBER}]+ Exit %{NUMBER} mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);"
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
|
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl2
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl2' is missing: DROP TABLE failed: table 'tbl2' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl_missing_type
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist |
… cases to test-ist-recovery-after-node-crash.rec
…research into cluster_binlog
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl2
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl2' is missing: DROP TABLE failed: table 'tbl2' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl_missing_type
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist |
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl2
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl2' is missing: DROP TABLE failed: table 'tbl2' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl_missing_type
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist |
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl2
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl2' is missing: DROP TABLE failed: table 'tbl2' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl_missing_type
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist |
clt❌ CLT tests in test/clt-tests/core/test-freeze-unfreeze-update.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd > /dev/null; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
Buddy started!
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test (id bigint, usertest text stored indexed, category string, age int, salary float, discount float, is_active bool, last_login timestamp, product_codes multi, large_values multi64, additional_info json, location_vector float_vector)" --load="INSERT INTO test (id, usertest, category, age, salary, discount, is_active, last_login, product_codes, large_values, additional_info, location_vector) VALUES (<increment>, '<text/5/20>', '<text/5/10>', <int/1/100>, <float/1.0/100.0>, <float/0.0/10.0>, <int/0/1>, <int/1609459200/1704067200>, (<array/1/10/1/100>), (<array/1/10/-100000/100000>), '{\"key\":\"value\"}', (<array/4/4/1.0/10.0>))" --batch-size=10000 --threads=4 --total=1000000
––– output –––
{
"threads": %{NUMBER},
"batch_size": %{NUMBER},
"time": "%{NUMBER}:%{NUMBER}",
"total_operations": %{NUMBER},
"operations_per_second": %{NUMBER},
"qps": {
"avg": %{NUMBER},
"p99": %{NUMBER},
"p95": %{NUMBER},
"p5": %{NUMBER},
"p1": %{NUMBER}
},
"latency": {
~ "avg": %{NUMBER}.%{NUMBER}439,
"p50": %{NUMBER},
"p95": %{NUMBER},
"p99": %{NUMBER}
}
}
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test ORDER BY id ASC LIMIT 100000 OPTION max_matches=100000;" > /tmp/test_data.txt
––– output –––
––– input –––
md5sum /tmp/test_data.txt
––– output –––
99494585e9f5bad83f5f6ec41a62d292 /tmp/test_data.txt
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| test | rt |
+-------+------+
––– input –––
mysql -P9306 -h0 -e "SELECT COUNT(*) FROM test;"
––– output –––
+----------+
| count(*) |
+----------+
| 1000000 |
+----------+
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test;"
––– output –––
+-----------------+--------------+----------------+
| Field | Type | Properties |
+-----------------+--------------+----------------+
| id | bigint | |
| usertest | text | indexed stored |
| category | string | |
| age | uint | |
| salary | float | |
| discount | float | |
| is_active | bool | |
| last_login | timestamp | |
| product_codes | mva | |
| large_values | mva64 | |
| additional_info | json | |
| location_vector | float_vector | |
+-----------------+--------------+----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test ORDER BY id ASC LIMIT 10;"
––– output –––
+------+-------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+----------------------------------------------------------------+-----------------+---------------------------------------+
| id | usertest | category | age | salary | discount | is_active | last_login | product_codes | large_values | additional_info | location_vector |
+------+-------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+----------------------------------------------------------------+-----------------+---------------------------------------+
| 1 | Incorrectly heavy soft carefully late sit; put draw afraid; gave hardly. | Been vaguely 1000 this at understood gave always east fake. | 8 | 20.299999 | 1.500000 | 0 | 1676104873 | 10,16,40,71,85,87,100 | -88054,-30114,-15979,5487,72220,72277,91879,93074,97442 | {"key":"value"} | 2.000000,8.000000,10.000000,5.000000 |
| 2 | Called, afraid foolish! happy? busy taken dead shall make seen privately understood short universally. | Was? seen feel economically beautiful legally. | 30 | 86.900002 | 4.900000 | 1 | 1697110603 | 1,40,47,48,52,66,80,93 | -87441,-74083,-38090,-21342,-13596,49456,57513,90976,92580 | {"key":"value"} | 6.000000,10.000000,6.000000,3.000000 |
| 3 | Calm incorrectly modern obviously soft certainly, quietly need tell poor spring evening drove young? lost. | Probably came knew felt has. | 47 | 21.600000 | 6.700000 | 0 | 1678595569 | 3 | 26497,73063,73768,87840 | {"key":"value"} | 10.000000,5.000000,9.000000,10.000000 |
| 4 | Cruel; emotionally beautiful modern the. Thirsty do poor dead; lazy let sick; kept angry politically closed understand. | Regularly became? fell. Brought with stand south. | 3 | 4.200000 | 7.600000 | 0 | 1650601281 | 24,28,62 | -99076 | {"key":"value"} | 4.000000,8.000000,8.000000,3.000000 |
| 5 | Scientifically sad afraid, meet positively! were spent hard. | Get wrote excited deep suddenly foolish they unsuccessfully. | 34 | 4.600000 | 5.700000 | 1 | 1672897587 | 7,9,10,16,29,36,52,82,99 | 23225,29377 | {"key":"value"} | 10.000000,2.000000,7.000000,1.000000 |
| 6 | Happy certainly, carelessly scientifically lie saw grew, hurt hot full monthly cut may calm be sharp. | Cut serious; day! harshly regionally bitter happy quickly stale the. | 65 | 92.599998 | 4.500000 | 0 | 1699959055 | 3,20,74,92 | -58459,-31703,-8868,-8398,1620,24456,76572,79957,86553,95523 | {"key":"value"} | 7.000000,10.000000,8.000000,3.000000 |
| 7 | Easily often set hot new it become. | Be quiet cold nightly poor. | 59 | 19.400000 | 6.000000 | 1 | 1685126023 | 6,11,34,35,47,60,86,98 | -54811,-28523,-16029,-8383,266,6217,31166,67799,99092 | {"key":"value"} | 9.000000,2.000000,5.000000,5.000000 |
| 8 | Politically grew rich loud tried seen. Nowhere am salty dawn quietly? gentle permanently gone? drew kept. | Big specifically weak held she; constantly send down spiritually. | 15 | 34.700001 | 1.000000 | 0 | 1647818588 | 77,86 | -55160,-5014,31069,31847,34334,36035,61084,62322,81203,95016 | {"key":"value"} | 4.000000,7.000000,4.000000,7.000000 |
| 9 | Far, usually light west educationally. Fake wet salty wrong maybe! does went usually? humble send are. | Economically commonly wrote specifically healthy wrong culturally? 4, small rich. | 51 | 4.400000 | 0.500000 | 1 | 1611948425 | 2,5,16,18,35,38,44,79,95 | -77137,-67602,-19932,-10666,3139,22804,45013,65922,71495,87473 | {"key":"value"} | 1.000000,5.000000,4.000000,10.000000 |
| 10 | We nowhere bad hold! happily. | Unusually hold clever that! sometimes illegally real late suddenly. | 6 | 70.699997 | 0.800000 | 0 | 1689780079 | 14,94 | -91152,-66001,-52476,-36462,6015,35599,50917,92421 | {"key":"value"} | 3.000000,6.000000,4.000000,9.000000 |
+------+-------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+----------------------------------------------------------------+-----------------+---------------------------------------+
––– input –––
mysql -h0 -P9306 -e "flush ramchunk test; freeze test; `for n in \`seq 1 100\`; do echo UPDATE test SET category='updated' WHERE id=$n; done`" &
––– output –––
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test ORDER BY id ASC LIMIT 5;"
––– output –––
+------+-------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+------------------------------------------------------------+-----------------+---------------------------------------+
| id | usertest | category | age | salary | discount | is_active | last_login | product_codes | large_values | additional_info | location_vector |
+------+-------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+------------------------------------------------------------+-----------------+---------------------------------------+
| 1 | Incorrectly heavy soft carefully late sit; put draw afraid; gave hardly. | Been vaguely 1000 this at understood gave always east fake. | 8 | 20.299999 | 1.500000 | 0 | 1676104873 | 10,16,40,71,85,87,100 | -88054,-30114,-15979,5487,72220,72277,91879,93074,97442 | {"key":"value"} | 2.000000,8.000000,10.000000,5.000000 |
| 2 | Called, afraid foolish! happy? busy taken dead shall make seen privately understood short universally. | Was? seen feel economically beautiful legally. | 30 | 86.900002 | 4.900000 | 1 | 1697110603 | 1,40,47,48,52,66,80,93 | -87441,-74083,-38090,-21342,-13596,49456,57513,90976,92580 | {"key":"value"} | 6.000000,10.000000,6.000000,3.000000 |
| 3 | Calm incorrectly modern obviously soft certainly, quietly need tell poor spring evening drove young? lost. | Probably came knew felt has. | 47 | 21.600000 | 6.700000 | 0 | 1678595569 | 3 | 26497,73063,73768,87840 | {"key":"value"} | 10.000000,5.000000,9.000000,10.000000 |
| 4 | Cruel; emotionally beautiful modern the. Thirsty do poor dead; lazy let sick; kept angry politically closed understand. | Regularly became? fell. Brought with stand south. | 3 | 4.200000 | 7.600000 | 0 | 1650601281 | 24,28,62 | -99076 | {"key":"value"} | 4.000000,8.000000,8.000000,3.000000 |
| 5 | Scientifically sad afraid, meet positively! were spent hard. | Get wrote excited deep suddenly foolish they unsuccessfully. | 34 | 4.600000 | 5.700000 | 1 | 1672897587 | 7,9,10,16,29,36,52,82,99 | 23225,29377 | {"key":"value"} | 10.000000,2.000000,7.000000,1.000000 |
+------+-------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+------------------------------------------------------------+-----------------+---------------------------------------+test/clt-tests/core/test-distributed-inserts-with-replication.rec––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
mysql -h0 -P1306 -e "CREATE CLUSTER ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "JOIN CLUSTER ${CLUSTER_NAME} AT '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for port in 1306 2306; do echo "Checking status for port $port:"; timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW STATUS LIKE 'cluster_replication_node_state'\G\" | grep -q 'Value: synced'; do sleep 1; done" && echo "Port $port: Node is synced." || echo "Port $port: Node is not synced (Value: closed or other)."; done
––– output –––
Checking status for port 1306:
Port 1306: Node is synced.
Checking status for port 2306:
Port 2306: Node is synced.
––– input –––
mysql -h0 -P1306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, model TEXT, storage_capacity INTEGER, color STRING, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') SHARDS=3 RF=2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_node_state'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_node_state
Value: synced
––– input –––
mysql -h0 -P1306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
*************************** 4. row ***************************
Table: system.test2_s0
Type: rt
*************************** 5. row ***************************
Table: system.test2_s1
Type: rt
*************************** 6. row ***************************
Table: system.test2_s2
Type: rt
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
- *************************** 4. row ***************************
- Table: system.test2_s0
- Type: rt
- *************************** 5. row ***************************
- Table: system.test2_s1
- Type: rt
- *************************** 6. row ***************************
- Table: system.test2_s2
- Type: rt
––– input –––
mysql -P1306 -h0 -e "SHOW TABLES;"
––– output –––
+-------+-------------+
| Table | Type |
+-------+-------------+
| test2 | distributed |
+-------+-------------+
––– input –––
mysql -P2306 -h0 -e "SHOW TABLES;"
––– output –––
- +-------+-------------+
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P1306 -h0 -e "DESCRIBE test2;"
––– output –––
+------------------+--------------+----------------+
| Field | Type | Properties |
+------------------+--------------+----------------+
| id | bigint | |
| model | text | indexed stored |
| storage_capacity | uint | |
| color | string | |
| release_year | uint | |
| price | float | |
| discounted_price | float | |
| sold | bool | |
| date_added | timestamp | |
| product_codes | mva | |
| values | mva64 | |
| additional_info | json | |
| vector | float_vector | knn |
+------------------+--------------+----------------+
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "iPhone 13 Pro", "storage_capacity": 256, "color": "silver", "release_year": 2021, "price": 1099.99, "discounted_price": 989.99, "sold": 1, "date_added": 1591362342000, "product_codes": [1,2,3], "values": [523456764345678976], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip"]}, "vector": [0.773448,0.312478,0.137971,0.459821]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"model": "Galaxy S21 Ultra", "storage_capacity": 128, "color": "black", "release_year": 2021, "price": 1199.99, "discounted_price": 1099.99, "sold": 1, "date_added": 1609459200000, "product_codes": [4,5,6], "values": [1234567890123456789], "additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100"]}, "vector": [0.5,0.4,0.3,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7,8,9], "values": [987654321987654321], "additional_info": {"features": ["Smooth display", "Google Tensor chip"]}, "vector": [0.8,0.6,0.4,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976 | {"features":["ProMotion display","A15 Bionic chip"]} | 0.773448,0.312478,0.137971,0.459821 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/replace -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "Updated Model", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1399.99, "discounted_price": 1299.99, "sold": false, "date_added": 1630454400000, "product_codes": [10,11,12], "values": [987654321987654321], "additional_info": {"features": ["New feature 1", "New feature 2"]}, "vector": [0.7,0.8,0.9,1.0]}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"deleted"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"not found"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 4, "doc": {"model": "Updated iPhone 14", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1299.99, "discounted_price": 1199.99, "sold": 1, "date_added": 1661990400, "product_codes": [19,20,21], "values": [1234567890123456789],"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},"vector": [0.1,0.2,0.3,0.4]}}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
null
Duplicate ID test failed!
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": '$((10 + $i))', "doc": {"model": "Device '$i'", "storage_capacity": 64, "color": "black", "release_year": 2023, "price": 499.99, "discounted_price": 449.99, "sold": 0, "date_added": 1672531200, "product_codes": [1,2,3], "values": [1234567890123456789], "additional_info": {"features": ["Feature 1","Feature 2"]}, "vector": [0.1,0.2,0.3,0.4]}}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
Parallel insert test passed!
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 4 | Updated iPhone 14 | 512 | black | 2022 | 1299.989990 | 1199.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island","Improved camera"]} | 0.100000,0.200000,0.300000,0.400000 |
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20 ORDER BY id ASC;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id = 20;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
rm -f bulk.json bulk_insert.json bulk_update.json bulk_delete.json bulk_operations.json; if [[ ! -f bulk.json && ! -f bulk_insert.json && ! -f bulk_update.json && ! -f bulk_delete.json && ! -f bulk_operations.json ]]; then echo "All temporary files deleted successfully."; else echo "Error: Some temporary files were not deleted."; fi
––– output –––
All temporary files deleted successfully. |
clt❌ CLT tests in test/clt-tests/core/test-distributed-inserts-with-replication.rec––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
mysql -h0 -P1306 -e "CREATE CLUSTER ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "JOIN CLUSTER ${CLUSTER_NAME} AT '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for port in 1306 2306; do echo "Checking status for port $port:"; timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW STATUS LIKE 'cluster_replication_node_state'\G\" | grep -q 'Value: synced'; do sleep 1; done" && echo "Port $port: Node is synced." || echo "Port $port: Node is not synced (Value: closed or other)."; done
––– output –––
Checking status for port 1306:
Port 1306: Node is synced.
Checking status for port 2306:
Port 2306: Node is synced.
––– input –––
mysql -h0 -P1306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, model TEXT, storage_capacity INTEGER, color STRING, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') SHARDS=3 RF=2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_node_state'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_node_state
Value: synced
––– input –––
mysql -h0 -P1306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
*************************** 4. row ***************************
Table: system.test2_s0
Type: rt
*************************** 5. row ***************************
Table: system.test2_s1
Type: rt
*************************** 6. row ***************************
Table: system.test2_s2
Type: rt
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
- *************************** 4. row ***************************
- Table: system.test2_s0
- Type: rt
- *************************** 5. row ***************************
- Table: system.test2_s1
- Type: rt
- *************************** 6. row ***************************
- Table: system.test2_s2
- Type: rt
––– input –––
mysql -P1306 -h0 -e "SHOW TABLES;"
––– output –––
+-------+-------------+
| Table | Type |
+-------+-------------+
| test2 | distributed |
+-------+-------------+
––– input –––
mysql -P2306 -h0 -e "SHOW TABLES;"
––– output –––
- +-------+-------------+
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P1306 -h0 -e "DESCRIBE test2;"
––– output –––
+------------------+--------------+----------------+
| Field | Type | Properties |
+------------------+--------------+----------------+
| id | bigint | |
| model | text | indexed stored |
| storage_capacity | uint | |
| color | string | |
| release_year | uint | |
| price | float | |
| discounted_price | float | |
| sold | bool | |
| date_added | timestamp | |
| product_codes | mva | |
| values | mva64 | |
| additional_info | json | |
| vector | float_vector | knn |
+------------------+--------------+----------------+
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "iPhone 13 Pro", "storage_capacity": 256, "color": "silver", "release_year": 2021, "price": 1099.99, "discounted_price": 989.99, "sold": 1, "date_added": 1591362342000, "product_codes": [1,2,3], "values": [523456764345678976], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip"]}, "vector": [0.773448,0.312478,0.137971,0.459821]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"model": "Galaxy S21 Ultra", "storage_capacity": 128, "color": "black", "release_year": 2021, "price": 1199.99, "discounted_price": 1099.99, "sold": 1, "date_added": 1609459200000, "product_codes": [4,5,6], "values": [1234567890123456789], "additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100"]}, "vector": [0.5,0.4,0.3,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7,8,9], "values": [987654321987654321], "additional_info": {"features": ["Smooth display", "Google Tensor chip"]}, "vector": [0.8,0.6,0.4,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976 | {"features":["ProMotion display","A15 Bionic chip"]} | 0.773448,0.312478,0.137971,0.459821 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/replace -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "Updated Model", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1399.99, "discounted_price": 1299.99, "sold": false, "date_added": 1630454400000, "product_codes": [10,11,12], "values": [987654321987654321], "additional_info": {"features": ["New feature 1", "New feature 2"]}, "vector": [0.7,0.8,0.9,1.0]}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"deleted"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"not found"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 4, "doc": {"model": "Updated iPhone 14", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1299.99, "discounted_price": 1199.99, "sold": 1, "date_added": 1661990400, "product_codes": [19,20,21], "values": [1234567890123456789],"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},"vector": [0.1,0.2,0.3,0.4]}}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
null
Duplicate ID test failed!
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": '$((10 + $i))', "doc": {"model": "Device '$i'", "storage_capacity": 64, "color": "black", "release_year": 2023, "price": 499.99, "discounted_price": 449.99, "sold": 0, "date_added": 1672531200, "product_codes": [1,2,3], "values": [1234567890123456789], "additional_info": {"features": ["Feature 1","Feature 2"]}, "vector": [0.1,0.2,0.3,0.4]}}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
Parallel insert test passed!
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 4 | Updated iPhone 14 | 512 | black | 2022 | 1299.989990 | 1199.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island","Improved camera"]} | 0.100000,0.200000,0.300000,0.400000 |
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20 ORDER BY id ASC;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id = 20;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
rm -f bulk.json bulk_insert.json bulk_update.json bulk_delete.json bulk_operations.json; if [[ ! -f bulk.json && ! -f bulk_insert.json && ! -f bulk_update.json && ! -f bulk_delete.json && ! -f bulk_operations.json ]]; then echo "All temporary files deleted successfully."; else echo "Error: Some temporary files were not deleted."; fi
––– output –––
All temporary files deleted successfully. |
clt❌ CLT tests in test/clt-tests/sharding/mre.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2 timeout=5;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
test/clt-tests/sharding/test-drop-sharded-clustering-table.rec––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=c
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl1(id bigint) shards=3 rf=2;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
*************************** 1. row ***************************
Table: tbl1
Type: distributed
=== Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl1
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"; echo $?;
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl2
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl2
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:Tbl2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl2' is missing: DROP TABLE failed: table 'tbl2' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl_missing_type(id) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl_missing_type
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl_missing_type
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl_missing_type;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl_missing_type' is missing: DROP TABLE failed: table 'tbl_missing_type' must exist
+ 1
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
LONG_TABLE_NAME=$(printf "tbl%065d" 1)
––– output –––
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:${LONG_TABLE_NAME}(id bigint) shards=3 rf=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
- *************************** 1. row ***************************
+ === Node 2306 ===
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
- === Node 2306 ===
- *************************** 1. row ***************************
- Table: tbl00000000000000000000000000000000000000000000000000000000000000001
- Type: distributed
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:${LONG_TABLE_NAME};"
––– output –––
+ ERROR 1064 (42000) at line 1: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' is missing: DROP TABLE failed: table 'tbl00000000000000000000000000000000000000000000000000000000000000001' must exist
––– input –––
echo "=== Node 1306 ==="; mysql -h0 -P1306 -e "SHOW TABLES\G" || echo "Node 1306 failed!"; echo "=== Node 2306 ==="; mysql -h0 -P2306 -e "SHOW TABLES\G" || echo "Node 2306 failed!"
––– output –––
=== Node 1306 ===
=== Node 2306 ===
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:nonexistent_table;"
––– output –––
ERROR 1064 (42000) at line 1: table 'nonexistent_table' is missing: DROP TABLE failed: table 'nonexistent_table' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE nonexistent_cluster:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist
––– input –––
mysql -h0 -P1306 -e "INSERT INTO ${CLUSTER_NAME}:tbl1 VALUES (1);" & sleep 1; mysql -h0 -P1306 -e "DROP TABLE ${CLUSTER_NAME}:tbl1;"
––– output –––
ERROR 1064 (42000) at line 1: Cannot create table with column names missing
ERROR 1064 (42000) at line 1: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' must exist |
clt❌ CLT tests in test/clt-tests/core/test-distributed-inserts-with-replication.rec––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
Buddy started!
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
mysql -h0 -P1306 -e "CREATE CLUSTER ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "JOIN CLUSTER ${CLUSTER_NAME} AT '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_status
Value: primary
––– input –––
for port in 1306 2306; do echo "Checking status for port $port:"; timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW STATUS LIKE 'cluster_replication_node_state'\G\" | grep -q 'Value: synced'; do sleep 1; done" && echo "Port $port: Node is synced." || echo "Port $port: Node is not synced (Value: closed or other)."; done
––– output –––
Checking status for port 1306:
Port 1306: Node is synced.
Checking status for port 2306:
Port 2306: Node is synced.
––– input –––
mysql -h0 -P1306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, model TEXT, storage_capacity INTEGER, color STRING, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') SHARDS=3 RF=2;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_node_state'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_replication_node_state
Value: synced
––– input –––
mysql -h0 -P1306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
*************************** 4. row ***************************
Table: system.test2_s0
Type: rt
*************************** 5. row ***************************
Table: system.test2_s1
Type: rt
*************************** 6. row ***************************
Table: system.test2_s2
Type: rt
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
*************************** 1. row ***************************
Table: system.sharding_queue
Type: rt
*************************** 2. row ***************************
Table: system.sharding_state
Type: rt
*************************** 3. row ***************************
Table: system.sharding_table
Type: rt
- *************************** 4. row ***************************
- Table: system.test2_s0
- Type: rt
- *************************** 5. row ***************************
- Table: system.test2_s1
- Type: rt
- *************************** 6. row ***************************
- Table: system.test2_s2
- Type: rt
––– input –––
mysql -P1306 -h0 -e "SHOW TABLES;"
––– output –––
+-------+-------------+
| Table | Type |
+-------+-------------+
| test2 | distributed |
+-------+-------------+
––– input –––
mysql -P2306 -h0 -e "SHOW TABLES;"
––– output –––
- +-------+-------------+
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P1306 -h0 -e "DESCRIBE test2;"
––– output –––
+------------------+--------------+----------------+
| Field | Type | Properties |
+------------------+--------------+----------------+
| id | bigint | |
| model | text | indexed stored |
| storage_capacity | uint | |
| color | string | |
| release_year | uint | |
| price | float | |
| discounted_price | float | |
| sold | bool | |
| date_added | timestamp | |
| product_codes | mva | |
| values | mva64 | |
| additional_info | json | |
| vector | float_vector | knn |
+------------------+--------------+----------------+
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "iPhone 13 Pro", "storage_capacity": 256, "color": "silver", "release_year": 2021, "price": 1099.99, "discounted_price": 989.99, "sold": 1, "date_added": 1591362342000, "product_codes": [1,2,3], "values": [523456764345678976], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip"]}, "vector": [0.773448,0.312478,0.137971,0.459821]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"model": "Galaxy S21 Ultra", "storage_capacity": 128, "color": "black", "release_year": 2021, "price": 1199.99, "discounted_price": 1099.99, "sold": 1, "date_added": 1609459200000, "product_codes": [4,5,6], "values": [1234567890123456789], "additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100"]}, "vector": [0.5,0.4,0.3,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7,8,9], "values": [987654321987654321], "additional_info": {"features": ["Smooth display", "Google Tensor chip"]}, "vector": [0.8,0.6,0.4,0.2]}}' | jq '.result'
––– output –––
"created"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976 | {"features":["ProMotion display","A15 Bionic chip"]} | 0.773448,0.312478,0.137971,0.459821 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/replace -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "Updated Model", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1399.99, "discounted_price": 1299.99, "sold": false, "date_added": 1630454400000, "product_codes": [10,11,12], "values": [987654321987654321], "additional_info": {"features": ["New feature 1", "New feature 2"]}, "vector": [0.7,0.8,0.9,1.0]}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
"updated"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 987654321987654321 | {"features":["Smooth display","Google Tensor chip"]} | 0.800000,0.600000,0.400000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"deleted"
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
+------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+--------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
"not found"
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 4, "doc": {"model": "Updated iPhone 14", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1299.99, "discounted_price": 1199.99, "sold": 1, "date_added": 1661990400, "product_codes": [19,20,21], "values": [1234567890123456789],"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},"vector": [0.1,0.2,0.3,0.4]}}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
null
Duplicate ID test failed!
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": '$((10 + $i))', "doc": {"model": "Device '$i'", "storage_capacity": 64, "color": "black", "release_year": 2023, "price": 499.99, "discounted_price": 449.99, "sold": 0, "date_added": 1672531200, "product_codes": [1,2,3], "values": [1234567890123456789], "additional_info": {"features": ["Feature 1","Feature 2"]}, "vector": [0.1,0.2,0.3,0.4]}}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
Parallel insert test passed!
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
| 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
| 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100"]} | 0.500000,0.400000,0.300000,0.200000 |
| 4 | Updated iPhone 14 | 512 | black | 2022 | 1299.989990 | 1199.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island","Improved camera"]} | 0.100000,0.200000,0.300000,0.400000 |
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------+----------------------------------------------------------------+-------------------------------------+
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20 ORDER BY id ASC;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id = 20;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
| 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
––– input –––
rm -f bulk.json bulk_insert.json bulk_update.json bulk_delete.json bulk_operations.json; if [[ ! -f bulk.json && ! -f bulk_insert.json && ! -f bulk_update.json && ! -f bulk_delete.json && ! -f bulk_operations.json ]]; then echo "All temporary files deleted successfully."; else echo "Error: Some temporary files were not deleted."; fi
––– output –––
All temporary files deleted successfully. |
…arate files; fixed error handling from the shared memory buffer
Windows test results 3 files 3 suites 24m 32s ⏱️ For more details on these failures, see this check. Results for commit ca6cfb7. ♻️ This comment has been updated with latest results. |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt_deb_dev_installation❌ CLT tests in test/clt-tests/installation/deb-dev-update.rec––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y gnupg2 wget mariadb-client procps binutils > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-repo.noarch.deb
––– output –––
OK
––– input –––
dpkg -i manticore-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y manticore manticore-extra > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd --version
––– output –––
OK
––– input –––
manticore-executor -v
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
ps aux | grep -q '[s]earchd'; echo $?
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
export current_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $current_version_searchd
––– output –––
OK
––– input –––
export current_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $current_version_columnar
––– output –––
OK
––– input –––
export current_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $current_version_secondary
––– output –––
OK
––– input –––
export current_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $current_version_knn
––– output –––
OK
––– input –––
export current_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $current_version_galera
––– output –––
OK
––– input –––
export current_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | awk -F'[ v()]+' '/buddy v/{print $(NF-1)}'); echo $current_version_buddy
––– output –––
OK
––– input –––
wget -q https://repo.manticoresearch.com/manticore-dev-repo.noarch.deb; echo $?
––– output –––
OK
––– input –––
dpkg -i manticore-dev-repo.noarch.deb > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt -y install manticore manticore-extra manticore-common manticore-server manticore-server-core manticore-tools manticore-executor manticore-buddy manticore-backup manticore-columnar-lib manticore-server-core-dbgsym manticore-tools-dbgsym manticore-columnar-lib-dbgsym manticore-icudata-65l manticore-galera > /dev/null
––– output –––
OK
––– input –––
stdbuf -oL searchd --stop
––– output –––
OK
––– input –––
mkdir -p /var/run/manticore
––– output –––
OK
––– input –––
sleep 5; stdbuf -oL searchd | head -n 9
––– output –––
OK
––– input –––
rm /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait; stdbuf -oL searchd | head -n 15; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
export new_version_searchd=$(searchd --version | head -n 1 | cut -d" " -f2); echo $new_version_searchd
––– output –––
OK
––– input –––
export new_version_columnar=$(searchd --version | sed -n 's/.*columnar \([^ )]*\).*/\1/p'); echo $new_version_columnar
––– output –––
OK
––– input –––
export new_version_secondary=$(searchd --version | sed -n 's/.*secondary \([^ )]*\).*/\1/p'); echo $new_version_secondary
––– output –––
OK
––– input –––
export new_version_knn=$(searchd --version | sed -n 's/.*knn \([^ )]*\).*/\1/p'); echo $new_version_knn
––– output –––
OK
––– input –––
export new_version_galera=$(strings /usr/share/manticore/modules/libgalera_manticore.so | grep -oE '[0-9]+\.[0-9]+' | head -n1); echo $new_version_galera
––– output –––
OK
––– input –––
export new_version_buddy=$(mysql -h0 -P9306 -e "SHOW STATUS LIKE 'version'\G" | grep -oP 'buddy v\K[^ )]+'); echo $new_version_buddy
––– output –––
OK
––– input –––
if [[ "$new_version_searchd" > "$current_version_searchd" ]]; then echo "Upgrade successful. New version searchd: $new_version_searchd"; else echo "Upgrade failed. Current version searchd: $current_version_searchd, new version: $new_version_searchd"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_columnar" > "$current_version_columnar" ]]; then echo "Upgrade successful. New version columnar: $new_version_columnar"; else echo "Upgrade failed. Current version columnar: $current_version_columnar, new version: $new_version_columnar"; fi
––– output –––
- Upgrade successful. New version columnar: %{VERSION}
+ Upgrade failed. Current version columnar: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_secondary" > "$current_version_secondary" ]]; then echo "Upgrade successful. New version secondary: $new_version_secondary"; else echo "Upgrade failed. Current version secondary: $current_version_knn, new version: $new_version_secondary"; fi
––– output –––
- Upgrade successful. New version secondary: %{VERSION}
+ Upgrade failed. Current version secondary: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_knn" > "$current_version_knn" ]]; then echo "Upgrade successful. New version knn: $new_version_knn"; else echo "Upgrade failed. Current version knn: $current_version_knn, new version: $new_version_knn"; fi
––– output –––
- Upgrade successful. New version knn: %{VERSION}
+ Upgrade failed. Current version knn: 4.2.1, new version: 4.2.1
––– input –––
if [[ "$new_version_galera" > "$current_version_galera" ]] || [[ "$new_version_galera" == "$current_version_galera" ]]; then echo "Upgrade successful. New version galera: $new_version_galera"; else echo "Upgrade failed. Current version galera: $current_version_galera, new version: $new_version_galera"; fi
––– output –––
OK
––– input –––
if [[ "$new_version_buddy" > "$current_version_buddy" ]]; then echo "Upgrade successful. New version buddy: $new_version_buddy"; else echo "Upgrade failed. Current version buddy: $current_version_buddy, new version: $new_version_buddy"; fi
––– output –––
OK
––– input –––
manticore-backup --version
––– output –––
OK
––– input –––
apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
––– output –––
OK |
clt❌ CLT tests in test/clt-tests/core/test-distributed-inserts-with-replication.rec––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE CLUSTER ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "JOIN CLUSTER ${CLUSTER_NAME} AT '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for port in 1306 2306; do echo "Checking status for port $port:"; timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW STATUS LIKE 'cluster_replication_node_state'\G\" | grep -q 'Value: synced'; do sleep 1; done" && echo "Port $port: Node is synced." || echo "Port $port: Node is not synced (Value: closed or other)."; done
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, model TEXT, storage_capacity INTEGER, color STRING, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') SHARDS='3' RF='2';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_node_state'\G"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
- *************************** 1. row ***************************
- Table: system.sharding_queue
- Type: rt
- *************************** 2. row ***************************
- Table: system.sharding_state
- Type: rt
- *************************** 3. row ***************************
- Table: system.sharding_table
- Type: rt
- *************************** 4. row ***************************
- Table: system.test2_s0
- Type: rt
- *************************** 5. row ***************************
- Table: system.test2_s1
- Type: rt
- *************************** 6. row ***************************
- Table: system.test2_s2
- Type: rt
––– input –––
mysql -P1306 -h0 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -P2306 -h0 -e "SHOW TABLES;"
––– output –––
- +-------+-------------+
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P1306 -h0 -e "DESCRIBE test2;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "iPhone 13 Pro", "storage_capacity": 256, "color": "silver", "release_year": 2021, "price": 1099.99, "discounted_price": 989.99, "sold": 1, "date_added": 1591362342000, "product_codes": [1,2,3], "values": [523456764345678976], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip"]}, "vector": [0.773448,0.312478,0.137971,0.459821]}}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"model": "Galaxy S21 Ultra", "storage_capacity": 128, "color": "black", "release_year": 2021, "price": 1199.99, "discounted_price": 1099.99, "sold": 1, "date_added": 1609459200000, "product_codes": [4,5,6], "values": [1234567890123456789], "additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100"]}, "vector": [0.5,0.4,0.3,0.2]}}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7,8,9], "values": [987654321987654321], "additional_info": {"features": ["Smooth display", "Google Tensor chip"]}, "vector": [0.8,0.6,0.4,0.2]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/replace -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "Updated Model", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1399.99, "discounted_price": 1299.99, "sold": false, "date_added": 1630454400000, "product_codes": [10,11,12], "values": [987654321987654321], "additional_info": {"features": ["New feature 1", "New feature 2"]}, "vector": [0.7,0.8,0.9,1.0]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 4, "doc": {"model": "Updated iPhone 14", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1299.99, "discounted_price": 1199.99, "sold": 1, "date_added": 1661990400, "product_codes": [19,20,21], "values": [1234567890123456789],"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},"vector": [0.1,0.2,0.3,0.4]}}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
OK
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": '$((10 + $i))', "doc": {"model": "Device '$i'", "storage_capacity": 64, "color": "black", "release_year": 2023, "price": 499.99, "discounted_price": 449.99, "sold": 0, "date_added": 1672531200, "product_codes": [1,2,3], "values": [1234567890123456789], "additional_info": {"features": ["Feature 1","Feature 2"]}, "vector": [0.1,0.2,0.3,0.4]}}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
OK
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20 ORDER BY id ASC;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id = 20;"
––– output –––
OK
––– input –––
rm -f bulk.json bulk_insert.json bulk_update.json bulk_delete.json bulk_operations.json; if [[ ! -f bulk.json && ! -f bulk_insert.json && ! -f bulk_update.json && ! -f bulk_delete.json && ! -f bulk_operations.json ]]; then echo "All temporary files deleted successfully."; else echo "Error: Some temporary files were not deleted."; fi
––– output –––
OK |
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Counter: cluster_test_indexes
- Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- Counter: cluster_test_indexes
- Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
- PID node3: %{NUMBER}
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
- Daemon on node3 killed with SIGILL!
+ kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
+ Process on node3 is completed!
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table tbl1: cluster 'test' is not ready, not primary state (joining)
+ 1
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
test/clt-tests/replication/test-replication.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for port in 1306 2306 3306; do timeout 30 mysql -h0 -P$port -e "SHOW STATUS LIKE 'cluster_replication_status'\G" > /tmp/status_$port.log && grep -q "Value: primary" /tmp/status_$port.log && echo "Port $port: Node synced"; done && cat /tmp/status_1306.log
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
OK
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: error at PostRollback, code 3 (transaction aborted, server can continue), seqno -1
+ 1
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:4306' (111)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: unknown table 'testrt' in delete request
+ 1
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt;
––– output –––
OK
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'replication' is not ready, not primary state (synced)
+ 1
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- content: Updated Content
+ content: Latitude Precision Vostro
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- content: Updated Content
+ content: Latitude Precision Vostro
test/clt-tests/replication/test-replication-with-mysqldump.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=c
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo 'the, and, of' > /tmp/stopwords.txt
––– output –––
OK
––– input –––
echo 'cat => feline' > /tmp/exceptions.txt
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='columnar' morphology='stem_en' stopwords='/tmp/stopwords.txt' exceptions='/tmp/exceptions.txt' rt_mem_limit='256M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO tbl1 VALUES (1, 'The cat runs', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo '=> faster' > /tmp/wordforms.txt
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' morphology='stem_ru' wordforms='/tmp/wordforms.txt' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (1, 'Текст на русском', 84, 2.71, '{\"ключ\":\"значение\"}', (4,5,6), 'строка', 0, '2023-11-15 08:30:00', (987654321098765432, 123456789012345678), (0.4, 0.3, 0.2, 0.1));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (2, 'Прыжок', 19, 1.62, '{\"движение\":\"прыжок\",\"число\":3}', (7,8,9), 'пример', 1, '2024-06-10 15:45:00', (345678901234567890, 567890123456789012), (0.8, 0.7, 0.6, 0.5));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"
––– output –––
+ ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
––– input –––
mysql -h0 -P3306 -e "CREATE TABLE tbl3 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SHOW TABLE tbl3 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (1, 'Plain example', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'plain_string', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "ALTER CLUSTER c ADD tbl3;"; echo $?
––– output –––
- 0
+ ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- +-------------------+----------------+
+ +-------------------+-----------+
- | Counter | Value |
+ | Counter | Value |
- +-------------------+----------------+
+ +-------------------+-----------+
- | cluster_c_indexes | tbl1,tbl2,tbl3 |
+ | cluster_c_indexes | tbl1,tbl2 |
- +-------------------+----------------+
+ +-------------------+-----------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl3 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl3 ORDER BY id ASC;"; done
––– output –––
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'tbl3' in search request
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl3 on port 2306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ Data from c:tbl3 on port 3306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- Data from c:tbl3 on port 2306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 3306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO c:tbl1 VALUES (1, 'Updated feline runs', 42, 3.14, '{\"key\":\"updated\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: error at PostRollback, code 3 (transaction aborted, server can continue), seqno -1
+ 1
––– input –––
mysqldump -etc --column-statistics=0 --replace -u cluster -h0 -P1306 --skip-comments manticore c:tbl1 | mysql -h0 -P1306; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 10: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do mysql -h0 -P$port -e "SET GLOBAL cluster_user = 'new_username';"; done
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
––– input –––
for port in 1306 2306 3306; do timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW VARIABLES LIKE 'cluster_user';\" | grep -q '| cluster_user | new_username |'; do sleep 1; done" && echo "Port $port: cluster_user is new_username." || { echo "Port $port: cluster_user is not new_username."; exit 1; }; done
––– output –––
- Port 2306: cluster_user is new_username.
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Port 3306: cluster_user is new_username.
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ Port 2306: cluster_user is not new_username.
+ bash: line 87: exit: command not found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ Port 3306: cluster_user is not new_username.
+ bash: line 87: exit: command not found
––– input –––
mysql -h0 -P2306 -e "DELETE FROM c:tbl2 WHERE id = 2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P3306 -e "INSERT INTO c:tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'New plain entry', 50, 5.5, '{\"new\":\"entry\"}', (10,11,12), 'new_string', 0, '2025-03-02 10:00:00', (111222333444555666, 777888999000111222), (0.6, 0.7, 0.8, 0.9));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
mysqldump -etc --column-statistics=0 --replace --net-buffer-length=16M -u new_username -h0 -P2306 --skip-comments manticore c:tbl1 c:tbl2 c:tbl3 | mysql -h0 -P3306; echo $?
––– output –––
- -- Warning: version string returned by server is incorrect.
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:2306' (111) when trying to connect
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- Data from c:tbl2 on port 2306:
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl2 on port 2306:
- | id | f | a | b | j | m | s | e | d | v | fv |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl2 on port 3306:
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl3 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl3 ORDER BY id ASC;"; done
––– output –––
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'tbl3' in search request
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl3 on port 2306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ Data from c:tbl3 on port 3306:
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 2306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 3306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c DROP tbl1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- | cluster_c_indexes | tbl2,tbl3 |
+ | cluster_c_indexes | tbl1,tbl2 |
––– input –––
echo 'new, stop, words' > /tmp/new_stopwords.txt; echo $?
––– output –––
OK
––– input –––
echo 'dog => canine' > /tmp/new_exceptions.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER TABLE tbl1 stopwords='/tmp/new_stopwords.txt' exceptions='/tmp/new_exceptions.txt';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl1' is part of cluster c, ALTER is not supported for tables in cluster
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
- exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_1.txt
+ exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_0.txt
- stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_1.txt
+ stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_0.txt
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO tbl1 VALUES (1, 'Updated feline runs', 42, 3.14, '{\"key\":\"updated\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Trying to access array offset on null
+ 1
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl1' is already part of cluster 'c'
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE c:tbl1 SETTINGS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Variable_name: settings
- Value: engine = columnar
- exceptions = /var/log/manticore-2/tbl1/exceptions_chunk0_1.txt
- morphology = stem_en
- stopwords = /var/log/manticore-2/tbl1/stopwords_chunk0_1.txt
- rt_mem_limit = 268435456
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl1 WHERE MATCH('new runs');"; done
––– output –––
- +------+---------------------+----------------------------+
+ Data from c:tbl1 on port 2306:
- | id | f | highlight() |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------------+----------------------------+
+ Data from c:tbl1 on port 3306:
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------------+----------------------------+
- Data from c:tbl1 on port 2306:
- +------+---------------------+----------------------------+
- | id | f | highlight() |
- +------+---------------------+----------------------------+
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
- +------+---------------------+----------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+----------------------------+
- | id | f | highlight() |
- +------+---------------------+----------------------------+
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
- +------+---------------------+----------------------------+
––– input –––
mysql -h0 -P1306 -e "INSERT INTO c:tbl1 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'The dog barks', 10, 2.5, '{\"animal\":\"dog\"}', (4,5), 'bark', 1, '2025-01-01 10:00:00', (111222333444555, 666777888999000), (0.5, 0.6, 0.7, 0.8));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl1 WHERE MATCH('canine');"; done
––– output –––
- +------+---------------+----------------------+
+ Data from c:tbl1 on port 2306:
- | id | f | highlight() |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------+----------------------+
+ Data from c:tbl1 on port 3306:
- | 2 | The dog barks | The <b>dog</b> barks |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------+----------------------+
- Data from c:tbl1 on port 2306:
- +------+---------------+----------------------+
- | id | f | highlight() |
- +------+---------------+----------------------+
- | 2 | The dog barks | The <b>dog</b> barks |
- +------+---------------+----------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------+----------------------+
- | id | f | highlight() |
- +------+---------------+----------------------+
- | 2 | The dog barks | The <b>dog</b> barks |
- +------+---------------+----------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl1 on port 2306:
- Data from c:tbl1 on port 2306:
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl1 on port 3306:
- | id | f | a | b | j | m | s | e | d | v | fv |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c DROP tbl2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- +-------------------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | Counter | Value |
- +-------------------+-----------+
- | cluster_c_indexes | tbl3,tbl1 |
- +-------------------+-----------+
––– input –––
ls /usr/share/manticore/ru.pak
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER TABLE tbl2 morphology='lemmatize_ru';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Variable_name: settings
- Value: engine = rowwise
- morphology = lemmatize_ru
- wordforms = /var/log/manticore-2/tbl2/wordforms_chunk0_0.txt
- rt_mem_limit = 536870912
––– input –––
mysqldump -etc --column-statistics=0 --replace -u new_username -h0 -P2306 --skip-comments manticore tbl2 | mysql -P2306 -h0; echo $?
––– output –––
- -- Warning: version string returned by server is incorrect.
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:2306' (111) when trying to connect
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "INSERT INTO c:tbl2 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'Кот прыжки делает', 5, 1.1, '{\"движение\":\"прыжки\"}', (10,11), 'кот', 1, '2025-03-11 12:00:00', (111111111, 222222222), (0.9, 0.8, 0.7, 0.6));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl2 WHERE MATCH('прыжок');"; done
––– output –––
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- | id | f | highlight() |
+ | id | f | highlight() |
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
+ | 2 | Прыжок | <b>Прыжок</b> |
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- +------+----------------------------------+-----------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | highlight() |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
- +------+----------------------------------+-----------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
- | id | f | highlight() |
- +------+----------------------------------+-----------------------------------------+
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
- +------+----------------------------------+-----------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
+ | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
rm -f /tmp/stopwords.txt /tmp/exceptions.txt /tmp/wordforms.txt /var/lib/manticore/tbl3.conf dump.sql
––– output –––
OK |
clt❌ CLT tests in test/clt-tests/core/test-distributed-inserts-with-replication.rec––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE CLUSTER ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "JOIN CLUSTER ${CLUSTER_NAME} AT '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "SHOW STATUS LIKE 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for port in 1306 2306; do echo "Checking status for port $port:"; timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW STATUS LIKE 'cluster_replication_node_state'\G\" | grep -q 'Value: synced'; do sleep 1; done" && echo "Port $port: Node is synced." || echo "Port $port: Node is not synced (Value: closed or other)."; done
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE replication:test2 (id BIGINT, model TEXT, storage_capacity INTEGER, color STRING, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') SHARDS='3' RF='2';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Waiting timeout exceeded.
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_node_state'\G"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES FROM SYSTEM\G"
––– output –––
- *************************** 1. row ***************************
- Table: system.sharding_queue
- Type: rt
- *************************** 2. row ***************************
- Table: system.sharding_state
- Type: rt
- *************************** 3. row ***************************
- Table: system.sharding_table
- Type: rt
- *************************** 4. row ***************************
- Table: system.test2_s0
- Type: rt
- *************************** 5. row ***************************
- Table: system.test2_s1
- Type: rt
- *************************** 6. row ***************************
- Table: system.test2_s2
- Type: rt
––– input –––
mysql -P1306 -h0 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -P2306 -h0 -e "SHOW TABLES;"
––– output –––
- +-------+-------------+
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P1306 -h0 -e "DESCRIBE test2;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "iPhone 13 Pro", "storage_capacity": 256, "color": "silver", "release_year": 2021, "price": 1099.99, "discounted_price": 989.99, "sold": 1, "date_added": 1591362342000, "product_codes": [1,2,3], "values": [523456764345678976], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip"]}, "vector": [0.773448,0.312478,0.137971,0.459821]}}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"model": "Galaxy S21 Ultra", "storage_capacity": 128, "color": "black", "release_year": 2021, "price": 1199.99, "discounted_price": 1099.99, "sold": 1, "date_added": 1609459200000, "product_codes": [4,5,6], "values": [1234567890123456789], "additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100"]}, "vector": [0.5,0.4,0.3,0.2]}}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7,8,9], "values": [987654321987654321], "additional_info": {"features": ["Smooth display", "Google Tensor chip"]}, "vector": [0.8,0.6,0.4,0.2]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/replace -d '{"cluster": "replication", "table": "test2", "id": 1, "doc": {"model": "Updated Model", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1399.99, "discounted_price": 1299.99, "sold": false, "date_added": 1630454400000, "product_codes": [10,11,12], "values": [987654321987654321], "additional_info": {"features": ["New feature 1", "New feature 2"]}, "vector": [0.7,0.8,0.9,1.0]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/update -d '{"cluster": "replication", "table": "test2", "id": 2, "doc": {"price": 1099.99, "discounted_price": 999.99}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/delete -d '{"cluster": "replication", "table": "test2", "id": 3}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": 4, "doc": {"model": "Updated iPhone 14", "storage_capacity": 512, "color": "black", "release_year": 2022, "price": 1299.99, "discounted_price": 1199.99, "sold": 1, "date_added": 1661990400, "product_codes": [19,20,21], "values": [1234567890123456789],"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},"vector": [0.1,0.2,0.3,0.4]}}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
OK
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:1308/insert -d '{"cluster": "replication", "table": "test2", "id": '$((10 + $i))', "doc": {"model": "Device '$i'", "storage_capacity": 64, "color": "black", "release_year": 2023, "price": 499.99, "discounted_price": 449.99, "sold": 0, "date_added": 1672531200, "product_codes": [1,2,3], "values": [1234567890123456789], "additional_info": {"features": ["Feature 1","Feature 2"]}, "vector": [0.1,0.2,0.3,0.4]}}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
OK
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 ORDER BY id ASC;"
––– output –––
OK
––– input –––
sleep 2; mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20 ORDER BY id ASC;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM test2 WHERE id = 20;"
––– output –––
OK
––– input –––
rm -f bulk.json bulk_insert.json bulk_update.json bulk_delete.json bulk_operations.json; if [[ ! -f bulk.json && ! -f bulk_insert.json && ! -f bulk_update.json && ! -f bulk_delete.json && ! -f bulk_operations.json ]]; then echo "All temporary files deleted successfully."; else echo "Error: Some temporary files were not deleted."; fi
––– output –––
OK |
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Counter: cluster_test_indexes
- Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- Counter: cluster_test_indexes
- Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
- PID node3: %{NUMBER}
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
- Daemon on node3 killed with SIGILL!
+ kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
+ Process on node3 is completed!
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table tbl1: cluster 'test' is not ready, not primary state (joining)
+ 1
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Port 1306: Node synced
+ Timeout waiting for nodes to sync!
- Port 2306: Node synced
- Port 3306: Node synced
- *************************** 1. row ***************************
- Counter: cluster_test_status
- Value: primary
test/clt-tests/replication/test-replication.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
export CLUSTER_NAME=replication
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
for port in 1306 2306 3306; do timeout 30 mysql -h0 -P$port -e "SHOW STATUS LIKE 'cluster_replication_status'\G" > /tmp/status_$port.log && grep -q "Value: primary" /tmp/status_$port.log && echo "Port $port: Node synced"; done && cat /tmp/status_1306.log
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
OK
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: error at PostRollback, code 3 (transaction aborted, server can continue), seqno -1
+ 1
––– input –––
export INSTANCE=5
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:4306' (111)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: unknown table 'testrt' in delete request
+ 1
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
export INSTANCE=4
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt;
––– output –––
OK
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
- 0
+ 1,6d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'replication' is not ready, not primary state (synced)
+ 1
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- content: Updated Content
+ content: Latitude Precision Vostro
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- content: Updated Content
+ content: Latitude Precision Vostro
test/clt-tests/replication/test-replication-with-mysqldump.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log; exit 1; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=c
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo 'the, and, of' > /tmp/stopwords.txt
––– output –––
OK
––– input –––
echo 'cat => feline' > /tmp/exceptions.txt
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='columnar' morphology='stem_en' stopwords='/tmp/stopwords.txt' exceptions='/tmp/exceptions.txt' rt_mem_limit='256M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO tbl1 VALUES (1, 'The cat runs', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo '=> faster' > /tmp/wordforms.txt
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' morphology='stem_ru' wordforms='/tmp/wordforms.txt' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (1, 'Текст на русском', 84, 2.71, '{\"ключ\":\"значение\"}', (4,5,6), 'строка', 0, '2023-11-15 08:30:00', (987654321098765432, 123456789012345678), (0.4, 0.3, 0.2, 0.1));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (2, 'Прыжок', 19, 1.62, '{\"движение\":\"прыжок\",\"число\":3}', (7,8,9), 'пример', 1, '2024-06-10 15:45:00', (345678901234567890, 567890123456789012), (0.8, 0.7, 0.6, 0.5));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"
––– output –––
+ ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
––– input –––
mysql -h0 -P3306 -e "CREATE TABLE tbl3 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SHOW TABLE tbl3 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (1, 'Plain example', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'plain_string', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "ALTER CLUSTER c ADD tbl3;"; echo $?
––– output –––
- 0
+ ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- +-------------------+----------------+
+ +-------------------+-----------+
- | Counter | Value |
+ | Counter | Value |
- +-------------------+----------------+
+ +-------------------+-----------+
- | cluster_c_indexes | tbl1,tbl2,tbl3 |
+ | cluster_c_indexes | tbl1,tbl2 |
- +-------------------+----------------+
+ +-------------------+-----------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl3 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl3 ORDER BY id ASC;"; done
––– output –––
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'tbl3' in search request
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl3 on port 2306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ Data from c:tbl3 on port 3306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- Data from c:tbl3 on port 2306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 3306:
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO c:tbl1 VALUES (1, 'Updated feline runs', 42, 3.14, '{\"key\":\"updated\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: error at PostRollback, code 3 (transaction aborted, server can continue), seqno -1
+ 1
––– input –––
mysqldump -etc --column-statistics=0 --replace -u cluster -h0 -P1306 --skip-comments manticore c:tbl1 | mysql -h0 -P1306; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 10: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do mysql -h0 -P$port -e "SET GLOBAL cluster_user = 'new_username';"; done
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
––– input –––
for port in 1306 2306 3306; do timeout 10 bash -c "while ! mysql -h0 -P$port -e \"SHOW VARIABLES LIKE 'cluster_user';\" | grep -q '| cluster_user | new_username |'; do sleep 1; done" && echo "Port $port: cluster_user is new_username." || { echo "Port $port: cluster_user is not new_username."; exit 1; }; done
––– output –––
- Port 2306: cluster_user is new_username.
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Port 3306: cluster_user is new_username.
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ Port 2306: cluster_user is not new_username.
+ bash: line 87: exit: command not found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ Port 3306: cluster_user is not new_username.
+ bash: line 87: exit: command not found
––– input –––
mysql -h0 -P2306 -e "DELETE FROM c:tbl2 WHERE id = 2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P3306 -e "INSERT INTO c:tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'New plain entry', 50, 5.5, '{\"new\":\"entry\"}', (10,11,12), 'new_string', 0, '2025-03-02 10:00:00', (111222333444555666, 777888999000111222), (0.6, 0.7, 0.8, 0.9));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
mysqldump -etc --column-statistics=0 --replace --net-buffer-length=16M -u new_username -h0 -P2306 --skip-comments manticore c:tbl1 c:tbl2 c:tbl3 | mysql -h0 -P3306; echo $?
––– output –––
- -- Warning: version string returned by server is incorrect.
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:2306' (111) when trying to connect
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- Data from c:tbl2 on port 2306:
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl2 on port 2306:
- | id | f | a | b | j | m | s | e | d | v | fv |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl2 on port 3306:
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- +------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl3 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl3 ORDER BY id ASC;"; done
––– output –––
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'tbl3' in search request
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl3 on port 2306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ Data from c:tbl3 on port 3306:
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 2306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl3 on port 3306:
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Plain example | 42 | 3.140000 | {"key":"value"} | 1,2,3 | plain_string | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | New plain entry | 50 | 5.500000 | {"new":"entry"} | 10,11,12 | new_string | 0 | 0 | 111222333444555666,777888999000111222 | 0.600000,0.700000,0.800000,0.900000 |
- +------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c DROP tbl1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- | cluster_c_indexes | tbl2,tbl3 |
+ | cluster_c_indexes | tbl1,tbl2 |
––– input –––
echo 'new, stop, words' > /tmp/new_stopwords.txt; echo $?
––– output –––
OK
––– input –––
echo 'dog => canine' > /tmp/new_exceptions.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER TABLE tbl1 stopwords='/tmp/new_stopwords.txt' exceptions='/tmp/new_exceptions.txt';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl1' is part of cluster c, ALTER is not supported for tables in cluster
+ 1
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
- exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_1.txt
+ exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_0.txt
- stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_1.txt
+ stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_0.txt
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO tbl1 VALUES (1, 'Updated feline runs', 42, 3.14, '{\"key\":\"updated\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Trying to access array offset on null
+ 1
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 'tbl1' is already part of cluster 'c'
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE c:tbl1 SETTINGS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Variable_name: settings
- Value: engine = columnar
- exceptions = /var/log/manticore-2/tbl1/exceptions_chunk0_1.txt
- morphology = stem_en
- stopwords = /var/log/manticore-2/tbl1/stopwords_chunk0_1.txt
- rt_mem_limit = 268435456
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl1 WHERE MATCH('new runs');"; done
––– output –––
- +------+---------------------+----------------------------+
+ Data from c:tbl1 on port 2306:
- | id | f | highlight() |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------------+----------------------------+
+ Data from c:tbl1 on port 3306:
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------------+----------------------------+
- Data from c:tbl1 on port 2306:
- +------+---------------------+----------------------------+
- | id | f | highlight() |
- +------+---------------------+----------------------------+
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
- +------+---------------------+----------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+----------------------------+
- | id | f | highlight() |
- +------+---------------------+----------------------------+
- | 1 | Updated feline runs | Updated feline <b>runs</b> |
- +------+---------------------+----------------------------+
––– input –––
mysql -h0 -P1306 -e "INSERT INTO c:tbl1 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'The dog barks', 10, 2.5, '{\"animal\":\"dog\"}', (4,5), 'bark', 1, '2025-01-01 10:00:00', (111222333444555, 666777888999000), (0.5, 0.6, 0.7, 0.8));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: cluster 'c' is not ready, not primary state (synced)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl1 WHERE MATCH('canine');"; done
––– output –––
- +------+---------------+----------------------+
+ Data from c:tbl1 on port 2306:
- | id | f | highlight() |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------+----------------------+
+ Data from c:tbl1 on port 3306:
- | 2 | The dog barks | The <b>dog</b> barks |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------+----------------------+
- Data from c:tbl1 on port 2306:
- +------+---------------+----------------------+
- | id | f | highlight() |
- +------+---------------+----------------------+
- | 2 | The dog barks | The <b>dog</b> barks |
- +------+---------------+----------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------+----------------------+
- | id | f | highlight() |
- +------+---------------+----------------------+
- | 2 | The dog barks | The <b>dog</b> barks |
- +------+---------------+----------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl1 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl1 ORDER BY id ASC;"; done
––– output –––
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
+ | 1 | The cat runs | 42 | 3.140000 | {"key":"value"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
+ +------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl1 on port 2306:
- Data from c:tbl1 on port 2306:
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
+ Data from c:tbl1 on port 3306:
- | id | f | a | b | j | m | s | e | d | v | fv |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl1 on port 3306:
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Updated feline runs | 42 | 3.140000 | {"key":"updated"} | 1,2,3 | test | 1 | 0 | 123456789012345678,987654321098765432 | 0.100000,0.200000,0.300000,0.400000 |
- | 2 | The dog barks | 10 | 2.500000 | {"animal":"dog"} | 4,5 | bark | 1 | 0 | 111222333444555,666777888999000 | 0.500000,0.600000,0.700000,0.800000 |
- +------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c DROP tbl2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
- +-------------------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | Counter | Value |
- +-------------------+-----------+
- | cluster_c_indexes | tbl3,tbl1 |
- +-------------------+-----------+
––– input –––
ls /usr/share/manticore/ru.pak
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER TABLE tbl2 morphology='lemmatize_ru';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- Variable_name: settings
- Value: engine = rowwise
- morphology = lemmatize_ru
- wordforms = /var/log/manticore-2/tbl2/wordforms_chunk0_0.txt
- rt_mem_limit = 536870912
––– input –––
mysqldump -etc --column-statistics=0 --replace -u new_username -h0 -P2306 --skip-comments manticore tbl2 | mysql -P2306 -h0; echo $?
––– output –––
- -- Warning: version string returned by server is incorrect.
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:2306' (111) when trying to connect
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
mysql -h0 -P2306 -e "INSERT INTO c:tbl2 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (2, 'Кот прыжки делает', 5, 1.1, '{\"движение\":\"прыжки\"}', (10,11), 'кот', 1, '2025-03-11 12:00:00', (111111111, 222222222), (0.9, 0.8, 0.7, 0.6));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
+ 1
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT id, f, HIGHLIGHT() FROM c:tbl2 WHERE MATCH('прыжок');"; done
––– output –––
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- | id | f | highlight() |
+ | id | f | highlight() |
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
+ | 2 | Прыжок | <b>Прыжок</b> |
- +------+----------------------------------+-----------------------------------------+
+ +------+--------------+---------------------+
- +------+----------------------------------+-----------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | highlight() |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
- +------+----------------------------------+-----------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
- | id | f | highlight() |
- +------+----------------------------------+-----------------------------------------+
- | 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
- +------+----------------------------------+-----------------------------------------+
––– input –––
for port in 1306 2306 3306; do echo "Data from c:tbl2 on port $port:"; mysql -h0 -P$port -e "SELECT * FROM c:tbl2 ORDER BY id ASC;"; done
––– output –––
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
+ | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
+ | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
+ | 2 | Прыжок | 19 | 1.620000 | {"движение":"прыжок","число":3} | 7,8,9 | пример | 1 | 0 | 345678901234567890,567890123456789012 | 0.800000,0.700000,0.600000,0.500000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ +------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:2306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:3306' (111)
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- Data from c:tbl2 on port 3306:
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
- | 1 | Текст на русском | 84 | 2.710000 | {"ключ":"значение"} | 4,5,6 | строка | 0 | 0 | 123456789012345678,987654321098765432 | 0.400000,0.300000,0.200000,0.100000 |
- | 2 | Кот прыжки делает | 5 | 1.100000 | {"движение":"прыжки"} | 10,11 | кот | 1 | 0 | 111111111,222222222 | 0.900000,0.800000,0.700000,0.600000 |
- +------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
––– input –––
rm -f /tmp/stopwords.txt /tmp/exceptions.txt /tmp/wordforms.txt /var/lib/manticore/tbl3.conf dump.sql
––– output –––
OK |
…d to data_dir path
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- Value: primary
+ Value: primary
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 89: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 105: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 123: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
|
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- Value: primary
+ Value: primary
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 105: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 123: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
|
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- Value: primary
+ Value: primary
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 105: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
- No SST on manticore-1
+ SST detected on manticore-1!
- No SST on manticore-2
+ bash: line 123: exit: command not found
- No SST on manticore-3
+ No SST on manticore-2
+ No SST on manticore-3
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
|
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- Value: primary
+ Value: primary
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
|
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- Value: primary
+ Value: primary
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
- Value: tbl1
+ Value: tbl1
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
- Value: primary
+ Value: primary
|
clt❌ CLT tests in test/clt-tests/replication/test-ist-recovery-after-node-crash.rec––– input –––
apt-get update -y> /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y iproute2 procps > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/^searchd {/,/^}/ s/^\([[:space:]]*\)}$/\1watchdog = 0\n\1}/' test/clt-tests/base/searchd-with-flexible-ports.conf; echo $?
––– output –––
+ 0
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
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-${INSTANCE}/searchd.log;fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
export CLUSTER_NAME=test
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id, attr1 INT) min_infix_len = '3' min_prefix_len = '3';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER ${CLUSTER_NAME} ADD tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW CREATE TABLE tbl1;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (11, 100);"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SHOW STATUS LIKE 'cluster_test_indexes'\G"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "REPLACE INTO test:tbl1 (id, attr1) VALUES (12, 200);"
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 1306 | awk '{print $7}' | cut -d= -f2 | cut -d, -f1 | head -1) && echo "PID node1: ${pid:-NOT_FOUND}"
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node1 killed with SIGILL!"
––– output –––
OK
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
stdbuf -oL searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node1 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-1/searchd.log) && echo "Node1: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "UPDATE test:tbl1 SET attr1=1 WHERE id=11;"; echo $?
––– output –––
OK
––– input –––
pid=$(ss -tulnpH | grep -w 3306 | awk '{print $7}' | grep -oP '\d+(?=,|$)') && echo "PID node3: ${pid:-NOT_FOUND}" && [ -n "$pid" ]
––– output –––
OK
––– input –––
kill -s SIGILL $pid && echo "Daemon on node3 killed with SIGILL!"
––– output –––
OK
––– input –––
timeout 30 bash -c "while kill -0 $pid 2>/dev/null; do sleep 1; done" && echo "Process on node3 is completed!"
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
searchd --logreplication -c test/clt-tests/base/searchd-with-flexible-ports.conf >/dev/null 2>&1 & disown && echo "Daemon on node3 restarted!"
––– output –––
OK
––– input –––
timeout 30 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-3/searchd.log) && echo "Node3: Buddy restarted!"
––– output –––
OK
––– input –––
for i in 1 2 3; do if grep -q "falling back to SST" /var/log/manticore-$i/searchd.log; then echo "SST detected on manticore-$i!" && exit 1; else echo "No SST on manticore-$i"; fi; done
––– output –––
OK
––– input –––
bash -c 'end=$((SECONDS+180)); while [ $SECONDS -lt $end ]; do all_synced=true; for port in 1306 2306 3306; do mysql -h0 -P$port -e "SHOW STATUS LIKE '\''cluster_test_status'\''\G" > /tmp/status_$port.log 2>/dev/null && grep -q "Value: primary" /tmp/status_$port.log || { all_synced=false; break; }; done; if $all_synced; then for port in 1306 2306 3306; do echo "Port $port: Node synced"; done; cat /tmp/status_1306.log; exit 0; fi; sleep 1; done; echo "Timeout waiting for nodes to sync!"; exit 1'
––– output –––
OK |
clt❌ CLT tests in test/clt-tests/core/test-writing-binlog-during-parallel-queries.rec––– input –––
set -b +m; sed -i '/data_dir = \/var\/lib\/manticore/a\ binlog_common = 1\n' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
for i in {1..10}; do rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null; if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi; mysql -P9306 -h0 -e "drop table if exists t1"; mysql -P9306 -h0 -e "drop table if exists t2"; for n in 1 2; do mysql -P9306 -h0 -e "create table t${n}"; done; sleep 1; for n in 1 2; do mysql -P9306 -h0 -e "insert into t${n} values(0)" &>/dev/null; done; wait 5>/dev/null 2>&1; echo $?; mysql -P9306 -h0 -e "show tables; select * from t1; select * from t2;"; mysql -P9306 -h0 -e "flush logs"; done
––– output –––
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
- | id |
+ | id |
- +---------------------+
+ +------------------+
- +---------------------+
+ +------------------+
|
to test current CI and use the branch for CLT tests