-
-
Notifications
You must be signed in to change notification settings - Fork 607
SELECT does not wait for FREEZE + UPDATE #2805
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
Conversation
clt👎 CLT tests in test/clt-tests/core/test-freeze-unfreeze-update.rec––– input –––
echo -e "searchd {\n listen = 9315:mysql\n listen = 9316\n log = /tmp/searchd.log\n pid_file = /tmp/searchd.pid\n data_dir = /tmp/data\n watchdog = 0\n}" > /tmp/116.conf
––– output –––
––– input –––
mkdir -p /tmp/data; rm -f /tmp/searchd.log; searchd --stopwait > /dev/null; searchd -c /tmp/116.conf; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /tmp/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /tmp/searchd.log;fi
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
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)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/tmp/116.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=9315
listening on all interfaces for sphinx and http(s), port=9316
Buddy started!
––– input –––
mysql -P9315 -h0 -e "drop table if exists t; create table t(s string); insert into t values(1, 'a'); flush ramchunk t"; echo $?
––– output –––
0
––– input –––
mysql -P9315 -h0 -e "select * from t;"
––– output –––
+------+------+
| id | s |
+------+------+
| 1 | a |
+------+------+
––– input –––
rm -f /tmp/update.sql; for n in `seq 1 10000`; do echo "update t set s='b' where id=1;" >> /tmp/update.sql; done; while true; do mysql -P9315 -h0 < /tmp/update.sql | break; done &
––– output –––
[#!/[0-9]{1}/!#] %{NUMBER}
––– input –––
sleep 30; mysql -P9315 -h0 -e "select * from t;"
––– output –––
+------+------+
| id | s |
+------+------+
| 1 | b |
+------+------+
––– input –––
stdbuf -oL mysql -P9315 -h0 -e "freeze t"
––– output –––
+------------------------+------------------------+
| file | normalized |
+------------------------+------------------------+
| /tmp/data/t/t.0.spa | /tmp/data/t/t.0.spa |
| /tmp/data/t/t.0.spb | /tmp/data/t/t.0.spb |
| /tmp/data/t/t.0.spd | /tmp/data/t/t.0.spd |
| /tmp/data/t/t.0.spe | /tmp/data/t/t.0.spe |
| /tmp/data/t/t.0.sph | /tmp/data/t/t.0.sph |
| /tmp/data/t/t.0.sphi | /tmp/data/t/t.0.sphi |
| /tmp/data/t/t.0.spi | /tmp/data/t/t.0.spi |
| /tmp/data/t/t.0.spidx | /tmp/data/t/t.0.spidx |
| /tmp/data/t/t.0.spm | /tmp/data/t/t.0.spm |
| /tmp/data/t/t.0.spp | /tmp/data/t/t.0.spp |
| /tmp/data/t/t.0.spt | /tmp/data/t/t.0.spt |
| /tmp/data/t/t.meta | /tmp/data/t/t.meta |
| /tmp/data/t/t.ram | /tmp/data/t/t.ram |
| /tmp/data/t/t.settings | /tmp/data/t/t.settings |
+------------------------+------------------------+
––– input –––
mysql -P9315 -h0 -e "unfreeze t"; echo $?
––– output –––
0
––– input –––
mysql -P9315 -h0 -e "DESCRIBE t"
––– output –––
+-------+--------+------------+
| Field | Type | Properties |
+-------+--------+------------+
| id | bigint | |
| s | string | |
+-------+--------+------------+
––– input –––
mysql -P9315 -h0 -e "UPDATE t SET s='с' WHERE id=1; FLUSH RAMCHUNK t"; echo $?
––– output –––
0
––– input –––
mysql -P9315 -h0 -e "drop table if exists t; create table t(a string); insert into t values(1, 'a'); flush ramchunk t; freeze t; update t set a='b' where id = 1;" &
––– output –––
[%{NUMBER}] %{NUMBER}
––– input –––
mysql -P9315 -h0 -e "select * from t"
––– output –––
-
+ ERROR 1064 (42000) at line 1: error adding table 't': directory is not empty: /tmp/data/t
+ ERROR 1064 (42000) at line 1: unknown local table(s) 't' in search request
+ [2]+ Exit 1 mysql -P9315 -h0 -e "drop table if exists t; create table t(a string); insert into t values(1, 'a'); flush ramchunk t; freeze t; update t set a='b' where id = 1;"
+
|
Windows test results 3 files 3 suites 19m 27s ⏱️ Results for commit b891398. ♻️ This comment has been updated with latest results. |
Updated sleep
clt❌ CLT tests in test/clt-tests/optimisation-and-update/test-optimisation-and-update.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
––– input –––
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
––– output –––
Accepting connections!
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
0
––– input –––
apt-get install -y bc > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
chmod +x ./test/clt-tests/scripts/load_names_attr.php > /dev/null; echo $?
––– output –––
0
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=100000 --concurrency=4 --docs=2000000 --start-id=1 --drop-table > /dev/null; echo $?
––– output –––
- 0
+ 255
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK name;"
––– output –––
+ ERROR 1064 (42000) at line 1: FLUSH RAMCHUNK requires an existing RT table
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 1064 (42000) at line 1: OPTIMIZE TABLE requires an existing RT table
––– input –––
sleep 1 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1064 (42000) at line 1: SHOW TABLE STATUS requires an existing table
- | Variable_name | Value |
- +--------------------------+-------+
- | ram_chunk | 0 |
- | ram_chunk_segments_count | 0 |
- | disk_chunks | 2 |
- +--------------------------+-------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | count(*) |
- +----------+
- | 2000000 |
- +----------+
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=100000 --concurrency=4 --docs=2000000 --start-id=2000001 --no-drop-table > /dev/null; echo $?
––– output –––
- 0
+ 255
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK name;"
––– output –––
+ ERROR 1064 (42000) at line 1: FLUSH RAMCHUNK requires an existing RT table
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 1064 (42000) at line 1: OPTIMIZE TABLE requires an existing RT table
––– input –––
sleep 5 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1064 (42000) at line 1: SHOW TABLE STATUS requires an existing table
- | Variable_name | Value |
- +--------------------------+-------+
- | ram_chunk | 0 |
- | ram_chunk_segments_count | 0 |
- | disk_chunks | 2 |
- +--------------------------+-------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | count(*) |
- +----------+
- | 4000000 |
- +----------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; (stdbuf -oL searchd 2>&1 | tee /var/log/manticore/searchd.log | grep -i precach & disown); sleep 0.5; 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 –––
- precaching table 'name'
+ Buddy started!
- precached 1 tables in #!/[0-9]{1}.[0-9]{3}/!# sec
- Buddy started!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
- | Table | Type |
- +-------+------+
- | name | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1064 (42000) at line 1: SHOW TABLE STATUS requires an existing table
- | Variable_name | Value |
- +--------------------------+-------+
- | ram_chunk | 0 |
- | ram_chunk_segments_count | 0 |
- | disk_chunks | 2 |
- +--------------------------+-------+
––– input –––
mysql -h0 -P9306 -e "select * from name ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+------------------+------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | id | username | s |
- +------+------------------+------+
- | 1 | CIRA HINOJOSA | a |
- | 2 | DENICE HATTON | a |
- | 3 | JOAQUIN FOLEY | a |
- | 4 | REBEKAH CARLISLE | a |
- | 5 | EVE GUAJARDO | a |
- +------+------------------+------+
––– input –––
start_optimize=$(date +%s); time mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=1;" &
––– output –––
––– input –––
sleep 2 && start_update=$(date +%s); time_taken_update=$( { time mysql -h0 -P9306 -e "UPDATE name SET s='b' WHERE id=1;" > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'); update_duration=$(echo "$time_taken_update" | awk -F'm' '{print ($1 * 60) + $2}'); if (( $(echo "$update_duration > 1" | bc -l) )); then echo "FAIL: Update took longer than 1 second!"; exit 1; else echo "Update completed within acceptable time."; fi
––– output –––
- Update completed within acceptable time.
+ ERROR 1064 (42000) at line 1: OPTIMIZE TABLE requires an existing RT table
+ real 0m0.006s
+ user 0m0.001s
+ sys 0m0.004s
+ Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | id | username | s |
- +------+---------------+------+
- | 1 | CIRA HINOJOSA | b |
- +------+---------------+------+
––– input –––
start_update=$(date +%s); time_taken_update=$( { time mysql -h0 -P9306 -e "UPDATE name SET s=123 WHERE id=1;" > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'); update_duration=$(echo "$time_taken_update" | awk -F'm' '{print ($1 * 60) + $2}'); if (( $(echo "$update_duration > 1" | bc -l) )); then echo "FAIL: Update took longer than 1 second!"; exit 1; else echo "Update completed within acceptable time."; fi
––– output –––
Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | id | username | s |
- +------+---------------+------+
- | 1 | CIRA HINOJOSA | b |
- +------+---------------+------+
––– input –––
start_update=$(date +%s); time_taken_update=$( { time mysql -h0 -P9306 -e "UPDATE name SET s='b' WHERE id > 0;" > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'); update_duration=$(echo "$time_taken_update" | awk -F'm' '{print ($1 * 60) + $2}'); if (( $(echo "$update_duration > 3" | bc -l) )); then echo "FAIL: Update took longer than 3 seconds!"; false; else echo "Update completed within acceptable time."; fi
––– output –––
Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+------------------+------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | id | username | s |
- +------+------------------+------+
- | 1 | CIRA HINOJOSA | b |
- | 2 | DENICE HATTON | b |
- | 3 | JOAQUIN FOLEY | b |
- | 4 | REBEKAH CARLISLE | b |
- | 5 | EVE GUAJARDO | b |
- +------+------------------+------+
––– input –––
start_update=$(date +%s); time_taken_update=$(mysql -h0 -P9306 -e "UPDATE name SET unknown='b' WHERE id=1;" 2>&1); update_duration=$(( $(date +%s) - start_update )); [[ "$time_taken_update" == *"ERROR"* ]] && echo "$time_taken_update"; if (( update_duration <= 1 )); then echo "The command is completed within a reasonable time frame."; else echo "FAIL: Update took longer than 1 second!"; false; fi
––– output –––
~ ERROR 1064 (42000) at line 1: table name: attribute 'unknown' not foundunknown table 'name' in update request
The command is completed within a reasonable time frame.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+------------------+------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | id | username | s |
- +------+------------------+------+
- | 1 | CIRA HINOJOSA | b |
- | 2 | DENICE HATTON | b |
- | 3 | JOAQUIN FOLEY | b |
- | 4 | REBEKAH CARLISLE | b |
- | 5 | EVE GUAJARDO | b |
- +------+------------------+------+
––– input –––
{ command time wait > /dev/null 2>&1; } 2>&1 | grep -v "real" | grep -v "user" | grep -v "sys"; end_optimize=$(date +%s); optimize_duration=$((end_optimize - start_optimize)); echo "OPTIMIZE duration: $optimize_duration seconds"
––– output –––
OPTIMIZE duration: %{NUMBER} seconds |
clt❌ CLT tests in test/clt-tests/replication/test-replication.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=3
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-3/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=4
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-4/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=5
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-5/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:4312), error: 127.0.0.1:4312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:5312), error: 127.0.0.1:5312 invalid node
––– 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 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 –––
+-----------------------------+--------+
| Counter | Value |
+-----------------------------+--------+
| cluster_replication_indexes | testrt |
+-----------------------------+--------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
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
––– input –––
export INSTANCE=5
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
0
––– input –––
export INSTANCE=5
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-5/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
sleep 5; mysql -h0 -P5306 -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
––– input –––
export INSTANCE=2
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Cannot create table with column names missing
+ 1
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 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 -P4306 -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 -P5306 -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 –––
export INSTANCE=4
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– 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 –––
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-4/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– 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 –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– 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
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Updated Content
gid: 2
––– 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 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 -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 –––
- *************************** 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
test/clt-tests/replication/test-replication-with-mysqldump.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=3
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-3/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 –––
echo 'the, and, of' > /tmp/stopwords.txt
––– output –––
––– input –––
echo 'cat => feline' > /tmp/exceptions.txt
––– output –––
––– 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 –––
0
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = columnar
exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_0.txt
morphology = stem_en
stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_0.txt
rt_mem_limit = 268435456
––– 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 –––
0
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"
––– output –––
––– 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 –––
echo '=> faster' > /tmp/wordforms.txt
––– output –––
––– 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 –––
0
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = rowwise
morphology = stem_ru
wordforms = /var/log/manticore-2/tbl2/wordforms_chunk0_0.txt
rt_mem_limit = 536870912
––– 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 –––
0
––– 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 –––
0
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"
––– output –––
––– 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 –––
0
––– input –––
mysql -h0 -P3306 -e "SHOW TABLE tbl3 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = rowwise
rt_mem_limit = 536870912
––– 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 –––
0
––– input –––
mysql -h0 -P3306 -e "ALTER CLUSTER c ADD tbl3;"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
+-------------------+----------------+
| Counter | Value |
+-------------------+----------------+
| cluster_c_indexes | tbl1,tbl2,tbl3 |
+-------------------+----------------+
––– 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 –––
Data from c:tbl1 on port 1306:
+------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl1 on port 2306:
+------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------+------+----------+-----------------+-------+------+------+------+---------------------------------------+-------------------------------------+
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 –––
Data from c:tbl2 on port 1306:
+------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl2 on port 2306:
+------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------------------------+------+----------+----------------------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
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 –––
Data from c:tbl3 on port 1306:
+------+---------------+------+----------+-----------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 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
––– input –––
mysqldump -etc --replace -u cluster -h0 -P1306 --skip-comments manticore c:tbl1 | mysql -h0 -P1306; echo $?
––– output –––
-- Warning: version string returned by server is incorrect.
-- Warning: column statistics not supported by the server.
0
––– 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 –––
Data from c:tbl1 on port 1306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl1 on port 2306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
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 –––
––– 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 1306: cluster_user is new_username.
Port 2306: cluster_user is new_username.
Port 3306: cluster_user is new_username.
––– input –––
mysql -h0 -P2306 -e "DELETE FROM c:tbl2 WHERE id = 2;"; echo $?
––– output –––
0
––– 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
––– input –––
mysqldump -etc --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.
-- Warning: column statistics not supported by the server.
0
––– 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 –––
Data from c:tbl1 on port 1306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl1 on port 2306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
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 –––
Data from c:tbl2 on port 1306:
+------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl2 on port 2306:
+------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+--------------------------------+------+----------+---------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
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 –––
Data from c:tbl3 on port 1306:
+------+-----------------+------+----------+-----------------+----------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 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
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
+-------------------+-----------+
| Counter | Value |
+-------------------+-----------+
| cluster_c_indexes | tbl2,tbl3 |
+-------------------+-----------+
––– input –––
echo 'new, stop, words' > /tmp/new_stopwords.txt; echo $?
––– output –––
0
––– input –––
echo 'dog => canine' > /tmp/new_exceptions.txt; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "ALTER TABLE tbl1 stopwords='/tmp/new_stopwords.txt' exceptions='/tmp/new_exceptions.txt';"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = columnar
exceptions = /var/log/manticore-1/tbl1/exceptions_chunk0_1.txt
morphology = stem_en
stopwords = /var/log/manticore-1/tbl1/stopwords_chunk0_1.txt
rt_mem_limit = 268435456
––– 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
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"; echo $?
––– output –––
0
––– 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 –––
Data from c:tbl1 on port 1306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl1 on port 2306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
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 ***************************
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 1306:
+------+---------------------+----------------------------+
| id | f | highlight() |
+------+---------------------+----------------------------+
| 1 | Updated feline runs | Updated feline <b>runs</b> |
+------+---------------------+----------------------------+
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
––– 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 1306:
+------+---------------+----------------------+
| id | f | highlight() |
+------+---------------+----------------------+
| 2 | The dog barks | The <b>dog</b> barks |
+------+---------------+----------------------+
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 –––
Data from c:tbl1 on port 1306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl1 on port 2306:
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+---------------------+------+----------+-------------------+-------+------+------+------+---------------------------------------+-------------------------------------+
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
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
+-------------------+-----------+
| Counter | Value |
+-------------------+-----------+
| cluster_c_indexes | tbl3,tbl1 |
+-------------------+-----------+
––– input –––
ls /usr/share/manticore/ru.pak
––– output –––
/usr/share/manticore/ru.pak
––– input –––
mysql -h0 -P2306 -e "ALTER TABLE tbl2 morphology='lemmatize_ru';"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
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 --replace -u new_username -h0 -P2306 --skip-comments manticore tbl2 | mysql -P2306 -h0; echo $?
––– output –––
-- Warning: version string returned by server is incorrect.
-- Warning: column statistics not supported by the server.
0
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"; echo $?
––– output –––
0
––– 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
––– 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 –––
Data from c:tbl2 on port 1306:
+------+----------------------------------+-----------------------------------------+
| id | f | highlight() |
+------+----------------------------------+-----------------------------------------+
| 2 | Кот прыжки делает | Кот <b>прыжки</b> делает |
+------+----------------------------------+-----------------------------------------+
Data from c:tbl2 on port 2306:
+------+----------------------------------+-----------------------------------------+
| id | f | highlight() |
+------+----------------------------------+-----------------------------------------+
| 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 –––
Data from c:tbl2 on port 1306:
+------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
Data from c:tbl2 on port 2306:
+------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
| 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 |
+------+----------------------------------+------+----------+-------------------------------------+-------+--------------+------+------+---------------------------------------+-------------------------------------+
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 ––– |
clt❌ CLT tests in test/clt-tests/sharding/test-negative-param-validation.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=3
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-3/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n`
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 shards=5 rf12;"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n` 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 1
test/clt-tests/sharding/test-negative-sharding-functionality.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
export INSTANCE=3
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-3/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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_#!/[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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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 c:tbl1 shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table c:tbl2(id bigint) shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl3(id bigint) shards=10 rf=10"
––– output –––
~ ERROR 1064 (42000) at line 1: The node count (3) is lower than replication factor (10)for cluster replication is too low: 1. You can create local sharded table.
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl4 shards=1000 rf=1000;"
––– output –––
ERROR 1064 (42000) at line 1: You cannot set rf greater than 1 when creating single node sharded table. 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-2/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: 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: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' 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}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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 test/clt-tests/sharding/test-timeout.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– 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 –––
mysql -h0 -P1306 -e "create table c:e(id bigint) shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: The node count for cluster c is too low: 1. You can create local sharded table. test/clt-tests/sharding/test-negative-query-syntax.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 /tmp/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
- Accepting connections!
+ tail: cannot open '/tmp/manticore-1/searchd.log' for reading: No such file or directory
+ tail: no files remaining
+ Timeout or failed!
––– input –––
mysql -h0 -P1306 -e "create table tbl1 random=5"
––– output –––
ERROR 1064 (42000) at line 1: P03: syntax error, unexpected integer, expecting string near '5'
––– input –––
mysql -h0 -P1306 -e "create table tbl2(id bigint) shards=a rf=b"
––– output –––
ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting string near 'a rf=b'
––– input –––
mysql -h0 -P1306 -e "create table tbl3(id bigint) shards=-10 rf=-1"
––– output –––
ERROR 1064 (42000) at line 1: P03: syntax error, unexpected $undefined, expecting string near '-10 rf=-1'
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl4 shards=abc rf=1;"
––– output –––
ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting string near 'abc rf=1' |
clt❌ CLT tests in test/clt-tests/buddy/test-fuzzy-search-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
––– input –––
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
––– output –––
Accepting connections!
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=1000 --concurrency=4 --docs=5000000 --start-id=1 > /dev/null; echo $?
––– output –––
0
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
+----------+
| count(*) |
+----------+
| 5000000 |
+----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') OPTION fuzzy=-1;"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '-' near '-1'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') OPTION fuzzy='0';"
––– output –––
ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') OPTION fuzzy='2';"
––– output –––
ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') OPTION fuzzy=a;"
––– output –––
ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') OPTION fuzzy=@;"
––– output –––
ERROR 1064 (42000) at line 1: Invalid value for option 'fuzzy'
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);"
––– output –––
ERROR 1064 (42000) at line 1: Failed to parse query
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);"
––– output –––
ERROR 1064 (42000) at line 1: no such table 'non_existing_table'
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ +--------+
+ | query |
+ +--------+
+ | jordan |
+ | joseph |
+ | jose |
+ | joe |
+ | john |
+ | joyce |
+ | jonas |
+ | joy |
+ | jon |
+ | major |
+ +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('hello') OPTION fuzzy=1 layouts='';"
––– output –––
ERROR 1064 (42000) at line 1: Invalid options in query string, make sure they are separated by commas test/clt-tests/buddy/test-fuzzy-search.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 –––
apt-get update -y > /dev/null; echo $?
––– output –––
0
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=100000 --concurrency=1 --docs=1000000 --start-id=1 --min-infix-len=2 > /dev/null; echo $?
––– output –––
- 0
+ 255
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name ORDER BY id ASC LIMIT 1000000 OPTION max_matches=1000000;" > /tmp/name_data.txt
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
––– input –––
md5sum /tmp/name_data.txt
––– output –––
~ 1995eec70e60c584bc35ff0688556b94d41d8cd98f00b204e9800998ecf8427e /tmp/name_data.txt
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE name;" | grep "min_infix_len='2'" | sed "s/.\(min_infix_len='2'\)./\1/"
––– output –––
- )min_infix_len='2'expand_keywords='1' |
+ ERROR 1064 (42000) at line 1: You have an error in your query. Please, double-check it.
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'name' in search request
- | count(*) |
- +----------+
- | 1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 1064 (42000) at line 1: OPTIMIZE TABLE requires an existing RT table
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+---------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +------+---------------------+------+
- | 43 | KOURTNEY RICHARDSON | a |
- | 125 | ELAINA RICHARDSON | a |
- | 226 | RICHARD ZAMARRIPA | a |
- | 363 | MAYRA RICO | a |
- | 840 | RICO MCFADDEN | a |
- | 855 | RICHARD ALDRIDGE | a |
- | 934 | VALERY RICH | a |
- | 948 | REGINE ALDRICH | a |
- | 1017 | HEE TRICE | a |
- | 1624 | OLEVIA RICHARDS | a |
- | 1816 | MAURICE BARCLAY | a |
- | 2228 | THERESIA RICHARDS | a |
- | 2670 | JULIANA GRICE | a |
- | 2918 | GRICELDA WHELAN | a |
- | 3012 | RICHARD MCCURDY | a |
- | 3147 | MERRILEE ALDRICH | a |
- | 3262 | FONDA RICHEY | a |
- | 3431 | MELANY RICHARD | a |
- | 3438 | JOVAN ALDRICH | a |
- | 3517 | BRICE LONGORIA | a |
- +------+---------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+----------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +------+----------------------+------+
- | 20 | BERNARDO DUGGAN | a |
- | 27 | BERNARDINE BREWER | a |
- | 209 | KATLYN SERNA | a |
- | 1292 | LAVERNA CLARK | a |
- | 1414 | BENNY FERNANDEZ | a |
- | 1638 | JULENE BERNAL | a |
- | 2021 | LAVERNA JEFFERSON | a |
- | 2169 | MERNA ORNELAS | a |
- | 2471 | BERNADINE SCANLON | a |
- | 2843 | BERNADINE NAPOLITANO | a |
- | 3177 | FERNANDA FRYER | a |
- | 3199 | FERNANDO FRANCISCO | a |
- | 3455 | FERNANDE MERRITT | a |
- | 3539 | BERNADINE HILLER | a |
- | 3862 | FERNANDO MACDONALD | a |
- | 4022 | JOHNSON HERNANDES | a |
- | 4484 | SYBIL HERNANDES | a |
- | 5159 | MARTINA BERNARD | a |
- | 5793 | BERNA TALBOTT | a |
- | 6506 | FERNANDO FREELAND | a |
- +------+----------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+--------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +------+--------------------+------+
- | 6 | KESHIA RANDAZZO | a |
- | 12 | TRESA ESCALANTE | a |
- | 20 | BERNARDO DUGGAN | a |
- | 31 | DEMETRIA IBANEZ | a |
- | 32 | PAMELIA SANDLIN | a |
- | 34 | ANJANETTE MINTON | a |
- | 40 | ANTONIO RIOS | a |
- | 62 | ANDRES NATION | a |
- | 64 | MERI MEDRANO | a |
- | 65 | JANINA FLANIGAN | a |
- | 72 | TALISHA SWAN | a |
- | 75 | JANAY BONNER | a |
- | 80 | DEMETRIA STANFIELD | a |
- | 81 | RALEIGH SANDBERG | a |
- | 82 | KRISTIAN MEYER | a |
- | 83 | JANN HEATH | a |
- | 87 | RANDEE QUINTERO | a |
- | 99 | DEAN GUO | a |
- | 103 | DEAN DEAL | a |
- | 110 | CONSTANCE REES | a |
- +------+--------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +-------+------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +-------+------------------+------+
- | 688 | SHERIE STORY | a |
- | 1422 | TOBY CARO | a |
- | 1627 | RUPERT STORY | a |
- | 1721 | JOE TONG | a |
- | 2154 | TONY GREY | a |
- | 3759 | TOBY GILCHRIST | a |
- | 5292 | TONA VALENTIN | a |
- | 5687 | TONY EASTERLING | a |
- | 5835 | TOBY ROBERSON | a |
- | 6281 | TOBY ARAIZA | a |
- | 6962 | TONA DAVIDSON | a |
- | 7311 | ANTONY STOVALL | a |
- | 7475 | TOBY REINHART | a |
- | 8174 | TONA CARRILLO | a |
- | 8700 | TONA FLETCHER | a |
- | 8828 | TONYA CALLAHAN | a |
- | 9251 | TOBY LANGFORD | a |
- | 9293 | ZENA STORY | a |
- | 9619 | TONY WHITTINGTON | a |
- | 10167 | LANA STORY | a |
- +-------+------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-----------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +--------+-----------------+------+
- | 999737 | KEITH STUMP | a |
- | 999039 | KEITH JAMIESON | a |
- | 996439 | KEITHA CARBAJAL | a |
- | 995770 | KEITH GONZALES | a |
- | 990882 | MINH SANTANA | a |
- | 990643 | KEITH MENDES | a |
- | 989972 | KEITHA WALTERS | a |
- | 989954 | GWENN SMYTH | a |
- | 989444 | KEITH KEATON | a |
- | 988755 | SHERRON SMYTH | a |
- | 988366 | LAVONIA SMYTH | a |
- | 988254 | MAYOLA KEITH | a |
- | 987106 | KEITH FAULK | a |
- | 986580 | DARNELL SMYTH | a |
- | 984012 | KEITH CORONEL | a |
- | 982759 | MORGAN KEITH | a |
- | 982421 | KEITH SHIFFLETT | a |
- | 982223 | TELMA KEITH | a |
- | 982056 | RENITA KEITH | a |
- | 981115 | KATIE SMYTH | a |
- +--------+-----------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+--------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +--------+--------------------+------+
- | 999921 | VICKI SOUTHARD | a |
- | 998829 | EDYTHE VACA | a |
- | 998500 | SETH PHUNG | a |
- | 996507 | SETH LYMAN | a |
- | 995690 | ROBERTO SOUTHARD | a |
- | 995663 | CHUNG SOUTH | a |
- | 995119 | EDYTHE JOHN | a |
- | 993455 | EDYTH ROSADO | a |
- | 993278 | LAKITA SOUTHARD | a |
- | 992097 | EDYTH RAGAN | a |
- | 989954 | GWENN SMYTH | a |
- | 988936 | LARISA SOUTHERLAND | a |
- | 988823 | SETH WHITTAKER | a |
- | 988759 | LIEN SOUTHARD | a |
- | 988755 | SHERRON SMYTH | a |
- | 988366 | LAVONIA SMYTH | a |
- | 987165 | TULA SOUTHARD | a |
- | 987136 | LUANN SOUTHARD | a |
- | 986847 | JORDAN SOUTHERN | a |
- | 986711 | MARLIN SOUTHERN | a |
- +--------+--------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=\"1\";"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected $undefined near '"1"'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+--------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +--------+--------------------+------+
- | 999971 | RONNA JOHNSON | a |
- | 999879 | CHARLEY STJOHN | a |
- | 999685 | JOAN KOESTER | a |
- | 999655 | JOHN WAINWRIGHT | a |
- | 999555 | JON MOSIER | a |
- | 999440 | JOHN LEONG | a |
- | 999170 | JONELLE HARDING | a |
- | 999075 | JOHNIE DURAN | a |
- | 999020 | JONAS HASAN | a |
- | 998802 | RENETTA LITTLEJOHN | a |
- | 998721 | REY JOHNSTON | a |
- | 998368 | JONIE MILTON | a |
- | 998367 | LEENA JOHNSTON | a |
- | 998128 | SHARILYN JOHNSTON | a |
- | 997788 | JOANNIE HENSON | a |
- | 997670 | DENNY JONES | a |
- | 997623 | JOHNETTA DELATORRE | a |
- | 997577 | JONA CORRAL | a |
- | 997563 | JONE FOLSOM | a |
- | 997512 | JOAN CALKINS | a |
- +--------+--------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('jane') AND id BETWEEN 10000 AND 20000 ORDER BY username ASC OPTION fuzzy=1;"
––– output –––
- +-------+----------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +-------+----------------------+------+
- | 10119 | JANIECE GIBSON | a |
- | 10159 | JANNA MIXON | a |
- | 10200 | ELANE LOPES | a |
- | 10205 | JANETTA ZHOU | a |
- | 10381 | EULALIA LANE | a |
- | 10465 | JANIE PAXTON | a |
- | 10492 | JANINA JOE | a |
- | 10507 | JANNA EDDY | a |
- | 10635 | JANESSA GOODIN | a |
- | 10637 | JACQUELYNN JANKOWSKI | a |
- | 10824 | ALEJANDRINA LAUGHLIN | a |
- | 10831 | CLYDE JANES | a |
- | 10926 | JANNET GOODEN | a |
- | 10978 | JANAE KELSO | a |
- | 11064 | JANETH BOWIE | a |
- | 11266 | MARIELLE ALEJANDRO | a |
- | 11342 | JANAE DELAGARZA | a |
- | 11875 | TYLER LUJAN | a |
- | 11925 | DINAH JANES | a |
- | 11997 | JANETH BROWNING | a |
- +-------+----------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') AND id BETWEEN 1000 AND 2000 ORDER BY username ASC OPTION fuzzy=1;"
––– output –––
- +------+-----------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +------+-----------------+------+
- | 1292 | LAVERNA CLARK | a |
- | 1414 | BENNY FERNANDEZ | a |
- | 1638 | JULENE BERNAL | a |
- +------+-----------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+----------------------+------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | id | username | s |
- +------+----------------------+------+
- | 73 | CLARA NGUYEN | a |
- | 1285 | CLARA CARTAGENA | a |
- | 1515 | KLARA ALARCON | a |
- | 1709 | FREDDA LARA | a |
- | 2217 | LORIANN DELROSARIO | a |
- | 2305 | SARA AVILA | a |
- | 2631 | ROSARIA DELONG | a |
- | 3245 | LARA MASTERSON | a |
- | 3267 | LARA MOREAU | a |
- | 3553 | SARAN CHANG | a |
- | 3880 | SARAN HOOK | a |
- | 3980 | GEORGETTA DELROSARIO | a |
- | 4517 | SARAI EASLEY | a |
- | 5708 | ASA ROSARIO | a |
- | 5731 | SARITA ANDERS | a |
- | 6100 | CHANTELL SARABIA | a |
- | 6165 | SARA HALLMAN | a |
- | 6480 | SARAH NEILL | a |
- | 6488 | SARAN PARTIN | a |
- | 6802 | KLARA ROLLER | a |
- +------+----------------------+------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | johnny |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness, '' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 2 AS fuzziness, 'us,ru' AS layouts, 1 AS append, 1 AS prepend, 2 AS expansion_len);" | tail -n +4 | sort
––– output –––
- +-------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jose |
- | joy |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | joe |
- | joey |
- | john |
- | jon |
- | jordan |
- | jose |
- | joseph |
- | joy |
- | joyce |
- | major |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +-----------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | albert |
- | alexander |
- | ali |
- | dale |
- | gale |
- | kendall |
- | marshall |
- | palma |
- | valentine |
- | walter |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +----------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | britni |
- | brittani |
- | cami |
- | choi |
- | darci |
- | jenni |
- | joi |
- | kaci |
- | kami |
- | kimi |
- | laci |
- | leilani |
- | luci |
- | mancini |
- | marci |
- | mi |
- | muoi |
- | nanci |
- | naomi |
- | neomi |
- | nohemi |
- | penni |
- | ricci |
- | roni |
- | shani |
- | staci |
- | stefani |
- | tami |
- | tammi |
- | tiffani |
- | toi |
- | tomi |
- | traci |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort
––– output –––
- +-------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | chang |
- | chong |
- | chung |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +----------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | page |
- | paige |
- | palma |
- | paris |
- | parker |
- | pat |
- | patricia |
- | patrick |
- | paul |
- | paz |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us' AS layouts);" | tail -n +4 | sort
––– output –––
+ ERROR 1064 (42000) at line 1: no such table 'name'
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('gr', 'name', 1 AS fuzziness, 'ru' AS layouts, 1 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1064 (42000) at line 1: no such table 'name'
- | grace |
- | gracia |
- | grady |
- | graham |
- | grant |
- | gregg |
- | gregory |
- | grey |
- | grogan |
- | grover |
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');"
––– output –––
+-----------+
| query |
+-----------+
| some |
| something |
+-----------+
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');"
––– output –––
+-----------+
| query |
+-----------+
| some |
| something |
+-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t option fuzzy=1;"
––– output –––
ERROR 1064 (42000) at line 1: The 'fuzzy' option requires a full-text query
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
+----------+
| query |
+----------+
| business |
+----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
+----------+
| query |
+----------+
| business |
+----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); select * from t where match('somethin') option fuzzy=0;"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');"
––– output –––
+-----------+
| query |
+-----------+
| some |
| something |
+-----------+
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text) min_infix_len='2'; insert into t values(1, 'something'), (2, 'some thing'); call autocomplete('some', 't');"
––– output –––
+-----------+
| query |
+-----------+
| some |
| something |
+-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t option fuzzy=1;"
––– output –––
ERROR 1064 (42000) at line 1: The 'fuzzy' option requires a full-text query
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
+------+
| id |
+------+
| 1 |
| 2 |
+------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
+----------+
| query |
+----------+
| business |
+----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
+----------+
| query |
+----------+
| business |
+----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS t; DEBUG SLEEP 2; CREATE TABLE t(f TEXT) min_infix_len='2';"
––– output –––
+---------+--------+
| command | result |
+---------+--------+
| sleep | #!/[0-9]{1}.[0-9]{3}/!# |
+---------+--------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t VALUES (1, 'abcdef'), (2, 'abcd efgh');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcdef'); SHOW META;"
––– output –––
+------+--------+
| id | f |
+------+--------+
| 1 | abcdef |
+------+--------+
+----------------+--------+
| Variable_name | Value |
+----------------+--------+
| total | 1 |
| total_found | 1 |
| total_relation | eq |
| time | #!/[0-9]{1}.[0-9]{3}/!# |
| keyword[0] | abcdef |
| docs[0] | 1 |
| hits[0] | 1 |
+----------------+--------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1; SHOW META;"
––– output –––
+------+-----------+
| id | f |
+------+-----------+
| 1 | abcdef |
| 2 | abcd efgh |
+------+-----------+
+----------------+-------+
| Variable_name | Value |
+----------------+-------+
| total | 2 |
| total_found | 2 |
| total_relation | eq |
| time | #!/[0-9]{1}.[0-9]{3}/!# |
+----------------+-------+
––– input –––
grep -A3 "SELECT \* FROM t WHERE MATCH('abcdef')" /var/log/manticore/query.log
––– output –––
/* #!/[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}/!# conn %{NUMBER} (127.0.0.1:%{NUMBER}) real #!/[0-9]{1}.[0-9]{3}/!# wall #!/[0-9]{1}.[0-9]{3}/!# found 1 */ SELECT * FROM t WHERE MATCH('abcdef');
/* #!/[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}/!# conn %{NUMBER} (127.0.0.1:%{NUMBER}) real #!/[0-9]{1}.[0-9]{3}/!# wall #!/[0-9]{1}.[0-9]{3}/!# found 2 */ SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1;
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('nonexistent'); SHOW META;"
––– output –––
+----------------+-------------+
| Variable_name | Value |
+----------------+-------------+
| total | 0 |
| total_found | 0 |
| total_relation | eq |
| time | #!/[0-9]{1}.[0-9]{3}/!# |
| keyword[0] | nonexistent |
| docs[0] | 0 |
| hits[0] | 0 |
+----------------+-------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcdef') OPTION fuzzy=1;"
––– output –––
+------+-----------+
| id | f |
+------+-----------+
| 1 | abcdef |
| 2 | abcd efgh |
+------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('\$#@\!') OPTION fuzzy=1;"
––– output –––
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS idx1; CREATE TABLE idx1(value TEXT) min_infix_len='2';"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P9306 -e "INSERT INTO idx1(value) VALUES ('340');"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1');"
––– output –––
+-------+
| query |
+-------+
| 340 |
+-------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('3', 'idx1');"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1', 1 AS fuzziness);"
––– output –––
+-------+
| query |
+-------+
| 340 |
+-------+
––– input –––
echo -e "searchd {\nlisten = 9306:mysql\nlisten = 9312\nlisten = 9308:http\nlog = /tmp/searchd.log\nquery_log = /tmp/query.log\npid_file = /tmp/searchd.pid\n}\n\nsource src_idx {\ntype = tsvpipe\ntsvpipe_command = cat /tmp/data.tsv\ntsvpipe_field_string = f\ntsvpipe_attr_bigint = id\n}\n\nindex idx_plain {\ntype = plain\nsource = src_idx\npath = /tmp/idx_plain\nmin_infix_len = 2\n}" > /tmp/manticore_idx.conf; echo $?
––– output –––
0
––– input –––
echo -e "1\tabcdef\n2\tabcd efgh\n3\trandom text" > /tmp/data.tsv; echo $?
––– output –––
0
––– input –––
mkdir -p /tmp/idx_plain && chmod 777 /tmp/idx_plain; echo $?
––– output –––
0
––– input –––
indexer --all --config /tmp/manticore_idx.conf > /dev/null 2>&1; echo $?
––– output –––
0
––– input –––
rm -f /tmp/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; (stdbuf -oL searchd -c /tmp/manticore_idx.conf 2>&1 | tee /tmp/searchd.log | grep -i precach & disown); sleep 0.5; if timeout 10 grep -qm1 '\[BUDDY\] started' /tmp/searchd.log; then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /tmp/searchd.log; fi
––– output –––
precaching table 'idx_plain'
precached 1 tables in #!/[0-9]{1,2}.[0-9]+/!# sec
Buddy started!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
+-----------+-------+
| Table | Type |
+-----------+-------+
| idx_plain | local |
+-----------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE idx_plain SETTINGS;"
––– output –––
+---------------+-------------------+
| Variable_name | Value |
+---------------+-------------------+
| settings | min_infix_len = 2 |
+---------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=1;"
––– output –––
+------+-----------+
| id | f |
+------+-----------+
| 1 | abcdef |
| 2 | abcd efgh |
+------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcef') OPTION fuzzy=1;"
––– output –––
+------+-----------+
| id | f |
+------+-----------+
| 1 | abcdef |
| 2 | abcd efgh |
+------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('nonexistent') OPTION fuzzy=1;"
––– output –––
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('abc', 'idx_plain');"
––– output –––
+--------+
| query |
+--------+
| abcd |
| abcdef |
+--------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ran', 'idx_plain');"
––– output –––
+--------+
| query |
+--------+
| random |
+--------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('zzz', 'idx_plain');"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=0;"
––– output –––
+------+--------+
| id | f |
+------+--------+
| 1 | abcdef |
+------+--------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcd efgh') OPTION fuzzy=0;"
––– output –––
+------+-----------+
| id | f |
+------+-----------+
| 2 | abcd efgh |
+------+-----------+ |
…ad_names_attr.php, added extended data generation
clt❌ CLT tests in test/clt-tests/replication/test-replication.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 INSTANCE=3
––– 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=4
––– 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=5
––– 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=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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:4312), error: 127.0.0.1:4312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:5312), error: 127.0.0.1:5312 invalid node
––– 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 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 –––
+-----------------------------+--------+
| Counter | Value |
+-----------------------------+--------+
| cluster_replication_indexes | testrt |
+-----------------------------+--------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
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
––– input –––
export INSTANCE=5
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
0
––– input –––
export INSTANCE=5
––– 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 –––
sleep 5; mysql -h0 -P5306 -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
––– input –––
export INSTANCE=2
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Cannot create table with column names missing
+ 1
––– 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 –––
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 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 -P4306 -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 -P5306 -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 –––
export INSTANCE=4
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– 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 –––
––– 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 –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– 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 –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– 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
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Updated Content
gid: 2
––– 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 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 -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 –––
- *************************** 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
|
clt❌ CLT tests in test/clt-tests/sharding/test-negative-param-validation.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 INSTANCE=3
––– 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=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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n`
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 shards=5 rf12;"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n` 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 1
test/clt-tests/sharding/test-negative-sharding-functionality.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 INSTANCE=3
––– 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=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_#!/[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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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 c:tbl1 shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table c:tbl2(id bigint) shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl3(id bigint) shards=10 rf=10"
––– output –––
~ ERROR 1064 (42000) at line 1: The node count (3) is lower than replication factor (10)for cluster replication is too low: 1. You can create local sharded table.
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl4 shards=1000 rf=1000;"
––– output –––
ERROR 1064 (42000) at line 1: You cannot set rf greater than 1 when creating single node sharded table. 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: 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: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' 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}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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 |
…nges in load_names_attr.php
clt❌ CLT tests in test/clt-tests/replication/test-replication.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 INSTANCE=3
––– 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=4
––– 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=5
––– 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=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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:4312), error: 127.0.0.1:4312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:5312), error: 127.0.0.1:5312 invalid node
––– 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 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 –––
+-----------------------------+--------+
| Counter | Value |
+-----------------------------+--------+
| cluster_replication_indexes | testrt |
+-----------------------------+--------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
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
––– input –––
export INSTANCE=5
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
0
––– input –––
export INSTANCE=5
––– 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 –––
sleep 5; mysql -h0 -P5306 -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
––– input –––
export INSTANCE=2
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: Cannot create table with column names missing
+ 1
––– 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 –––
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 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 -P4306 -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 -P5306 -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 –––
export INSTANCE=4
––– output –––
––– input –––
stdbuf -oL searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
––– 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 –––
––– 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 –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– 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 –––
+ ERROR 1064 (42000) at line 1: unknown local table(s) 'testrt' in search request
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
~ 1,7d0
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | id | title | content | gid |
+ < +---------------------+-------------------------------+---------------------------+------+
+ < | 6775836565403860993 | List of HP business laptops | Elitebook Probook | 1 |
+ < | 6775836565403860994 | List of Dell business laptops | Latitude Precision Vostro | 2 |
+ < | 6775836565403860995 | List of HP business laptops | Macbook | 3 |
+ < +---------------------+-------------------------------+---------------------------+------+
+ 1
––– 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
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Updated Content
gid: 2
––– 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 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 -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 –––
- *************************** 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
|
clt❌ CLT tests in test/clt-tests/sharding/test-negative-param-validation.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 INSTANCE=3
––– 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=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_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n`
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 shards=5 rf12;"
––– output –––
ERROR 1064 (42000) at line 1: Sharded table requires `rf=n` 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 1
test/clt-tests/sharding/test-negative-sharding-functionality.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 INSTANCE=3
––– 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=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_#!/[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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
+ ERROR 1064 (42000) at line 1: cluster 'replication', no nodes available(127.0.0.1:3312), error: 127.0.0.1:3312 invalid node
––– 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 c:tbl1 shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table c:tbl2(id bigint) shards=10 rf=2"
––– output –––
ERROR 1064 (42000) at line 1: Cluster 'c' does not exist
––– input –––
mysql -h0 -P1306 -e "create table ${CLUSTER_NAME}:tbl3(id bigint) shards=10 rf=10"
––– output –––
~ ERROR 1064 (42000) at line 1: The node count (3) is lower than replication factor (10)for cluster replication is too low: 1. You can create local sharded table.
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl4 shards=1000 rf=1000;"
––– output –––
ERROR 1064 (42000) at line 1: You cannot set rf greater than 1 when creating single node sharded table. 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:$((n*1000+312))'"; done
––– output –––
+ ERROR 1064 (42000) at line 1: cluster 'c', no nodes available(127.0.0.1:2312), error: 127.0.0.1:2312 invalid node
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: 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: table 'tbl1' is missing: DROP TABLE failed: table 'tbl1' 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}:Tbl2(id bigint) shards=3 rf=1;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: The node count for cluster c is too low: 1. You can create local sharded table.
+ 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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: The node count for cluster c is too low: 1. You can create local sharded table.
––– 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 --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 ; Batch ; Time ; Total Docs ; Docs/Sec ; Avg QPS ; p99 QPS ; p95 QPS ; p5 QPS ; p1 QPS ; Lat Avg ; Lat p50 ; Lat p95 ; Lat p99 ;
~ 4 ; 10000 ; %{NUMBER}:%{NUMBER} ; 1000000 ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER}00:11 ; 1000000 ; 89079 ; 9 ; 14 ; 14 ; 6 ; 6 ; 445.2 ; 415.0 ; 685.0 ; 845.0 ;
––– 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/show-settings.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 –––
mysql -h0 -P1306 -e "SHOW SETTINGS;"
––– output –––
+----------------------------+------------------------------------------------------------+
| Setting_name | Value |
+----------------------------+------------------------------------------------------------+
| configuration_file | /.clt/test/clt-tests/base/searchd-with-flexible-ports.conf |
| worker_pid | %{NUMBER} |
| searchd.listen | %{IPADDR}:%{NUMBER}:mysql41 |
| searchd.listen | %{IPADDR}:%{NUMBER} |
| searchd.listen | %{IPADDR}:%{NUMBER}:http |
| searchd.log | /var/log/manticore-1/searchd.log |
| searchd.query_log | /var/log/manticore-1/query.log |
| searchd.pid_file | /var/log/manticore-1/searchd.pid |
| searchd.data_dir | /var/log/manticore-1 |
| searchd.query_log_format | sphinxql |
| searchd.query_log_commands | 1 |
~ | searchd.binlog_path | /var/log/manticore-1/binlogserver_id | 1 |
~ | common.plugin_dir | /usr/local/lib/manticore searchd.binlog_path | /var/log/manticore-1/binlog |
~ | common.lemmatizer_base | /usr/share/manticore/ plugin_dir | /usr/local/lib/manticore |
- +----------------------------+------------------------------------------------------------+
+ | common.lemmatizer_base | /usr/share/manticore/ |
+ +----------------------------+------------------------------------------------------------+
|
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 --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 ; Batch ; Time ; Total Docs ; Docs/Sec ; Avg QPS ; p99 QPS ; p95 QPS ; p5 QPS ; p1 QPS ; Lat Avg ; Lat p50 ; Lat p95 ; Lat p99 ;
~ 4 ; 10000 ; %{NUMBER}:%{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER} ; %{NUMBER}.%{NUMBER}00:11 ; 1000000 ; 88788 ; 9 ; 14 ; 14 ; 7 ; 7 ; 445.6 ; 405.0 ; 725.0 ; 835.0 ;
––– 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 |
+------+-------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------+------+-----------+----------+-----------+------------+--------------------------+------------------------------------------------------------+-----------------+---------------------------------------+ |
Type of Change (select one):
Description of the Change:
Related Issue (provide the link):