ci: run docs check inline for trusted PR authors - #4374
Conversation
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/expected-errors/test-errors-insert-for-distributed-missing-table.rec––– input –––
sed -i '/^searchd/a\ buddy_path =' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2006(f text, s string); insert into index2006 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2007(f text, s string); insert into index2007 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index2006' local='index2007';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; DESC dist_table"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- +------------+-------------+
- +-----------+-------+
- | Agent | Type |
- +-----------+-------+
- | index2006 | local |
- | index2007 | local |
- +-----------+-------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO dist_table (id, column1, column2) VALUES (1, 'value1', 'value2'), (2, 'value3', 'value4');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'dist_table' does not support INSERT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO missing_table(f, s) VALUES('abc', 'string');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'missing_table' absent
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-character-transformation-when-sending-to-buddy.rec––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
export SEARCHD_FLAGS="--logdebugv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:13.883 2026] [23] watchdog: main process 24 forked ok
+ [Sun Mar 15 09:20:13.883 2026] [24] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:13.884 2026] [23] watchdog: main process 24 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test (id BIGINT, a TEXT, b TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test (id, a, b) VALUES (1, 'hello', 'world'), (2, 'hello', 'universe'), (3, 'goodbye', 'world');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1, key2 = 2;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select b, a from test where match('hello world') option key1 = 1, key2 = 2;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select b, a from test where match('hello world') option key2 = 2"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1, key2 = 2, key3 = 3;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
timeout 5 bash -c 'while [ $(grep -c "request data" /var/log/manticore/searchd.log 2>/dev/null || echo 0) -lt 5 ]; do sleep 0.01; done' && echo "All 5 requests logged"
––– output –––
- All 5 requests logged
+ bash: line 1: [: too many arguments
+ All 5 requests logged
––– input –––
cat /var/log/manticore/searchd.log | grep 'request data' | sed 's/.*request data/request data/'
––– output –––
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1, key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select b, a from test where match('hello world') option key1 = 1, key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key2'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select b, a from test where match('hello world') option key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1, key2 = 2, key3 = 3","http_method":""}}test/clt-tests/expected-errors/buddy-plugin-select.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM manticore.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM `manticore`.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM `Manticore`.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.files;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.files
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.tables;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.tables
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.triggers;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.triggers
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.column_statistics;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.column_statistics
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.columns;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.columns
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE id = '1';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE id IN ('1');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COALESCE(name, '') = '' FROM test;"
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(', expecting $end near 'name, '') = '''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE CONTAINS(text_field, 'NEAR((word1, word2), 3)');"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '(' near '(text_field, 'NEAR((word1, word2), 3)')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DISTINCT TABLE_SCHEMA from information_schema.TABLES;"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected DISTINCT near 'DISTINCT TABLE_SCHEMA from information_schema.TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date) * 60 * 60 + MINUTE(date) * 60 + SECOND(date)) SECOND) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date) * 60 * 60 + MINUTE(date) * 60 + SECOND(date)) SECOND) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date)*60 + MINUTE(date)) MINUTE) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date)*60*60 + MINUTE(date)*60 + SECOND(date)) SECOND) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL HOUR(date) HOUR) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL HOUR(date) HOUR) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE(date) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE(date) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFMONTH(date)-1 DAY)) AS date FROM test;'
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(' near 'date)-1 DAY))'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFMONTH(date)-1 DAY)) FROM test;'
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(' near 'date)-1 DAY))'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFYEAR(date)-1 DAY)) AS date FROM test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFYEAR(date)-1 DAY)) FROM test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-external-files-handling-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "z => w" > /var/lib/manticore/wordforms2.txt; echo "a => b" > /var/lib/manticore/wordforms3.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "z" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords='/var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt, /var/lib/manticore/wordforms3.txt' rt_mem_limit='256M';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram OPTION output_words = 'file';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t_ram | rt |
- +-------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 2 | srthh | 88 |
- | 1 | zxczxc | 77 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_ram | CREATE TABLE t_ram (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 3 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
- WARNING: table 't_ram': all wordform source tokens are stopwords (wordform='z => w', file='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt'). IGNORED.
- WARNING: table 't_ram': all wordform source tokens are stopwords (wordform='z => w', file='/var/lib/manticore/t_ram/wordforms_chunk0_1.txt'). IGNORED.
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:38.664 2026] [41] watchdog: main process 42 forked ok
+ [Sun Mar 15 09:20:38.664 2026] [42] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:38.665 2026] [41] watchdog: main process 42 exited cleanly (exit code 1), shutting downtest/clt-tests/expected-errors/buddy-plugin-backup.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES users, posts TO '/backup/location';'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES users, posts TO /backup/location'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES users, posts TO '/backup/location' OPTIONS compress=true, async=false;'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES users, posts TO /backup/location OPTIONS compress=true, async=false'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES TO '/backup/location' OPTIONS compress=true, async=false;'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES TO /backup/location OPTIONS compress=true, async=false'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/buddy-plugin-show.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW QUERIES;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW FULL TABLES;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'FULL TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW SCHEMAS;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'SCHEMAS'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/buddy-plugin-empty-string.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SET @saved_cs_client = @@character_set_client;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected @@sysvar near '@@character_set_client'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SET character_set_client = utf8mb4;'
––– output –––
- ERROR 1064 (42000) at line 1: Unknown session variable 'character_set_client' in SET statement
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111) |
aac9edd to
77c67f9
Compare
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/test-configuration/test-buddy-max-connections-configuration.rec––– input –––
sed -i '/^searchd/a\ max_connections=1' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi;
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ Timeout or failed!
- listening on %{IPADDR}:9306 for mysql
+ [Sun Mar 15 09:21:18.114 2026] [24] watchdog: main process 25 forked ok
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ [Sun Mar 15 09:21:18.115 2026] [25] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- Buddy started!
+ [Sun Mar 15 09:21:18.115 2026] [24] watchdog: main process 25 exited cleanly (exit code 1), shutting down
––– input –––
mysql -P9306 -h0 -e "CREATE TABLE IF NOT EXISTS t (id INT); INSERT INTO t (id) VALUES(0); SHOW QUERIES\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- query: SHOW QUERIES
- time: %{NUMBER}us
- protocol: mysql
- host: %{IPADDR}:%{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- query: select
- time: %{NUMBER}#!/\b(?:us|ms)\b/!# ago
- protocol: http
- host: %{IPADDR}:%{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
- query: show_settings
- time: %{NUMBER}us
- protocol: http
- host: %{IPADDR}:%{NUMBER}
––– input –––
stdbuf -oL searchd --stopwait
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
+ [Sun Mar 15 09:21:28.365 2026] [32] FATAL: stop: pid file '/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
sed -i '/^searchd/,/^}/s/max_connections=1/max_connections=2/' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi;
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ Timeout or failed!
- listening on %{IPADDR}:9306 for mysql
+ [Sun Mar 15 09:21:28.553 2026] [38] watchdog: main process 39 forked ok
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ [Sun Mar 15 09:21:28.553 2026] [39] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- precaching table 't'
+ [Sun Mar 15 09:21:28.554 2026] [38] watchdog: main process 39 exited cleanly (exit code 1), shutting down
- precached 1 tables in #!/[0-9]+.[0-9]+/!# sec
- Buddy started!
––– input –––
for n in 1 2; do mysql -P9306 -h0 -e "CREATE TABLE IF NOT EXISTS b${n} (id INT);" ; done; for n in 1 2; do mysql -P9306 -h0 -e "INSERT INTO b${n} (id) VALUES(0)" & pids="$pids $!"; done; for pid in $pids; do wait $pid; done; mysql -P9306 -h0 -e "show queries\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- query: show queries
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- time: %{NUMBER}us
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- protocol: mysql
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- host: %{IPADDR}:%{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- query: select
- time: %{NUMBER}#!/\b(?:us|ms)\b/!# ago
- protocol: http
- host: %{IPADDR}:%{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
- query: show_settings
- time: %{NUMBER}us
- protocol: http
- host: %{IPADDR}:%{NUMBER}test/clt-tests/test-configuration/test-buddy-requests-not-logged.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
TMPLOG=$(mktemp) && cp /var/log/manticore/query.log "$TMPLOG"
––– output –––
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
––– input –––
mysql -h0 -P9306 -e "create table test (id BIGINT, model TEXT);" || echo "ERROR: Failed to create table"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR: Failed to create table
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test","id":1,"doc":{"model":"Test message"}}' > /dev/null 2>&1 || echo "ERROR: Failed to insert data"
––– output –––
+ ERROR: Failed to insert data
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from test' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: SELECT query was NOT logged as expected" || echo "ERROR: SELECT query was logged when it should not have been!"
––– output –––
- Test passed: SELECT query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: SELECT query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from test; show meta' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: SHOW META query was NOT logged as expected" || echo "ERROR: SHOW META query was logged when it should not have been!"
––– output –––
- Test passed: SHOW META query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: SHOW META query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=delete from test where id=1' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: DELETE query was NOT logged as expected" || echo "ERROR: DELETE query was logged when it should not have been!"
––– output –––
- Test passed: DELETE query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: DELETE query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent:' -d 'query=select * from test' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -gt 0 ] && echo "Test passed: Query without User-Agent was logged" || echo "ERROR: Query without User-Agent was NOT logged!"
––– output –––
- Test passed: Query without User-Agent was logged
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: Query without User-Agent was NOT logged!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from non_existent_table' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -gt 0 ] && echo "Test passed: Error query was logged" || echo "ERROR: Error query was NOT logged!"
––– output –––
- Test passed: Error query was logged
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: Error query was NOT logged!
––– input –––
rm -f "$TMPLOG" "$TMPLOG-diff"
––– output –––
OKtest/clt-tests/test-configuration/show-threads.rec––– input –––
stdbuf -oL searchd --cpustats > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW THREADS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- TID: %{NUMBER}
- Name: work_%{NUMBER}
- Proto: mysql
- State: query
- Connection from: 127.0.0.1:%{NUMBER}
- ConnID: %{NUMBER}
- This/prev job time: %{NUMBER}#!/(s|ms|us)/!#
- CPU activity: %{NUMBER}%
- Jobs done: %{NUMBER}
- Thread status: working
- Info: SHOW THREADS |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mcl/auto-embeddings-hnsw-configs.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:00.301 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:00.301 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:00.302 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_l2 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_cosine (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_ip (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='ip'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for table in test_l2 test_cosine test_ip; do
mysql -h0 -P9306 -e "INSERT INTO $table (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning'),
(3, 'cooking recipes')" 2>/dev/null
done
echo "Data inserted into all tables"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_l2; OPTIMIZE TABLE test_l2 OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_cosine; OPTIMIZE TABLE test_cosine OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_ip; OPTIMIZE TABLE test_ip OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_l2 WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_cosine WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_ip WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
echo "L2 (Euclidean) distances:"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_l2 WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
L2 (Euclidean) distances:
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.4910#!/[0-9]{2,4}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.6170#!/[0-9]{2,5}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 1.42384#!/[0-9]{2,4}/!#
––– input –––
echo "Cosine similarity distances (smaller = more similar):"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_cosine WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
Cosine similarity distances (smaller = more similar):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.245522#!/[0-9]{1,3}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.308500#!/[0-9]{1,3}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 0.71192#!/[0-9]{0,3}/!#
––– input –––
echo "Inner product distances (smaller = more similar):"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_ip WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
Inner product distances (smaller = more similar):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.245522#!/[0-9]{1,3}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.308500#!/[0-9]{1,3}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 0.71192#!/[0-9]{0,3}/!#
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_m4 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='4'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_m32 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='32'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_ef (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='16'
HNSW_EF_CONSTRUCTION='500'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for table in test_hnsw_m4 test_hnsw_m32 test_hnsw_ef; do
mysql -h0 -P9306 -e "INSERT INTO $table (id, content) VALUES (1, 'test document')" 2>/dev/null
done
echo "HNSW configurations test completed"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_m4"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_m32"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_ef"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO test_hnsw_m4 (content) VALUES ('document number $i with various content')" 2>/dev/null
mysql -h0 -P9306 -e "INSERT INTO test_hnsw_m32 (content) VALUES ('document number $i with various content')" 2>/dev/null
done
echo "Additional documents inserted for performance comparison"
––– output –––
OK
––– input –––
echo "Search with M=4 (faster, less connections):"
mysql -h0 -P9306 -E -e "SELECT id FROM test_hnsw_m4 WHERE KNN(vec, 3, 'document content') LIMIT 3"
––– output –––
Search with M=4 (faster, less connections):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
––– input –––
echo "Search with M=32 (slower, more connections, potentially more accurate):"
mysql -h0 -P9306 -E -e "SELECT id FROM test_hnsw_m32 WHERE KNN(vec, 3, 'document content') LIMIT 3"
––– output –––
Search with M=32 (slower, more connections, potentially more accurate):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_metric (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='invalid_metric'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P03: Unknown knn similarity 'INVALID_METRIC' near ''invalid_metric'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
- FROM='content'
- ) engine='columnar''test/clt-tests/mcl/auto-embeddings-from-vector-check.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_title1 (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_title2 (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title1 (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title2 (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count_table1 FROM test_from_title1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count_table1 |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count_table2 FROM test_from_title2"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count_table2 |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "title1_vector_md5: " $1}'
––– output –––
- title1_vector_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ title1_vector_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "title2_vector_md5: " $1}'
––– output –––
- title2_vector_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ title2_vector_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title1 (id, title1, title2) VALUES(2, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=2" | grep -v embedding_vector | md5sum | awk '{print "consistent_md5: " $1}'
––– output –––
- consistent_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ consistent_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
MD5_TITLE1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_TITLE2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "title1_md5: $MD5_TITLE1"; echo "title2_md5: $MD5_TITLE2"; if [ "$MD5_TITLE1" != "$MD5_TITLE2" ]; then echo "SUCCESS: FROM clause produces different vectors"; else echo "FAIL: FROM clause produces same vectors"; fi
––– output –––
- title1_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- title2_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: FROM clause produces different vectors
+ title1_md5: d41d8cd98f00b204e9800998ecf8427e
+ title2_md5: d41d8cd98f00b204e9800998ecf8427e
+ FAIL: FROM clause produces same vectors
––– input –––
MD5_SAME1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_SAME2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=2" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "same_input_md5_1: $MD5_SAME1"; echo "same_input_md5_2: $MD5_SAME2"; if [ "$MD5_SAME1" = "$MD5_SAME2" ]; then echo "SUCCESS: Same input produces same vector"; else echo "FAIL: Same input produces different vectors"; fi
––– output –––
- same_input_md5_1: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- same_input_md5_2: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same input produces same vector
+ same_input_md5_1: d41d8cd98f00b204e9800998ecf8427e
+ same_input_md5_2: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same input produces same vector
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'invalid-model-name' FROM = 'title1') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_invalid': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_field (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from_specified (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from_specified': 'from' setting empty for KNN attribute 'embedding_vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_set_to_empty (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = '') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_multi_from (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1, title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_multi_from (id, title1, title2) VALUES(1, 'deep learning neural networks', 'computer vision algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_multi_from WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "multi_field_md5: " $1}'
––– output –––
- multi_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_multi_from WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Multi-field FROM produces different vector"; else echo "INFO: Multi-field vs single-field comparison"; fi
––– output –––
- multi_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/SUCCESS: Multi-field FROM produces different vector|INFO: Multi-field vs single-field comparison/!#
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: Multi-field vs single-field comparison
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2') "
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from': 'from' setting empty for KNN attribute 'embedding_vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_no_from (id, title1) VALUES(1, 'test title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t1 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t2 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t3 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title3') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_all (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = '') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t1 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t2 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t3 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_all (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
MD5_T1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_T2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_T3=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t3 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_ALL=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_all WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "md5_t1: $MD5_T1"; echo "md5_t2: $MD5_T2"; echo "md5_t3: $MD5_T3"; echo "md5_all: $MD5_ALL"; UCOUNT=$(printf "%s\n%s\n%s\n%s\n" "$MD5_T1" "$MD5_T2" "$MD5_T3" "$MD5_ALL" | sort -u | wc -l); if [ "$UCOUNT" -eq 4 ]; then echo "SUCCESS: all FROM variants produce different vectors"; else echo "FAIL: expected 4 different vectors, got $UCOUNT"; fi
––– output –––
- md5_t1: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_t2: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_t3: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_all: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: all FROM variants produce different vectors
+ md5_t1: d41d8cd98f00b204e9800998ecf8427e
+ md5_t2: d41d8cd98f00b204e9800998ecf8427e
+ md5_t3: d41d8cd98f00b204e9800998ecf8427e
+ md5_all: d41d8cd98f00b204e9800998ecf8427e
+ FAIL: expected 4 different vectors, got 1test/clt-tests/mcl/auto-embeddings-endpoints.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE emb_test (
id BIGINT,
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO emb_test (id, title, content) VALUES
(1, 'machine learning', 'neural networks and deep learning'),
(2, 'computer vision', 'image recognition and processing'),
(3, 'natural language', 'text analysis and understanding')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK emb_test; OPTIMIZE TABLE emb_test OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM emb_test WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
curl -s "http://localhost:9308/cli?select%20id,%20title%20from%20emb_test%20where%20knn(vec,%202,%20'artificial%20intelligence')" | grep -v 'rows in set'
––– output –––
- +----+------------------+
- | id | title |
- +----+------------------+
- | 1 | machine learning |
- | 2 | computer vision |
- | 3 | natural language |
- +----+------------------+
––– input –––
curl -s "http://localhost:9308/cli_json?select%20id,%20title,%20@knn_dist%20from%20emb_test%20where%20knn(vec,%201,%20'learning')" | jq -r '.[0].data[0] | "ID: \(.id)\nTitle: \(.title)\nDistance: \(.["@knn_dist"] | tostring)"'
––– output –––
- ID: 1
- Title: machine learning
- Distance: #!/1\.082[0-9]*/!#
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select count(*) from emb_test where knn(vec, 2, 'neural networks')" | jq -r '.[0].data[0]."count(*)"'
––– output –––
- 3
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"emb_test","id":10,"doc":{"title":"quantum computing","content":"quantum algorithms"}}' | jq -r '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"index":"emb_test","knn":{"field":"vec","query":"quantum","k":1}}' | jq -r '.hits.hits[0]._source.title'
––– output –––
- quantum computing
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"index":"emb_test","knn":{"field":"vec","query_text":"quantum","k":1}}'
––– output –––
- {"error":""}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE chunk_test (
id BIGINT,
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO chunk_test (id, title) VALUES
(1, 'machine learning'),
(2, 'deep learning'),
(3, 'reinforcement learning')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM chunk_test WHERE KNN(vec, 1, 'learning')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK chunk_test; OPTIMIZE TABLE chunk_test OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM chunk_test WHERE KNN(vec, 1, 'learning')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+test/clt-tests/mcl/auto-embeddings-json-api.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:24.764 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:24.764 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:24.765 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_json_columnar (
title TEXT,
content TEXT,
embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_json_columnar" | grep -o "model_name='sentence-transformers/all-MiniLM-L6-v2'"
––– output –––
- model_name='sentence-transformers/all-MiniLM-L6-v2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_columnar","id":1,"doc":{"title":"machine learning","content":"neural networks"}}' | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_json_columnar WHERE KNN(embedding, 1, 'machine learning neural networks')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s -X POST http://localhost:9308/bulk -H "Content-Type: application/x-ndjson" -d '
{"insert":{"index":"test_json_columnar","id":2,"doc":{"title":"computer vision","content":"image recognition"}}}
{"insert":{"index":"test_json_columnar","id":3,"doc":{"title":"NLP","content":"text processing"}}}
' | jq '{created: .items[0].bulk.created}'
––– output –––
- {
- "created": 2
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_columnar WHERE id IN (2,3)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"index":"test_json_columnar","id":1,"doc":{"title":"updated ML","content":"updated networks"}}' | jq -r '.result'
––– output –––
- updated
––– input –––
mysql -h0 -P9306 -e "SELECT title FROM test_json_columnar WHERE id=1 AND KNN(embedding, 1, 'updated ML networks')"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title |
- +------------+
- | updated ML |
- +------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_json_columnar (id, title, content) VALUES (100, 'test', 'data')";
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_columnar","id":101,"doc":{"title":"test","content":"data"}}' > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_columnar WHERE id=100" > /tmp/v1.txt
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_columnar WHERE id=101" > /tmp/v2.txt
diff -q /tmp/v1.txt /tmp/v2.txt > /dev/null && echo "Vectors identical" || echo "Vectors differ"
––– output –––
- Vectors identical
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Vectors identical
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_columnar"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 5 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_json_columnar; OPTIMIZE TABLE test_json_columnar OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.01']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"test_json_columnar\",\"knn\":{\"field\":\"embedding\",\"query_vector\":[$VECTOR],\"k\":2}}" | jq -r '.hits.total // "0"'
––– output –––
- 5
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE no_auto_embed (title TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='384' HNSW_SIMILARITY='l2') engine='columnar'"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.5']*384))")
curl -s -X POST http://localhost:9308/insert -d "{\"index\":\"no_auto_embed\",\"id\":1,\"doc\":{\"title\":\"test\",\"vec\":[$VECTOR]}}" | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
QUERY_VEC=$(python3 -c "print(','.join(['0.5']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"no_auto_embed\",\"knn\":{\"field\":\"vec\",\"query_vector\":[$QUERY_VEC],\"k\":1}}" | jq -r '.hits.total // "0"'
––– output –––
- 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_json_rowwise (
title TEXT,
content TEXT,
embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_json_rowwise" | grep -o "model_name='sentence-transformers/all-MiniLM-L6-v2'"
––– output –––
- model_name='sentence-transformers/all-MiniLM-L6-v2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_rowwise","id":1,"doc":{"title":"machine learning","content":"neural networks"}}' | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_json_rowwise WHERE KNN(embedding, 1, 'machine learning neural networks')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s -X POST http://localhost:9308/bulk -H "Content-Type: application/x-ndjson" -d '
{"insert":{"index":"test_json_rowwise","id":2,"doc":{"title":"computer vision","content":"image recognition"}}}
{"insert":{"index":"test_json_rowwise","id":3,"doc":{"title":"NLP","content":"text processing"}}}
' | jq '{created: .items[0].bulk.created}'
––– output –––
- {
- "created": 2
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_rowwise WHERE id IN (2,3)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"index":"test_json_rowwise","id":1,"doc":{"title":"updated ML","content":"updated networks"}}' | jq -r '.result'
––– output –––
- updated
––– input –––
mysql -h0 -P9306 -e "SELECT title FROM test_json_rowwise WHERE id=1 AND KNN(embedding, 1, 'updated ML networks')"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title |
- +------------+
- | updated ML |
- +------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_json_rowwise (id, title, content) VALUES (100, 'test', 'data')";
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_rowwise","id":101,"doc":{"title":"test","content":"data"}}' > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_rowwise WHERE id=100" > /tmp/v1.txt
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_rowwise WHERE id=101" > /tmp/v2.txt
diff -q /tmp/v1.txt /tmp/v2.txt > /dev/null && echo "Vectors identical" || echo "Vectors differ"
––– output –––
- Vectors identical
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Vectors identical
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_rowwise"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 5 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_json_rowwise; OPTIMIZE TABLE test_json_rowwise OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.01']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"test_json_rowwise\",\"knn\":{\"field\":\"embedding\",\"query_vector\":[$VECTOR],\"k\":2}}" | jq -r '.hits.total // "0"'
––– output –––
- 5test/clt-tests/mcl/auto-embeddings-edge-cases.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty (
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (1, 'Content without title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title) VALUES (2, 'Title without content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title, content) VALUES (4, '', 'Non-empty content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title, content) VALUES (5, '', '')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_unicode (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (1, '🔥 Machine Learning is awesome! 🚀💻')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (2, '机器学习和人工智能的未来')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (3, 'التعلم الآلي والذكاء الاصطناعي')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (4, 'English текст 日本語 mixed المختلط')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (5, '@#$%^&*()_+-=[]{}|;:<>?,./~\`')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_unicode WHERE KNN(vec, 2, '机器学习 🚀')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 2 |
- | 3 |
- | 4 |
- | 1 |
- | 5 |
- +------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (100, 'Text with SQL: DROP TABLE test; SELECT * FROM users;')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT content_text FROM test_unicode WHERE id=100"
––– output –––
- +------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | content_text |
- +------------------------------------------------------+
- | Text with SQL: DROP TABLE test; SELECT * FROM users; |
- +------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (101, 'Line 1
Line 2
Tabbed line
Line 4')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (102, '<html><body><h1>Title</h1><script>alert(1)</script></body></html>')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
HUGE_TEXT=$(python3 -c "print('neural network ' * 1000)")
mysql -h0 -P9306 -e "CREATE TABLE test_huge (
id BIGINT,
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_huge (id, content_text) VALUES (1, '$HUGE_TEXT')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_huge WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 1 | 1.#!/[0-9]+(\.[0-9]+)?/!# |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_huge WHERE KNN(vec, 1, 'neural network')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
for i in 1 2 3; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title) VALUES ($((1000+i)), 'Concurrent insert $i')" 2>&1 &
done
wait
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_concurrent WHERE id >= 1001 AND id <= 1003"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 3 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_auto_dims (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_auto_dims"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_auto_dims
- Create Table: CREATE TABLE test_auto_dims (
- id bigint,
- content_text text,
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content_text'
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_rapid (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in $(seq 1 20); do
mysql -h0 -P9306 -e "REPLACE INTO test_rapid (id, content_text) VALUES (1, 'Iteration $i')" 2>/dev/null
done
mysql -h0 -P9306 -e "SELECT content_text FROM test_rapid WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | content_text |
- +--------------+
- | Iteration 20 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_row (
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty_row (id, content) VALUES (1, 'Content without title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_empty_row WHERE KNN(vec, 1, 'test query')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_compare_row (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_compare_col (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_compare_row (id, title) VALUES (1, 'Machine learning algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_compare_col (id, title) VALUES (1, 'Machine learning algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_compare_row WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_compare_col WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_scale_columnar (
id BIGINT,
title TEXT,
description TEXT,
category STRING ATTRIBUTE,
age INT,
salary FLOAT,
discount FLOAT,
is_active BOOL,
last_login TIMESTAMP,
product_codes MULTI,
large_values MULTI64,
additional_info JSON,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, description'
) engine='columnar'" --load="INSERT INTO test_scale_columnar (id, title, description, category, age, salary, discount, is_active, last_login, product_codes, large_values, additional_info) VALUES (<increment>, 'Document title <increment>', 'Document description <increment>', 'cat_<increment>', <int/18/65>, <float/1000.0/100000.0>, <float/0.0/50.0>, <int/0/1>, <int/1609459200/1704067200>, (<array/1/5/100/999>), (<array/1/3/1000000/9999999>), '{\"rating\":<int/1/5>,\"verified\":<int/0/1>}')" --batch-size=500 --threads=2 --total=5000
––– output –––
- {
+ Process 1 failed: Connection refused
- "threads": %{NUMBER},
+ Process 1 failed early, terminating all processes...
- "batch_size": %{NUMBER},
- "time": "%{NUMBER}:%{NUMBER}",
- "total_operations": 5000,
- "operations_per_second": %{NUMBER},
- "qps": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p99": %{NUMBER},
- "p95": %{NUMBER},
- "p5": %{NUMBER},
- "p1": %{NUMBER}
- },
- "latency": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p50": %{NUMBER},
- "p95": %{NUMBER},
- "p99": %{NUMBER}
- }
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_scale_columnar"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 5000 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "DESCRIBE test_scale_columnar;"
––– output –––
- +-----------------+--------------+-------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-----------------+--------------+-------------------------+
- | id | bigint | columnar fast_fetch |
- | title | text | indexed stored |
- | description | text | indexed stored |
- | category | string | columnar fast_fetch |
- | age | uint | columnar fast_fetch |
- | salary | float | columnar fast_fetch |
- | discount | float | columnar fast_fetch |
- | is_active | bool | columnar fast_fetch |
- | last_login | timestamp | columnar fast_fetch |
- | product_codes | mva | columnar fast_fetch |
- | large_values | mva64 | columnar fast_fetch |
- | additional_info | json | |
- | vec | float_vector | columnar knn fast_fetch |
- +-----------------+--------------+-------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_scale_columnar ORDER BY id ASC LIMIT 100" > /tmp/test_scale_columnar.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_scale_columnar WHERE KNN(vec, 5, 'Document title 100') LIMIT 5\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 10012
- title: Document title 10011
- category: cat_10009
- knn_dist(): 0.28152#!/[0-9]{3}/!#
- *************************** 2. row ***************************
- id: 10020
- title: Document title 10019
- category: cat_10017
- knn_dist(): 0.28869#!/[0-9]{3}/!#
- *************************** 3. row ***************************
- id: 10052
- title: Document title 10051
- category: cat_10049
- knn_dist(): 0.31627#!/[0-9]{3}/!#
- *************************** 4. row ***************************
- id: 10072
- title: Document title 10071
- category: cat_10069
- knn_dist(): 0.33028#!/[0-9]{3}/!#
- *************************** 5. row ***************************
- id: 10044
- title: Document title 10043
- category: cat_10041
- knn_dist(): 0.33115#!/[0-9]{3}/!#
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_scale_rowwise (
id BIGINT,
title TEXT,
description TEXT,
category STRING ATTRIBUTE,
age INT,
salary FLOAT,
discount FLOAT,
is_active BOOL,
last_login TIMESTAMP,
product_codes MULTI,
large_values MULTI64,
additional_info JSON,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, description'
) engine='rowwise'" --load="INSERT INTO test_scale_rowwise (id, title, description, category, age, salary, discount, is_active, last_login, product_codes, large_values, additional_info) VALUES (<increment>, 'Document title <increment>', 'Document description <increment>', 'cat_<increment>', <int/18/65>, <float/1000.0/100000.0>, <float/0.0/50.0>, <int/0/1>, <int/1609459200/1704067200>, (<array/1/5/100/999>), (<array/1/3/1000000/9999999>), '{\"rating\":<int/1/5>,\"verified\":<int/0/1>}')" --batch-size=500 --threads=2 --total=5000
––– output –––
- {
+ Process 1 failed: Connection refused
- "threads": %{NUMBER},
+ Process 1 failed early, terminating all processes...
- "batch_size": %{NUMBER},
- "time": "%{NUMBER}:%{NUMBER}",
- "total_operations": 5000,
- "operations_per_second": %{NUMBER},
- "qps": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p99": %{NUMBER},
- "p95": %{NUMBER},
- "p5": %{NUMBER},
- "p1": %{NUMBER}
- },
- "latency": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p50": %{NUMBER},
- "p95": %{NUMBER},
- "p99": %{NUMBER}
- }
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_scale_rowwise"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 5000 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "DESCRIBE test_scale_rowwise;"
––– output –––
- +-----------------+--------------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-----------------+--------------+----------------+
- | id | bigint | |
- | title | text | indexed stored |
- | description | 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 | |
- | vec | float_vector | knn |
- +-----------------+--------------+----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_scale_rowwise ORDER BY id ASC LIMIT 100" > /tmp/test_scale_rowwise.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_scale_rowwise WHERE KNN(vec, 5, 'Document title 100') LIMIT 5\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 10012
- title: Document title 10011
- category: cat_10009
- knn_dist(): 0.28152#!/[0-9]{3}/!#
- *************************** 2. row ***************************
- id: 10020
- title: Document title 10019
- category: cat_10017
- knn_dist(): 0.28869#!/[0-9]{3}/!#
- *************************** 3. row ***************************
- id: 10052
- title: Document title 10051
- category: cat_10049
- knn_dist(): 0.31627#!/[0-9]{3}/!#
- *************************** 4. row ***************************
- id: 10072
- title: Document title 10071
- category: cat_10069
- knn_dist(): 0.33028#!/[0-9]{3}/!#
- *************************** 5. row ***************************
- id: 10044
- title: Document title 10043
- category: cat_10041
- knn_dist(): 0.33115#!/[0-9]{3}/!#
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_batch_perf (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
START_TIME=$(date +%s)
mysql -h0 -P9306 -e "INSERT INTO test_batch_perf (id, content) VALUES
(1, 'First text'), (2, 'Second text'), (3, 'Third text'),
(4, 'Fourth text'), (5, 'Fifth text')"
END_TIME=$(date +%s)
echo "Batch insert time: $((END_TIME - START_TIME)) seconds"
––– output –––
- Batch insert time: %{NUMBER} seconds
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Batch insert time: 0 seconds
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE perf_test_row (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE perf_test_col (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
START_TIME=$(date +%s%N)
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO perf_test_row (id, content) VALUES ($i, 'Test content $i')" 2>/dev/null
done
END_TIME=$(date +%s%N)
echo "Row-wise 10 inserts: $(( (END_TIME - START_TIME) / 1000000 )) ms"
––– output –––
OK
––– input –––
START_TIME=$(date +%s%N)
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO perf_test_col (id, content) VALUES ($i, 'Test content $i')" 2>/dev/null
done
END_TIME=$(date +%s%N)
echo "Columnar 10 inserts: $(( (END_TIME - START_TIME) / 1000000 )) ms"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_search (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'";
mysql -h0 -P9306 -e "SELECT id FROM test_empty_search WHERE KNN(vec, 5, 'search query')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1test/clt-tests/mcl/auto-embeddings-duplicate-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:19:54.483 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:19:54.484 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:19:54.484 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_row_wise (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_row_wise (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_row_wise (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"
––– output –––
- ERROR 1064 (42000) at line 1: duplicate id '1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_columnar (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') engine = 'columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_columnar (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_columnar (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"
––– output –––
- ERROR 1064 (42000) at line 1: duplicate id '1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mcl/auto-embeddings-error-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:34.182 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:34.182 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:34.183 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_dims (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' KNN_DIMS='384'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)" 2>&1
# Check if table was actually created
mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_dims'" | grep -q "test_dims" && echo "Table created" || echo "Table not created"
––– output –––
- ERROR 1064 (42000) at line 1: P03: knn_dims can't be used together with model_name near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table not created
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Table not created
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_auto_dims (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_auto_dims (id, title) VALUES (1, 'Test document')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_model (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
FROM='title'
)"
––– output –––
- ERROR 1064 (42000) at line 1: P03: knn_dims and hnsw_similarity are required if knn_type='hnsw' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from': 'from' setting empty for KNN attribute 'vec'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_from (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM=''
)"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bad_model (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='non-existent-model/invalid-name'
FROM='title'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_bad_model': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_prefix (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='all-MiniLM-L6-v2'
FROM='content_text'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_prefix': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bad_from (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='non_existent_field'
)"
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_bad_from': prealloc: embedding source 'non_existent_field' not found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_circular (
title TEXT,
vec1 FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='vec1'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_circular': prealloc: embedding source attribute 'vec1' is not a string
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (1, '')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (2, NULL)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected null near 'NULL)'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_empty"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_rowwise (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_rowwise (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_rowwise; OPTIMIZE TABLE test_rowwise OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_rowwise WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_vec_columnar (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' engine='columnar'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_vec_columnar (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vec_columnar; OPTIMIZE TABLE test_vec_columnar OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vec_columnar WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_full_columnar (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_full_columnar (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_full_columnar; OPTIMIZE TABLE test_full_columnar OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_full_columnar WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
echo "Row-wise (default):"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_rowwise\G" | grep -E "vec.*float_vector"
––– output –––
Row-wise (default):
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Vec columnar only:"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_vec_columnar\G" | grep -E "vec.*float_vector"
––– output –––
Vec columnar only:
- vec float_vector engine='columnar' knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Full columnar:"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_full_columnar\G" | grep -E "(vec.*float_vector|engine='columnar')"
––– output –––
Full columnar:
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_auto_dims WHERE KNN(wrong_field, 1, 'test')" 2>&1 | grep -o "wrong_field.*not found"
––– output –––
- wrong_field' not foundtest/clt-tests/mcl/auto-embeddings-knn-select-scenarios.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_knn_select (id BIGINT, title TEXT, content TEXT, category string attribute, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content') engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_knn_select"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_knn_select
- Create Table: CREATE TABLE test_knn_select (
- id bigint,
- title text,
- content text,
- category string attribute,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content'
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_knn_select (id, title, content, category) VALUES (1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'technology'), (2, 'cooking recipes', 'delicious pasta and italian cuisine', 'food'), (3, 'travel destinations', 'beautiful beaches and mountain hiking', 'travel'), (4, 'artificial intelligence', 'machine learning and deep learning models', 'technology'), (5, 'healthy eating', 'nutritious meals and balanced diet', 'food')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total_records FROM test_knn_select"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total_records |
- +---------------+
- | 5 |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3))"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 1 | machine learning algorithms | #!/141\.302[0-9]*/!# |
- | 4 | artificial intelligence | #!/141\.419[0-9]*/!# |
- | 2 | cooking recipes | #!/141\.779[0-9]*/!# |
- | 3 | travel destinations | #!/142\.266[0-9]*/!# |
- | 5 | healthy eating | #!/142\.354[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning artificial intelligence')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 4 | artificial intelligence | #!/0\.590[0-9]*/!# |
- | 1 | machine learning algorithms | #!/0\.601[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.779[0-9]*/!# |
- | 3 | travel destinations | #!/1\.940[0-9]*/!# |
- | 5 | healthy eating | #!/1\.976[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, '')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 2 | cooking recipes | #!/1\.885[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.922[0-9]*/!# |
- | 3 | travel destinations | #!/1\.935[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.947[0-9]*/!# |
- | 5 | healthy eating | #!/1\.977[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, 'food cooking recipes')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 2 | cooking recipes | #!/0\.807[0-9]*/!# |
- | 5 | healthy eating | #!/1\.310[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.739[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.747[0-9]*/!# |
- | 3 | travel destinations | #!/1\.831[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, 1)"
––– output –––
- +------+-------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-------------------------+------------+
- | 4 | artificial intelligence | #!/0\.225[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.762[0-9]*/!# |
- | 3 | travel destinations | #!/1\.838[0-9]*/!# |
- | 5 | healthy eating | #!/1\.974[0-9]*/!# |
- +------+-------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_knn_select WHERE knn(embedding, 5, 'technology computers') AND category = 'technology'"
––– output –––
- +------+-----------------------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | category | knn_dist() |
- +------+-----------------------------+------------+------------+
- | 4 | artificial intelligence | technology | #!/1\.328[0-9]*/!# |
- | 1 | machine learning algorithms | technology | #!/1\.357[0-9]*/!# |
- +------+-----------------------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'travel vacation destinations', {ef=100, rescore=1, oversampling=2.0})"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 3 | travel destinations | #!/0\.595[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.772[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.796[0-9]*/!# |
- | 5 | healthy eating | #!/1\.869[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.875[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title FROM test_knn_select WHERE knn(embedding, 3, 'search query with special chars @#$%^&*()')"
––– output –––
- +------+-----------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title |
- +------+-----------------------------+
- | 4 | artificial intelligence |
- | 3 | travel destinations |
- | 1 | machine learning algorithms |
- | 5 | healthy eating |
- | 2 | cooking recipes |
- +------+-----------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'artificial intelligence') AND MATCH('machine')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 4 | artificial intelligence | #!/0\.846[0-9]*/!# |
- | 1 | machine learning algorithms | #!/0\.908[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 5, 'healthy nutrition food')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 5 | healthy eating | #!/0\.472[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.500[0-9]*/!# |
- | 3 | travel destinations | #!/1\.803[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.977[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.989[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
QUERY1_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning')" | md5sum | awk '{print $1}'); QUERY2_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning')" | md5sum | awk '{print $1}'); echo "query1_md5: $QUERY1_MD5"; echo "query2_md5: $QUERY2_MD5"; if [ "$QUERY1_MD5" = "$QUERY2_MD5" ]; then echo "SUCCESS: Same text query produces consistent results"; else echo "FAIL: Same text query produces different results"; fi
––– output –––
- query1_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- query2_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same text query produces consistent results
+ query1_md5: d41d8cd98f00b204e9800998ecf8427e
+ query2_md5: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same text query produces consistent results
––– input –––
TECH_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'technology computers')" | md5sum | awk '{print $1}'); FOOD_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'food cooking')" | md5sum | awk '{print $1}'); echo "tech_query_md5: $TECH_MD5"; echo "food_query_md5: $FOOD_MD5"; if [ "$TECH_MD5" != "$FOOD_MD5" ]; then echo "SUCCESS: Different text queries produce different results"; else echo "INFO: Query comparison result"; fi
––– output –––
- tech_query_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- food_query_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/SUCCESS: Different text queries produce different results|INFO: Query comparison result/!#
+ tech_query_md5: d41d8cd98f00b204e9800998ecf8427e
+ food_query_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: Query comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_auto (id BIGINT, title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='384' HNSW_SIMILARITY='l2') engine='columnar'"; mysql -h0 -P9306 -e "INSERT INTO test_no_auto (id, title, embedding) VALUES (1, 'test', (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4))"; mysql -h0 -P9306 -e "SELECT id, title FROM test_no_auto WHERE knn(embedding, 2, 'test query')"
––– output –––
- #!/.*ERROR.*(model|embedding|auto).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mcl/auto-embeddings-jina-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v2-base-en' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title, content' API_KEY='${JINA_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_jina_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_jina_remote
- Create Table: CREATE TABLE test_jina_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='jina/jina-embeddings-v4' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_jina_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title' API_KEY='${JINA_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_jina_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "INSERT INTO test_jina_no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_jina_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test_jina_no_from.*model_name='jina\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$JINA_API_KEY" ] && [ "$JINA_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/show-version-trailing-semicolon.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:01.380 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:01.380 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:01.381 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT); INSERT INTO t VALUES (1, 'example'), (2, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | awk '!/row.*in set/'|grep -v "\-\-\-"|grep -v Component; echo
––– output –––
- | Daemon | %{VERSION} #!/\s*/!#|
- | Columnar | columnar %{VERSION} #!/\s*/!#|
- | Secondary | secondary %{VERSION} #!/\s*/!#|
- | Knn | knn %{VERSION} #!/\s*/!#|
- | Embeddings | embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)\s*/!#|
- | Buddy | buddy %{VERSION} #!/\s*/!#|
––– input –––
curl -s "http://localhost:9308/cli_json" -d "show version"; echo
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw" -d "show version"; echo
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]test/clt-tests/http-interface/test-distributed-inserts.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test2 (
id BIGINT,
model TEXT,
storage_capacity INTEGER,
color STRING,
release_year INTEGER,
price FLOAT,
discounted_price FLOAT,
sold BOOL,
date_added TIMESTAMP,
product_codes MULTI,
values MULTI64,
additional_info JSON,
vector FLOAT_VECTOR
knn_type='hnsw'
knn_dims='4'
hnsw_similarity='l2'
) shards='3' rf='1';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables;"
––– output –––
- +-------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test2;"
––– output –––
- +------------------+--------------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | storage_capacity | uint | |
- | color | string | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | bool | |
- | date_added | timestamp | |
- | product_codes | mva | |
- | values | mva64 | |
- | additional_info | json | |
- | vector | float_vector | knn |
- +------------------+--------------+----------------+
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 1,
"doc": {
"model": "iPhone 13 Pro",
"storage_capacity": 256,
"color": "silver",
"release_year": 2021,
"price": 1099.99,
"discounted_price": 989.99,
"sold": 1,
"date_added": 1591362342000,
"product_codes": [1,2,3],
"values": [523456764345678976,98765409877866654098,1109876543450987650987],
"additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Ceramic Shield front cover"]},
"vector": [0.773448,0.312478,0.137971,0.459821]
}
}' | jq '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 2,
"doc": {
"model": "Galaxy S21 Ultra",
"storage_capacity": 128,
"color": "black",
"release_year": 2021,
"price": 1199.99,
"discounted_price": 1099.99,
"sold": 1,
"date_added": 1609459200000,
"product_codes": [4,5,6],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100", "108MP camera"]},
"vector": [0.5,0.4,0.3,0.2]
}
}' | jq '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 3,
"doc": {
"model": "Pixel 6",
"storage_capacity": 128,
"color": "white",
"release_year": 2021,
"price": 599.99,
"discounted_price": 549.99,
"sold": false,
"date_added": 1630454400000,
"product_codes": [7,8,9],
"values": [987654321987654321,123456789123456789],
"additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]},
"vector": [0.8,0.6,0.4,0.2]
}
}' | jq '.created'
––– output –––
- true
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
- | 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{
"table": "test2",
"id": 1,
"doc": {
"model": "Updated Model",
"storage_capacity": 512,
"color": "black",
"release_year": 2022,
"price": 1399.99,
"discounted_price": 1299.99,
"sold": false,
"date_added": 1630454400000,
"product_codes": [10,11,12],
"values": [987654321987654321,123456789123456789],
"additional_info": {"features": ["New feature 1","New feature 2"]},
"vector": [0.7,0.8,0.9,1.0]
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/update -d '{
"table": "test2",
"id": 2,
"doc": {
"price": 1099.99,
"discounted_price": 999.99
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/update -d '{
"table": "test2",
"id": 2,
"doc": {
"price": 1099.99,
"discounted_price": 999.99
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{
"table": "test2",
"id": 3
}' | jq '.result'
––– output –––
- "deleted"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{
"table": "test2",
"id": 3
}' | jq '.result'
––– output –––
- "not found"
––– input –––
bulk_insert=$(mktemp); echo -e '{ "index": { "_index": "test2", "_id": 4 } }\n{ "id": 4, "model": "iPhone 14", "storage_capacity": 256, "color": "black", "release_year": 2022, "price": 999.99, "discounted_price": 899.99, "sold": 1, "date_added": 1661990400, "product_codes": [19, 20, 21], "values": [1234567890123456789, 9876543210987654321], "additional_info": { "features": ["A16 Bionic", "Dynamic Island"] }, "vector": [0.1, 0.2, 0.3, 0.4] }\n{ "index": { "_index": "test2", "_id": 5 } }\n{ "id": 5, "model": "Pixel 7", "storage_capacity": 128, "color": "white", "release_year": 2022, "price": 699.99, "discounted_price": 649.99, "sold": 0, "date_added": 1661990400, "product_codes": [16, 17, 18], "values": [223344556677889900, 998877665544332211], "additional_info": { "features": ["Tensor G2", "120Hz display"] }, "vector": [0.4, 0.5, 0.6, 0.7] }' > "$bulk_insert"
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_insert" http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": 4
- }
- {
- "index": "created",
- "id": 5
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_insert=$(mktemp); echo -e '{"index":{"_index":"test2","_id":6}}\n{"id":6,"model":"OnePlus 10","storage_capacity":256,"color":"blue","release_year":2022,"price":899.99,"discounted_price":849.99,"sold":0,"date_added":1661990400,"product_codes":[22,23,24],"values":[111222333444555666,777888999000111222],"additional_info":{"features":["Snapdragon 8","OxygenOS"]},"vector":[0.2,0.3,0.4,0.5]}\n{"index":{"_index":"test2","_id":7}}\n{"id":7,"model":"Xiaomi 12","storage_capacity":128,"color":"gray","release_year":2022,"price":799.99,"discounted_price":749.99,"sold":1,"date_added":1661990400,"product_codes":[25,26,27],"values":[333444555666777888,999000111222333444],"additional_info":{"features":["MIUI 13","5G"]},"vector":[0.3,0.4,0.5,0.6]}' > "$bulk_insert"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_insert" http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": 6
- }
- {
- "index": "created",
- "id": 7
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 899.989990 | 849.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 799.989990 | 749.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_update=$(mktemp); echo -e '{"update":{"_index":"test2","_id":6}}\n{"doc":{"price": 799.99, "discounted_price": 749.99}}\n{"update":{"_index":"test2","_id":7}}\n{"doc":{"price": 699.99, "discounted_price": 649.99}}' > "$bulk_update"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_update" http://localhost:9308/_bulk | jq '.items[] | {update: .update.result, id: .update._id}'
––– output –––
- {
- "update": "updated",
- "id": "6"
- }
- {
- "update": "updated",
- "id": "7"
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 799.989990 | 749.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 699.989990 | 649.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_delete=$(mktemp); echo -e '{"delete":{"_index":"test2","_id":2}}\n{"delete":{"_index":"test2","_id":3}}' > "$bulk_delete"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_delete" http://localhost:9308/_bulk | jq '.items[] | {delete: .delete.result, id: .delete._id}'
––– output –––
- {
- "delete": "deleted",
- "id": "2"
- }
- {
- "delete": "deleted",
- "id": "3"
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 799.989990 | 749.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 699.989990 | 649.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
––– input –––
bulk_ops=$(mktemp); echo -e '{"delete":{"_index":"test2","_id":1}}\n{"index":{"_index":"test2","_id":2}}\n{"model":"C","storage_capacity":256,"color":"black","release_year":2023,"price":799.99,"discounted_price":749.99,"sold":0,"date_added":1672531200,"product_codes":[10,11,12],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["Feature A","Feature B"]},"vector":[0.5,0.6,0.7,0.8]}\n{"index":{"_index":"test2","_id":17}}\n{"model":"Updated B","storage_capacity":128,"color":"blue","release_year":2024,"price":899.99,"discounted_price":849.99,"sold":1,"date_added":1672531200,"product_codes":[40,41,42],"values":[222222222222222222,333333333333333333],"additional_info":{"features":["Feature X","Feature Y"]},"vector":[0.1,0.2,0.3,0.4]}\n{"update":{"_index":"test2","_id":6}}\n{"doc":{"price":749.99,"discounted_price":699.99}}' > "$bulk_ops"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_ops" http://localhost:9308/_bulk | jq -c '.items[] | {operation: (to_entries | .[0].key), result: (.[].result?), id: (.[]._id?), status: (.[].status?), error: (.[].error?)}'
––– output –––
- {"operation":"delete","result":"deleted","id":1,"status":201,"error":null}
- {"operation":"index","result":"created","id":2,"status":201,"error":null}
- {"operation":"index","result":"created","id":17,"status":201,"error":null}
- {"operation":"update","result":"updated","id":6,"status":201,"error":null}
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 WHERE id = 4;"
––– output –––
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test2 WHERE id BETWEEN 11 AND 20;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 4,
"doc": {
"model": "Updated iPhone 14",
"storage_capacity": 512,
"color": "black",
"release_year": 2022,
"price": 1299.99,
"discounted_price": 1199.99,
"sold": 1,
"date_added": 1661990400,
"product_codes": [19,20,21],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},
"vector": [0.1,0.2,0.3,0.4]
}
}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
- {
+ Duplicate ID test failed!
- "type": "action_request_validation_exception",
- "reason": "duplicate id '4'",
- "table": "system.test2_s2",
- "index": "test2"
- }
- Duplicate ID test passed!
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": '$((10 + i))',
"doc": {
"model": "Device '$i'",
"storage_capacity": 64,
"color": "black",
"release_year": 2023,
"price": 499.99,
"discounted_price": 449.99,
"sold": "0",
"date_added": 1672531200,
"product_codes": [1,2,3],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["Feature 1","Feature 2"]},
"vector": [0.1,0.2,0.3,0.4]
}
}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20;"
––– output –––
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
- | 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:30.493 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:30.494 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:30.494 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE fuzzy_test (id INT, content TEXT, title TEXT) min_infix_len='2'; INSERT INTO fuzzy_test VALUES (1, 'example text', 'example'), (2, 'test data', 'testing'), (3, 'hello world', 'greeting');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text","title":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('testin') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"content":"test data","title":"testing"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('helo') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"content":"hello world","title":"greeting"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select id, content from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select count(*) from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_score":%{NUMBER},"_source":{"count(*)":1}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('test') option fuzzy=0"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"content":"test data","title":"testing"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('example') option fuzzy=1, layouts=''"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text","title":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('wrld') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"content":"hello world","title":"greeting"}}]}}
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS multi_word; CREATE TABLE multi_word (id INT, msg TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO multi_word VALUES (1, 'quick brown fox'), (2, 'slow red dog'), (3, 'fast blue cat');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from multi_word where match('quik bron') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"msg":"quick brown fox"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from multi_word where match('fst blu') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"msg":"fast blue cat"}}]}}test/clt-tests/http-interface/test-content-type-header-daemon-only.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_ct; CREATE TABLE test_ct (title TEXT, year INT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_ct VALUES (1, 'Test Document', 2024);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS pq_test; CREATE TABLE pq_test (title TEXT, year INT) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo '{"index":{"_index":"test_ct","_id":2}}
{"title":"Bulk Document","year":2024}' > /tmp/bulk_test.ndjson
––– output –––
OK
––– input –––
curl -i -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM test_ct LIMIT 1" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SELECT%20*%20FROM%20test_ct%20LIMIT%201" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/cli_json" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/search" -d '{"index":"test_ct","query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/insert" -d '{"index":"test_ct","id":100,"doc":{"title":"Insert Test","year":2024}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/replace" -d '{"index":"test_ct","id":100,"doc":{"title":"Replace Test","year":2025}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/update" -d '{"index":"test_ct","id":100,"doc":{"year":2026}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/delete" -d '{"index":"test_ct","id":100}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/index.html" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/html; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/pq/pq_test/doc" -d '{"query":{"match":{"title":"test"}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/pq/pq_test/search" -d '{"query":{"percolate":{"document":{"title":"test document"}}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8test/clt-tests/http-interface/test-inserts.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', (1,2,3), (523456764345678976, 98765409877866654098, 1109876543450987650987), '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (0.773448, 0.312478, 0.137971, 0.459821));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
- true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | test1 | rt |
- +-------+------+
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976,9223372036854775807 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 1 | iPhone 13 Pro Max | 512 | gold | 2021 | 1299.989990 | 1199.989990 | 1 | 2224442480 | 7,8,9 | 1234567890123456789 | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": "4"
- }
- {
- "index": "created",
- "id": "5"
- }
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 1 | iPhone 13 Pro Max | 512 | gold | 2021 | 1299.989990 | 1199.989990 | 1 | 2224442480 | 7,8,9 | 1234567890123456789 | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
- "deleted"
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1test/clt-tests/http-interface/sql-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:12.288 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:12.288 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:12.289 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t limit 1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"value":"example","value_attr":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('test')"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"value":"test","value_attr":"test"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select count(*) from t"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_score":%{NUMBER},"_source":{"count(*)":2}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('exmaple') option fuzzy=1"
––– output –––
- {"took":0,"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"value":"example","value_attr":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "create table t_copy like t"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "insert into t values (3, 'new', 'new')"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s "http://localhost:9308/sql?query=select%20count(*)%20from%20t"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_score":1,"_source":{"count(*)":2}}]}}test/clt-tests/http-interface/test-content-type-header-with-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:59.640 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:59.640 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:59.641 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_ct; CREATE TABLE test_ct (title TEXT, year INT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_ct VALUES (1, 'Test Document', 2024);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo '{"index":{"_index":"test_ct","_id":2}}
{"title":"Bulk Document","year":2024}' > /tmp/bulk_test.ndjson
––– output –––
OK
––– input –––
curl -i -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM test_ct LIMIT 1" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SHOW VERSION" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SHOW TABLES" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "CREATE TABLE test_ct2 LIKE test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "DROP TABLE IF EXISTS test_ct2" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/sql?mode=raw&query=SELECT%20COUNT(*)%20FROM%20test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SHOW%20VERSION" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SELECT%20*%20FROM%20test_ct%20LIMIT%201" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli_json?SHOW%20TABLES" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/cli_json" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/search" -d '{"index":"test_ct","query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/insert" -d '{"index":"test_ct","id":100,"doc":{"title":"Insert Test","year":2024}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/replace" -d '{"index":"test_ct","id":100,"doc":{"title":"Replace Test","year":2025}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/update" -d '{"index":"test_ct","id":100,"doc":{"year":2026}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/delete" -d '{"index":"test_ct","id":100}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/autocomplete" -d '{"table":"test_ct","query":"te"}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/metrics" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/plain; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_search" -d '{"query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/test_ct/_search" -d '{"query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/_cat/indices" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/_nodes" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/index.html" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/html; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8test/clt-tests/http-interface/sql-mode-raw-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:23.566 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:23.566 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:23.567 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show version" | jq '.[0].data'
––– output –––
- [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings %{VERSION}"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show buddy plugins" | jq '.[0].data | .[0:3] | .[] | {Plugin, Type, Info}'
––– output –––
- {
- "Plugin": "empty-string",
- "Type": "core",
- "Info": "Handles empty queries, which can occur when trimming comments or dealing with specific SQL protocol instructions in comments that are not supported"
- }
- {
- "Plugin": "backup",
- "Type": "core",
- "Info": "BACKUP sql statement"
- }
- {
- "Plugin": "emulate-elastic",
- "Type": "core",
- "Info": "Emulates some Elastic queries and generates responses as if they were made by ES"
- }
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t where match('exmaple') option fuzzy=1" | jq '.[0].data'
––– output –––
- [
- {
- "id": 1,
- "value": "example",
- "value_attr": "example"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show fields from t" | jq '.[0].data'
––– output –––
- [
- {
- "Field": "id",
- "Type": "bigint",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- },
- {
- "Field": "value",
- "Type": "text",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- },
- {
- "Field": "value_attr",
- "Type": "string",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "create table t_copy like t" | jq '.[0] | {total, error, warning}'
––– output –––
- {
- "total": 0,
- "error": "",
- "warning": ""
- }
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show full tables" | jq '.[0].data'
––– output –––
- [
- {
- "Tables_in_Manticore": "t",
- "Table_type": "BASE TABLE"
- },
- {
- "Tables_in_Manticore": "t_copy",
- "Table_type": "BASE TABLE"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t limit 1" | jq '.[0].data'
––– output –––
- [
- {
- "id": 1,
- "value": "example",
- "value_attr": "example"
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=select%20count(*)%20from%20t" | jq '.[0].data'
––– output –––
- [
- {
- "count(*)": 2
- }
- ]test/clt-tests/http-interface/test-concurrent-requests-to-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:36.626 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:36.626 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:36.627 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s localhost:9308/cli -d 'debug sleep 30' &
––– output –––
OK
––– input –––
curl -s localhost:9308/cli -d 'show queries' | grep -q debug && echo "Success" || echo "Failure"
––– output –––
- Success
+ Failure |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mcl/auto-embeddings-backup-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:28.607 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:28.607 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:28.608 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_backup (
title TEXT,
content TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_backup (id, title, content, status) VALUES
(1, 'machine learning', 'neural networks', 1),
(2, 'deep learning', 'transformers', 1),
(3, 'computer vision', 'image processing', 2)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_backup; OPTIMIZE TABLE test_backup OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_backup WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title, content, KNN_DIST() as distance FROM test_backup WHERE KNN(vec, 3, 'artificial intelligence') ORDER BY distance"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- title: machine learning
- content: neural networks
- distance: 0.851733#!/[0-9]{0,5}/!#
- *************************** 2. row ***************************
- id: 3
- title: computer vision
- content: image processing
- distance: 1.13070#!/[0-9]{0,5}/!#
- *************************** 3. row ***************************
- id: 2
- title: deep learning
- content: transformers
- distance: 1.3117#!/[0-9]{0,5}/!#
––– input –––
manticore-backup --version | grep -c "Manticore Backup"
––– output –––
OK
––– input –––
mkdir -p /tmp/backup && chmod 777 /tmp/backup; echo $?
––– output –––
OK
––– input –––
manticore-backup --backup-dir=/tmp/backup --tables=test_backup 2>&1 | grep -c "Backing up table"
––– output –––
- 1
+ 0
––– input –––
ls -d /tmp/backup/backup-* | wc -l
––– output –––
- 1
+ ls: cannot access '/tmp/backup/backup-*': No such file or directory
+ 0
––– input –––
mysql -h0 -P9306 -e "FREEZE test_backup"
––– output –––
- +-----------------------------------------------------+-----------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | file | normalized |
- +-----------------------------------------------------+-----------------------------------------------------+
- | /var/lib/manticore/test_backup/test_backup.0.spc | /var/lib/manticore/test_backup/test_backup.0.spc |
- | /var/lib/manticore/test_backup/test_backup.0.spd | /var/lib/manticore/test_backup/test_backup.0.spd |
- | /var/lib/manticore/test_backup/test_backup.0.spds | /var/lib/manticore/test_backup/test_backup.0.spds |
- | /var/lib/manticore/test_backup/test_backup.0.spe | /var/lib/manticore/test_backup/test_backup.0.spe |
- | /var/lib/manticore/test_backup/test_backup.0.sph | /var/lib/manticore/test_backup/test_backup.0.sph |
- | /var/lib/manticore/test_backup/test_backup.0.sphi | /var/lib/manticore/test_backup/test_backup.0.sphi |
- | /var/lib/manticore/test_backup/test_backup.0.spi | /var/lib/manticore/test_backup/test_backup.0.spi |
- | /var/lib/manticore/test_backup/test_backup.0.spidx | /var/lib/manticore/test_backup/test_backup.0.spidx |
- | /var/lib/manticore/test_backup/test_backup.0.spknn | /var/lib/manticore/test_backup/test_backup.0.spknn |
- | /var/lib/manticore/test_backup/test_backup.0.spm | /var/lib/manticore/test_backup/test_backup.0.spm |
- | /var/lib/manticore/test_backup/test_backup.0.spp | /var/lib/manticore/test_backup/test_backup.0.spp |
- | /var/lib/manticore/test_backup/test_backup.0.spt | /var/lib/manticore/test_backup/test_backup.0.spt |
- | /var/lib/manticore/test_backup/test_backup.meta | /var/lib/manticore/test_backup/test_backup.meta |
- | /var/lib/manticore/test_backup/test_backup.settings | /var/lib/manticore/test_backup/test_backup.settings |
- +-----------------------------------------------------+-----------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_backup (id, title, content, status) VALUES (4, 'frozen insert', 'test data', 3)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "UNFREEZE test_backup"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 4 |
- +----------+
––– input –––
mysqldump -h0 -P9306 manticore test_backup > /tmp/logical_backup.sql 2>/dev/null; echo $?
––– output –––
- 0
+ 2
––– input –––
grep -c "INSERT INTO" /tmp/logical_backup.sql
––– output –––
- 1
+ 0
––– input –––
searchd --stopwait > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 1
––– input –––
rm -f /etc/manticoresearch/manticore.conf; rm -rf /var/lib/manticore/*; echo "Cleaned for restore"
––– output –––
OK
––– input –––
manticore-backup --backup-dir=/tmp/backup --restore 2>&1 | grep -c "backup-"
––– output –––
- 1
+ 0
––– input –––
BACKUP_NAME=$(manticore-backup --backup-dir=/tmp/backup --restore 2>&1 | grep backup- | awk '{print $1}' | head -1)
manticore-backup --backup-dir=/tmp/backup --restore=$BACKUP_NAME 2>&1 | grep -c "Starting to restore"
––– output –––
- 1
+ 0
––– input –––
searchd > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 1
––– input –––
echo "Waiting for searchd to start"; sleep 3
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_backup; OPTIMIZE TABLE test_backup OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_backup WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test_backup ADD COLUMN new_field INTEGER"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DESC test_backup" | grep "new_field"
––– output –––
- | new_field | uint | columnar fast_fetch |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_copy (
title TEXT,
content TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_copy (id, title, content, status) VALUES
(1, 'machine learning', 'neural networks', 1),
(2, 'deep learning', 'transformers', 1),
(3, 'computer vision', 'image processing', 2),
(4, 'frozen insert', 'test data', 3)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_copy"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 4 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_copy WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- | 4 |
- +------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_copy; OPTIMIZE TABLE test_copy OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_copy WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- | 4 |
- +------+test/clt-tests/expected-errors/test-system-variables-error-handling.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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:02.960 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:02.960 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:02.961 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE IF NOT EXISTS tbl (id bigint, value int); INSERT INTO tbl VALUES (1, 100), (2, 200);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT @@session.auto_increment_increment;"
––– output –––
- +------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@session.auto_increment_increment |
- +------------------------------------+
- | 1 |
- +------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client;"
––– output –––
- +------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_client |
- +------------------------+
- | utf8 |
- +------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_connection;"
––– output –––
- +----------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_connection |
- +----------------------------+
- | utf8 |
- +----------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@max_allowed_packet;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@max_allowed_packet |
- +----------------------+
- | 134217728 |
- +----------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@lower_case_table_names;"
––– output –––
- +--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@lower_case_table_names |
- +--------------------------+
- | 1 |
- +--------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@session.last_insert_id;"
––– output –––
- +--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@session.last_insert_id |
- +--------------------------+
- | 0 |
- +--------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@tx_isolation_eahhahfefhehfehf;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@tx_isolation_eahhahfefhehfehf
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@nonexistent_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@nonexistent_variable
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@random_name;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@random_name
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocomm;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@autocomm
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@character_set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@version;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@version |
- +-----------+
- | 8.0.43 |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit, @@nonexistent_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@nonexistent_variable
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client, @@tx_isolation_fake, @@max_allowed_packet;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@tx_isolation_fake
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysqldump -h0 -P9306 manticore tbl --no-data --column-statistics=0 --skip-comments --skip-opt --no-tablespaces > /tmp/dump.sql 2> >(grep -E -v "Warning: column statistics|Warning: version string returned by server is incorrect." >&2)
––– output –––
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
test -s /tmp/dump.sql && echo "Dump created successfully" || (echo "Dump is empty or failed!" && cat /tmp/dump.sql)
––– output –––
- Dump created successfully
+ Dump is empty or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE tbl;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 manticore < /tmp/dump.sql; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE tbl;"
––– output –––
- +-------+-----------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------+-----------------------------------------------+
- | tbl | CREATE TABLE tbl (
- id bigint,
- value integer
- ) |
- +-------+-----------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @user_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @nonexistent_user_var;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@123;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@123
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT @@`quoted_name`;'
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@`quoted_name`
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@very_long_variable_name_that_exceeds_normal_length_limits;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@very_long_variable_name_that_exceeds_normal_length_limits
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@AUTOCOMMIT;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AutoCommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
stdbuf -oL searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
echo -e "searchd {\nlisten = 9306:mysql\nlisten = 9308:http\nlog = /var/log/manticore/searchd.log\nquery_log = /var/log/manticore/query.log\npid_file = /run/manticore/searchd.pid\ndata_dir = /var/lib/manticore\nbuddy_path = \n}" > /tmp/manticore_without_buddy.conf; echo $?
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd -c /tmp/manticore_without_buddy.conf > /dev/null; if timeout 10 grep -qm1 'accepting connections' /var/log/manticore/searchd.log; then echo 'Searchd started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
- Searchd started!
+ Timeout or failed!
+ [Sun Mar 15 09:21:14.908 2026] [63] watchdog: main process 64 forked ok
+ [Sun Mar 15 09:21:14.908 2026] [64] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:14.909 2026] [63] watchdog: main process 64 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SELECT @@tx_isolation_eahhahfefhehfehf;"
––– output –––
- +---------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@tx_isolation_eahhahfefhehfehf |
- +---------------------------------+
- | <empty> |
- +---------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@nonexistent_variable;"
––– output –––
- +------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@nonexistent_variable |
- +------------------------+
- | <empty> |
- +------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@random_name;"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@random_name |
- +---------------+
- | <empty> |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocomm;"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocomm |
- +------------+
- | <empty> |
- +------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set |
- +-----------------+
- | <empty> |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@version;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@version |
- +-----------+
- | <empty> |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit, @@nonexistent_variable;"
––– output –––
- +--------------+------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit | @@nonexistent_variable |
- +--------------+------------------------+
- | 1 | <empty> |
- +--------------+------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client, @@tx_isolation_fake, @@max_allowed_packet;"
––– output –––
- +------------------------+---------------------+----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_client | @@tx_isolation_fake | @@max_allowed_packet |
- +------------------------+---------------------+----------------------+
- | utf8 | <empty> | 134217728 |
- +------------------------+---------------------+----------------------+
––– input –––
mysqldump -h0 -P9306 manticore tbl --no-data --skip-comments --skip-opt --no-tablespaces > /tmp/dump.sql 2> >(grep -E -v "Warning: column statistics|Warning: version string returned by server is incorrect." >&2)
––– output –––
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
test -s /tmp/dump.sql && echo "Dump created successfully" || (echo "Dump is empty or failed!" && cat /tmp/dump.sql)
––– output –––
- Dump created successfully
+ Dump is empty or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE tbl;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 manticore < /tmp/dump.sql; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE tbl;"
––– output –––
- +-------+-----------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------+-----------------------------------------------+
- | tbl | CREATE TABLE tbl (
- id bigint,
- value integer
- ) |
- +-------+-----------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @user_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @nonexistent_user_var;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@123;"
––– output –––
- +---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@123 |
- +---------+
- | <empty> |
- +---------+
––– input –––
mysql -h0 -P9306 -e 'SELECT @@`quoted_name`;'
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@`quoted_name` |
- +-----------------+
- | <empty> |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@very_long_variable_name_that_exceeds_normal_length_limits;"
––– output –––
- +-------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@very_long_variable_name_that_exceeds_normal_length_limits |
- +-------------------------------------------------------------+
- | <empty> |
- +-------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AUTOCOMMIT;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AutoCommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+test/clt-tests/mcl/auto-embeddings-dml-test.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:56.784 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:56.785 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:56.785 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_delete ( title TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title' ) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_delete (id, title) VALUES (1, 'One')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_delete WHERE id = 1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_delete"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 0 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_delete (id, title) VALUES (2,'Two'),(3,'Three'),(4,'Four'),(5,'Five')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_delete WHERE id IN (2,3,4)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_delete"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 5 |
- +------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_replace"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_replace ( title TEXT, price INTEGER, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title' ) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_replace (id, title, price) VALUES (1, 'Original', 100)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_replace (id, title, price) VALUES (1, 'Updated', 200)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT title, price FROM test_replace WHERE id = 1"
––– output –––
- +---------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title | price |
- +---------+-------+
- | Updated | 200 |
- +---------+-------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_vector_regen"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_vector_regen ( content TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_vector_regen (id, content) VALUES (1,'AI and ML'),(2,'Deep Learning'),(3,'Cooking')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vector_regen; OPTIMIZE TABLE test_vector_regen OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vector_regen WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- | 3 |
- +------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_vector_regen (id, content) VALUES (1, 'Cooking recipes')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vector_regen; OPTIMIZE TABLE test_vector_regen OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vector_regen WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 2 |
- | 3 |
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "TRUNCATE TABLE test_vector_regen"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_vector_regen"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 0 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_bulk"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bulk ( content TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='content' ) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {1..50}; do
mysql -h0 -P9306 -e "INSERT INTO test_bulk (id, content) VALUES ($i, 'Document $i')" 2>/dev/null
done
echo "Inserted 50 records"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_bulk WHERE id <= 10"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_bulk WHERE id >= 40"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_bulk"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 29 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_multi_vec"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_multi_vec ( title TEXT, description TEXT, title_vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title', desc_vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='description' ) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_multi_vec (id, title, description) VALUES (1,'Title1','Desc1'),(2,'Title2','Desc2')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_multi_vec WHERE id=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_multi_vec (id, title, description) VALUES (2,'NewTitle','NewDesc')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, title FROM test_multi_vec"
––– output –––
- +------+----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title |
- +------+----------+
- | 2 | NewTitle |
- +------+----------+test/clt-tests/expected-errors/test-lock-tables-errors.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_locks; CREATE TABLE test_locks (id BIGINT, title TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES nonexistent_table READ;"
––– output –––
- ERROR 1064 (42000) at line 1: Table nonexistent_table absent, or not suitable for lock
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks INVALID_MODE;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks INVALID_MODE'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES test_locks;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'UNLOCK TABLES test_locks'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLE test_locks READ;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLE test_locks READ'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ WRITE;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks READ WRITE'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; DROP TABLE test_locks;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_locks (id BIGINT, title TEXT); INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; INSERT INTO test_locks VALUES (2, 'forbidden');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'test_locks' is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (2, 'from_another_session');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table 'test_locks' is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5; mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_locks;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (2, 'session_2_after_lock_released');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_locks;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_locks WHERE id = 2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "UPDATE test_locks SET title = 'blocked' WHERE id = 1;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "DELETE FROM test_locks WHERE id = 1;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; UPDATE test_locks SET title = 'new' WHERE id = 1;"
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; DELETE FROM test_locks WHERE id = 1;"
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "DROP TABLE test_locks;" 2>&1 && echo "DROP succeeded from another session"
––– output –––
- DROP succeeded from another session
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 4
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_locks (id BIGINT, title TEXT); INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS other_table; CREATE TABLE other_table (id BIGINT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; SELECT * FROM other_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks WRITE; SELECT * FROM other_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 << 'EOF'
LOCK TABLES test_locks READ;
CREATE TABLE new_table (id BIGINT);
EOF
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_locks; DROP TABLE IF EXISTS other_table; DROP TABLE IF EXISTS new_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-fuzzy-search-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– 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
+ 255
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Failed to parse query
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: no such table 'non_existing_table'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/fulltext-search/test-name-of-fields-in-show-meta.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "drop table if exists pq;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "create table pq(f text) type='percolate'; insert into pq(id, query) values(1, 'abc'); call pq('pq', '{\"f\": \"abc\"}'); show meta;"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
- +-----------------------+-----------+
- | Variable name | Value |
- +-----------------------+-----------+
- | total | #!/[0-9]{1}.[0-9]{3}/!# sec |
- | queries_matched | 1 |
- | queries_failed | 0 |
- | document_matched | 1 |
- | total_queries_stored | 1 |
- | term_only_queries | 1 |
- | fast_rejected_queries | 0 |
- +-----------------------+-----------+test/clt-tests/mcl/auto-embeddings-concurrent.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:44.987 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:44.988 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:44.988 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_concurrent (
title TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {1..20}; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES ($i, 'Document $i', 0)" 2>/dev/null
done
echo "Initial insert completed"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_concurrent; OPTIMIZE TABLE test_concurrent OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {21..30}; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES ($i, 'New doc $i', 1)" 2>/dev/null &
done
for i in {1..5}; do
mysql -h0 -P9306 -e "DELETE FROM test_concurrent WHERE id = $i" 2>/dev/null &
done
for i in {6..10}; do
mysql -h0 -P9306 -e "REPLACE INTO test_concurrent (id, title, status) VALUES ($i, 'Replaced doc $i', 2)" 2>/dev/null &
done
wait
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_concurrent"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 25 |
- +-------+
––– input –––
rm -f /tmp/race_test.err
for i in {1..10}; do
(mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES (999, 'Race $i', $i)" 2>>/tmp/race_test.err) &
done
wait; echo $?
––– output –––
OK
––– input –––
wc -l /tmp/race_test.err | awk '{print $1 " error lines in file"}'
––– output –––
OK
––– input –––
grep -c "duplicate id" /tmp/race_test.err
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_concurrent WHERE id = 999"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
for i in {11..15}; do
mysql -h0 -P9306 -e "REPLACE INTO test_concurrent (id, title, status) VALUES ($i, 'Updated doc $i', 3)" 2>/dev/null &
done
wait
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_concurrent; OPTIMIZE TABLE test_concurrent OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, KNN_DIST() as dist FROM test_concurrent WHERE KNN(vec, 5, 'Updated doc') LIMIT 5"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | dist |
- +------+------------+
- | 13 | #!/0\.318[0-9]*/!# |
- | 11 | #!/0\.331[0-9]*/!# |
- | 12 | #!/0\.333[0-9]*/!# |
- | 14 | #!/0\.342[0-9]*/!# |
- | 15 | #!/0\.351[0-9]*/!# |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_concurrent WHERE KNN(vec, 5, 'Updated doc') LIMIT 5"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 13 |
- | 11 |
- | 12 |
- | 14 |
- | 15 |
- +------+
––– input –––
for test_num in {1..3}; do
rm -f /tmp/test${test_num}.err
mysql -h0 -P9306 -e "CREATE TABLE race$test_num (title TEXT)" 2>/dev/null
for i in {1..10}; do
(stdbuf -oL mysql -h0 -P9306 -e "INSERT INTO race$test_num (id, title) VALUES (888, 'test')" 2>>/tmp/test${test_num}.err) &
done
wait
echo "Test $test_num: $(wc -l /tmp/test${test_num}.err | awk '{print $1}') lines, $(grep -c 'duplicate' /tmp/test${test_num}.err) duplicate errors"
done
––– output –––
OKtest/clt-tests/expected-errors/test-fuzzy-sql-endpoint-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:13.348 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:13.348 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:13.349 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE neg_test (id INT, content TEXT) min_infix_len='2'; INSERT INTO neg_test VALUES (1, 'test data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy='1'"
––– output –––
- {"error":"Invalid value for option 'fuzzy'"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=-1"
––– output –––
- {"error":"P01: syntax error, unexpected '-' near '-1'"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=abc"
––– output –––
- {"error":"Invalid value for option 'fuzzy'"}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE no_infix (id INT, content TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from no_infix option fuzzy=1"
––– output –––
- {"error":"The 'fuzzy' option requires a full-text query. Use: MATCH('search query') or MATCH('search query', table_name)"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "insert into neg_test values (2, 'new data')"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "create table new_table (id int)"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "drop table neg_test"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=1 layouts=''"
––– output –––
- {"error":"Invalid options in query string, make sure they are separated by commas"} |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/test-manticore-handling-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "drop table if exists test; create table test; insert into test values(1)" > /dev/null; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables; select * from test;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | test | rt |
- +-------+------+
- +------+
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s localhost:9308/test/_search -d '{}' |jq .
––– output –––
- {
- "took": 0,
- "timed_out": false,
- "_shards": {
- "total": 1,
- "successful": 1,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": 1,
- "total_relation": "eq",
- "max_score": null,
- "hits": [
- {
- "_id": "1",
- "_score": 1,
- "_index": "test",
- "_type": "doc",
- "_version": 1,
- "_source": {}
- }
- ]
- },
- "status": 200
- }test/clt-tests/mysqldump/mysql/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/indexer/test-max-iosize.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
for n in $(seq 1 10000); do echo "$n,abc"; done > /tmp/csv
––– output –––
OK
––– input –––
echo -e 'indexer {\n max_iops = 100\n}\nsource src {\n type = csvpipe\n csvpipe_command = cat /tmp/csv\n csvpipe_field = f\n}\n\nindex idx {\n type = plain\n source = src\n path = /tmp/idx\n}' > plain_min.conf
––– output –––
OK
––– input –––
cat plain_min.conf
––– output –––
OK
––– input –––
indexer -c plain_min.conf idx|grep reads|awk '{print $2}'
––– output –––
OKtest/clt-tests/indexer/test-max-iops.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
(for n in `seq 1 100`; do echo "$n,abc"; done) > /tmp/csv
––– output –––
OK
––– input –––
echo -e 'indexer {\n max_iops = 100\n}\nsource src {\n type = csvpipe\n csvpipe_command = cat /tmp/csv\n csvpipe_field = f\n}\n\nindex idx {\n type = plain\n source = src\n path = /tmp/idx\n}' > plain_min.conf
––– output –––
OK
––– input –––
cat plain_min.conf
––– output –––
OK
––– input –––
indexer -c plain_min.conf idx|grep reads|awk '{print $2}'
––– output –––
OKtest/clt-tests/join/test-avg-select-join.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load --drop --batch-size=1000 --threads=5 --total=10000 --init="CREATE TABLE products(id bigint, name text, category multi)" --load="INSERT INTO products(id, name, category) VALUES(<increment>, '<text/2/10>', (<array/1/3/1/1000>))" --together --drop --batch-size=10000 --threads=5 --total=100000 --init="create table reviews(product_id bigint, user_id int, rating int, comment text)" --load="insert into reviews(product_id, user_id, rating, comment) values(<int/1/10000>, <int/1/1000>, <int/1/100>, '<text/20/100>')" --quiet > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "select id, count(*), avg(reviews.rating) avg_rating from products left join reviews on reviews.product_id = products.id group by id order by count(*) desc; select id, count(*) from products left join reviews on reviews.product_id = products.id group by id order by count(*) desc"
––– output –––
- +------+----------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | count(*) | avg_rating |
- +------+----------+-------------+
- | 1589 | 23 | 58.65217391 |
- | 477 | 22 | 59.81818182 |
- | 5584 | 22 | 59.63636364 |
- | 2632 | 22 | 38.54545455 |
- | 805 | 22 | 57.86363636 |
- | 4982 | 22 | 50.27272727 |
- | 2031 | 21 | 60.19047619 |
- | 6057 | 21 | 46.66666667 |
- | 5077 | 21 | 37.38095238 |
- | 214 | 21 | 63.19047619 |
- | 366 | 21 | 51.61904762 |
- | 1498 | 21 | 55.23809524 |
- | 5667 | 21 | 48.90476190 |
- | 5682 | 21 | 37.14285714 |
- | 6721 | 21 | 49.14285714 |
- | 3993 | 21 | 49.76190476 |
- | 1014 | 20 | 58.250000 |
- | 79 | 20 | 43.100000 |
- | 7158 | 20 | 62.400000 |
- | 5162 | 20 | 57.600000 |
- +------+----------+-------------+
- +------+----------+
- | id | count(*) |
- +------+----------+
- | 1589 | 23 |
- | 477 | 22 |
- | 5584 | 22 |
- | 2632 | 22 |
- | 805 | 22 |
- | 4982 | 22 |
- | 2031 | 21 |
- | 6057 | 21 |
- | 5077 | 21 |
- | 214 | 21 |
- | 366 | 21 |
- | 1498 | 21 |
- | 5667 | 21 |
- | 5682 | 21 |
- | 6721 | 21 |
- | 3993 | 21 |
- | 1014 | 20 |
- | 79 | 20 |
- | 7158 | 20 |
- | 5162 | 20 |
- +------+----------+
––– input –––
mysql -P9306 -h0 -e "SELECT COUNT(*) FROM products; SELECT COUNT(*) FROM reviews;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 10000 |
- +----------+
- +----------+
- | count(*) |
- +----------+
- | 100000 |
- +----------+test/clt-tests/kibana/test-kibana-log-to-test-script.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:51.274 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:51.275 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:51.275 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X HEAD -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.apm-agent-configuration'
––– output –––
- {"error":{"type":"index_not_found_exception","reason":"no such index [.apm-agent-configuration]","table":".apm-agent-configuration"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 602' -H 'Connection: keep-alive' -d '{"settings":{"index.auto_expand_replicas":"0-1"},"mappings":{"properties":{"@timestamp":{"type":"date"},"service":{"properties":{"name":{"type":"keyword","ignore_above":1024},"environment":{"type":"keyword","ignore_above":1024}}},"settings":{"properties":{"transaction_sample_rate":{"type":"scaled_float","scaling_factor":1000,"ignore_malformed":true,"coerce":false},"capture_body":{"type":"keyword","ignore_above":1024},"transaction_max_spans":{"type":"short"}}},"applied_by_agent":{"type":"boolean"},"agent_name":{"type":"keyword","ignore_above":1024},"etag":{"type":"keyword","ignore_above":1024}}}}' 'localhost:9308/.apm-agent-configuration'
––– output –––
- {"acknowledged":true,"index":".apm-agent-configuration","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana'
––– output –––
- {"error":{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","root_cause":[{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager'
––– output –––
- {"error":{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","root_cause":[{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana'
––– output –––
- {"error":{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","root_cause":[{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager'
––– output –––
- {"error":{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","root_cause":[{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_cat/templates/kibana_index_template*?format=json'
––– output –––
- []
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1225' -H 'Connection: keep-alive' -d '{"mappings":{"dynamic":"strict","properties":{"config":{"dynamic":"true","properties":{"buildNum":{"type":"keyword"}}},"migrationVersion":{"dynamic":"true","type":"object"},"type":{"type":"keyword"},"namespace":{"type":"keyword"},"updated_at":{"type":"date"},"references":{"type":"nested","properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"id":{"type":"keyword"}}},"task":{"properties":{"taskType":{"type":"keyword"},"scheduledAt":{"type":"date"},"runAt":{"type":"date"},"startedAt":{"type":"date"},"retryAt":{"type":"date"},"schedule":{"properties":{"interval":{"type":"keyword"}}},"attempts":{"type":"integer"},"status":{"type":"keyword"},"params":{"type":"text"},"state":{"type":"text"},"user":{"type":"keyword"},"scope":{"type":"keyword"},"ownerId":{"type":"keyword"}}}},"_meta":{"migrationMappingPropertyHashes":{"config":"87aca8fdb053154f11383fce3dbf3edf","migrationVersion":"4a1746014a75ade3a714e1db5763276f","type":"2f4316de49999235636386fe51dc06c1","namespace":"2f4316de49999235636386fe51dc06c1","updated_at":"00da57df13e94e9d98437d13ace4bfe0","references":"7997cf5a56cc02bdc9c93361bde732b0","task":"235412e52d09e7165fac8a67a43ad6b4"}}},"settings":{"number_of_shards":1,"auto_expand_replicas":"0-1"}}' 'localhost:9308/.kibana_task_manager_1'
––– output –––
- {"acknowledged":true,"index":".kibana_task_manager_1","shards_acknowledged":true}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 15115' -H 'Connection: keep-alive' -d '{"mappings":{"dynamic":"strict","properties":{"config":{"dynamic":"true","properties":{"buildNum":{"type":"keyword"}}},"migrationVersion":{"dynamic":"true","type":"object"},"type":{"type":"keyword"},"namespace":{"type":"keyword"},"updated_at":{"type":"date"},"references":{"type":"nested","properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"id":{"type":"keyword"}}},"graph-workspace":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"numLinks":{"type":"integer"},"numVertices":{"type":"integer"},"title":{"type":"text"},"version":{"type":"integer"},"wsState":{"type":"text"}}},"space":{"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":2048}}},"description":{"type":"text"},"initials":{"type":"keyword"},"color":{"type":"keyword"},"disabledFeatures":{"type":"keyword"},"imageUrl":{"type":"text","index":false},"_reserved":{"type":"boolean"}}},"ml-telemetry":{"properties":{"file_data_visualizer":{"properties":{"index_creation_count":{"type":"long"}}}}},"apm-services-telemetry":{"properties":{"has_any_services":{"type":"boolean"},"services_per_agent":{"properties":{"python":{"type":"long","null_value":0},"java":{"type":"long","null_value":0},"nodejs":{"type":"long","null_value":0},"js-base":{"type":"long","null_value":0},"rum-js":{"type":"long","null_value":0},"dotnet":{"type":"long","null_value":0},"ruby":{"type":"long","null_value":0},"go":{"type":"long","null_value":0}}}}},"apm-indices":{"properties":{"apm_oss.sourcemapIndices":{"type":"keyword"},"apm_oss.errorIndices":{"type":"keyword"},"apm_oss.onboardingIndices":{"type":"keyword"},"apm_oss.spanIndices":{"type":"keyword"},"apm_oss.transactionIndices":{"type":"keyword"},"apm_oss.metricsIndices":{"type":"keyword"}}},"map":{"properties":{"description":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"},"bounds":{"type":"geo_shape"},"mapStateJSON":{"type":"text"},"layerListJSON":{"type":"text"},"uiStateJSON":{"type":"text"}}},"maps-telemetry":{"properties":{"settings":{"properties":{"showMapVisualizationTypes":{"type":"boolean"}}},"indexPatternsWithGeoFieldCount":{"type":"long"},"mapsTotalCount":{"type":"long"},"timeCaptured":{"type":"date"},"attributesPerMap":{"properties":{"dataSourcesCount":{"properties":{"min":{"type":"long"},"max":{"type":"long"},"avg":{"type":"long"}}},"layersCount":{"properties":{"min":{"type":"long"},"max":{"type":"long"},"avg":{"type":"long"}}},"layerTypesCount":{"dynamic":"true","properties":{}},"emsVectorLayersCount":{"dynamic":"true","properties":{}}}}}},"canvas-workpad":{"dynamic":false,"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword"}}},"@timestamp":{"type":"date"},"@created":{"type":"date"}}},"canvas-element":{"dynamic":false,"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword"}}},"help":{"type":"text"},"content":{"type":"text"},"image":{"type":"text"},"@timestamp":{"type":"date"},"@created":{"type":"date"}}},"infrastructure-ui-source":{"properties":{"name":{"type":"text"},"description":{"type":"text"},"metricAlias":{"type":"keyword"},"logAlias":{"type":"keyword"},"fields":{"properties":{"container":{"type":"keyword"},"host":{"type":"keyword"},"pod":{"type":"keyword"},"tiebreaker":{"type":"keyword"},"timestamp":{"type":"keyword"}}},"logColumns":{"type":"nested","properties":{"timestampColumn":{"properties":{"id":{"type":"keyword"}}},"messageColumn":{"properties":{"id":{"type":"keyword"}}},"fieldColumn":{"properties":{"id":{"type":"keyword"},"field":{"type":"keyword"}}}}}}},"metrics-explorer-view":{"properties":{"name":{"type":"keyword"},"options":{"properties":{"metrics":{"type":"nested","properties":{"aggregation":{"type":"keyword"},"field":{"type":"keyword"},"color":{"type":"keyword"},"label":{"type":"keyword"}}},"limit":{"type":"integer"},"groupBy":{"type":"keyword"},"filterQuery":{"type":"keyword"},"aggregation":{"type":"keyword"}}},"chartOptions":{"properties":{"type":{"type":"keyword"},"yAxisMode":{"type":"keyword"},"stack":{"type":"boolean"}}},"currentTimerange":{"properties":{"from":{"type":"keyword"},"to":{"type":"keyword"},"interval":{"type":"keyword"}}}}},"inventory-view":{"properties":{"name":{"type":"keyword"},"metric":{"properties":{"type":{"type":"keyword"}}},"groupBy":{"type":"nested","properties":{"label":{"type":"keyword"},"field":{"type":"keyword"}}},"nodeType":{"type":"keyword"},"view":{"type":"keyword"},"customOptions":{"type":"nested","properties":{"text":{"type":"keyword"},"field":{"type":"keyword"}}},"boundsOverride":{"properties":{"max":{"type":"integer"},"min":{"type":"integer"}}},"autoBounds":{"type":"boolean"},"time":{"type":"integer"},"autoReload":{"type":"boolean"},"filterQuery":{"properties":{"kind":{"type":"keyword"},"expression":{"type":"keyword"}}}}},"siem-ui-timeline":{"properties":{"columns":{"properties":{"aggregatable":{"type":"boolean"},"category":{"type":"keyword"},"columnHeaderType":{"type":"keyword"},"description":{"type":"text"},"example":{"type":"text"},"indexes":{"type":"keyword"},"id":{"type":"keyword"},"name":{"type":"text"},"placeholder":{"type":"text"},"searchable":{"type":"boolean"},"type":{"type":"keyword"}}},"dataProviders":{"properties":{"id":{"type":"keyword"},"name":{"type":"text"},"enabled":{"type":"boolean"},"excluded":{"type":"boolean"},"kqlQuery":{"type":"text"},"queryMatch":{"properties":{"field":{"type":"text"},"displayField":{"type":"text"},"value":{"type":"text"},"displayValue":{"type":"text"},"operator":{"type":"text"}}},"and":{"properties":{"id":{"type":"keyword"},"name":{"type":"text"},"enabled":{"type":"boolean"},"excluded":{"type":"boolean"},"kqlQuery":{"type":"text"},"queryMatch":{"properties":{"field":{"type":"text"},"displayField":{"type":"text"},"value":{"type":"text"},"displayValue":{"type":"text"},"operator":{"type":"text"}}}}}}},"description":{"type":"text"},"eventType":{"type":"keyword"},"favorite":{"properties":{"keySearch":{"type":"text"},"fullName":{"type":"text"},"userName":{"type":"text"},"favoriteDate":{"type":"date"}}},"filters":{"properties":{"meta":{"properties":{"alias":{"type":"text"},"controlledBy":{"type":"text"},"disabled":{"type":"boolean"},"field":{"type":"text"},"formattedValue":{"type":"text"},"index":{"type":"keyword"},"key":{"type":"keyword"},"negate":{"type":"boolean"},"params":{"type":"text"},"type":{"type":"keyword"},"value":{"type":"text"}}},"exists":{"type":"text"},"match_all":{"type":"text"},"missing":{"type":"text"},"query":{"type":"text"},"range":{"type":"text"},"script":{"type":"text"}}},"kqlMode":{"type":"keyword"},"kqlQuery":{"properties":{"filterQuery":{"properties":{"kuery":{"properties":{"kind":{"type":"keyword"},"expression":{"type":"text"}}},"serializedQuery":{"type":"text"}}}}},"title":{"type":"text"},"dateRange":{"properties":{"start":{"type":"date"},"end":{"type":"date"}}},"savedQueryId":{"type":"keyword"},"sort":{"properties":{"columnId":{"type":"keyword"},"sortDirection":{"type":"keyword"}}},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-ui-timeline-note":{"properties":{"timelineId":{"type":"keyword"},"eventId":{"type":"keyword"},"note":{"type":"text"},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-ui-timeline-pinned-event":{"properties":{"timelineId":{"type":"keyword"},"eventId":{"type":"keyword"},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-detection-engine-rule-status":{"properties":{"alertId":{"type":"keyword"},"status":{"type":"keyword"},"statusDate":{"type":"date"},"lastFailureAt":{"type":"date"},"lastSuccessAt":{"type":"date"},"lastFailureMessage":{"type":"text"},"lastSuccessMessage":{"type":"text"}}},"upgrade-assistant-reindex-operation":{"dynamic":true,"properties":{"indexName":{"type":"keyword"},"status":{"type":"integer"}}},"upgrade-assistant-telemetry":{"properties":{"ui_open":{"properties":{"overview":{"type":"long","null_value":0},"cluster":{"type":"long","null_value":0},"indices":{"type":"long","null_value":0}}},"ui_reindex":{"properties":{"close":{"type":"long","null_value":0},"open":{"type":"long","null_value":0},"start":{"type":"long","null_value":0},"stop":{"type":"long","null_value":0}}},"features":{"properties":{"deprecation_logging":{"properties":{"enabled":{"type":"boolean","null_value":true}}}}}}},"file-upload-telemetry":{"properties":{"filesUploadedTotalCount":{"type":"long"}}},"lens":{"properties":{"title":{"type":"text"},"visualizationType":{"type":"keyword"},"state":{"type":"flattened"},"expression":{"index":false,"type":"keyword"}}},"lens-ui-telemetry":{"properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"date":{"type":"date"},"count":{"type":"integer"}}},"action":{"properties":{"name":{"type":"text"},"actionTypeId":{"type":"keyword"},"config":{"enabled":false,"type":"object"},"secrets":{"type":"binary"}}},"action_task_params":{"properties":{"actionId":{"type":"keyword"},"params":{"enabled":false,"type":"object"},"apiKey":{"type":"binary"}}},"alert":{"properties":{"enabled":{"type":"boolean"},"name":{"type":"text"},"tags":{"type":"keyword"},"alertTypeId":{"type":"keyword"},"schedule":{"properties":{"interval":{"type":"keyword"}}},"consumer":{"type":"keyword"},"actions":{"type":"nested","properties":{"group":{"type":"keyword"},"actionRef":{"type":"keyword"},"actionTypeId":{"type":"keyword"},"params":{"enabled":false,"type":"object"}}},"params":{"enabled":false,"type":"object"},"scheduledTaskId":{"type":"keyword"},"createdBy":{"type":"keyword"},"updatedBy":{"type":"keyword"},"createdAt":{"type":"date"},"apiKey":{"type":"binary"},"apiKeyOwner":{"type":"keyword"},"throttle":{"type":"keyword"},"muteAll":{"type":"boolean"},"mutedInstanceIds":{"type":"keyword"}}},"query":{"properties":{"title":{"type":"text"},"description":{"type":"text"},"query":{"properties":{"language":{"type":"keyword"},"query":{"type":"keyword","index":false}}},"filters":{"type":"object","enabled":false},"timefilter":{"type":"object","enabled":false}}},"index-pattern":{"properties":{"fieldFormatMap":{"type":"text"},"fields":{"type":"text"},"intervalName":{"type":"keyword"},"notExpandable":{"type":"boolean"},"sourceFilters":{"type":"text"},"timeFieldName":{"type":"keyword"},"title":{"type":"text"},"type":{"type":"keyword"},"typeMeta":{"type":"keyword"}}},"visualization":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"savedSearchRefName":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"},"visState":{"type":"text"}}},"search":{"properties":{"columns":{"type":"keyword"},"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"sort":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"dashboard":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"optionsJSON":{"type":"text"},"panelsJSON":{"type":"text"},"refreshInterval":{"properties":{"display":{"type":"keyword"},"pause":{"type":"boolean"},"section":{"type":"integer"},"value":{"type":"integer"}}},"timeFrom":{"type":"keyword"},"timeRestore":{"type":"boolean"},"timeTo":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"url":{"properties":{"accessCount":{"type":"long"},"accessDate":{"type":"date"},"createDate":{"type":"date"},"url":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":2048}}}}},"server":{"properties":{"uuid":{"type":"keyword"}}},"kql-telemetry":{"properties":{"optInCount":{"type":"long"},"optOutCount":{"type":"long"}}},"sample-data-telemetry":{"properties":{"installCount":{"type":"long"},"unInstallCount":{"type":"long"}}},"telemetry":{"properties":{"enabled":{"type":"boolean"},"sendUsageFrom":{"ignore_above":256,"type":"keyword"},"lastReported":{"type":"date"},"lastVersionChecked":{"ignore_above":256,"type":"keyword"},"userHasSeenNotice":{"type":"boolean"}}},"timelion-sheet":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"timelion_chart_height":{"type":"integer"},"timelion_columns":{"type":"integer"},"timelion_interval":{"type":"keyword"},"timelion_other_interval":{"type":"keyword"},"timelion_rows":{"type":"integer"},"timelion_sheet":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"}}},"ui-metric":{"properties":{"count":{"type":"integer"}}},"tsvb-validation-telemetry":{"properties":{"failedRequests":{"type":"long"}}}},"_meta":{"migrationMappingPropertyHashes":{"config":"87aca8fdb053154f11383fce3dbf3edf","migrationVersion":"4a1746014a75ade3a714e1db5763276f","type":"2f4316de49999235636386fe51dc06c1","namespace":"2f4316de49999235636386fe51dc06c1","updated_at":"00da57df13e94e9d98437d13ace4bfe0","references":"7997cf5a56cc02bdc9c93361bde732b0","graph-workspace":"cd7ba1330e6682e9cc00b78850874be1","space":"c5ca8acafa0beaa4d08d014a97b6bc6b","ml-telemetry":"257fd1d4b4fdbb9cb4b8a3b27da201e9","apm-services-telemetry":"07ee1939fa4302c62ddc052ec03fed90","apm-indices":"9bb9b2bf1fa636ed8619cbab5ce6a1dd","map":"23d7aa4a720d4938ccde3983f87bd58d","maps-telemetry":"268da3a48066123fc5baf35abaa55014","canvas-workpad":"b0a1706d356228dbdcb4a17e6b9eb231","canvas-element":"7390014e1091044523666d97247392fc","infrastructure-ui-source":"ddc0ecb18383f6b26101a2fadb2dab0c","metrics-explorer-view":"53c5365793677328df0ccb6138bf3cdd","inventory-view":"84b320fd67209906333ffce261128462","siem-ui-timeline":"ac8020190f5950dd3250b6499144e7fb","siem-ui-timeline-note":"8874706eedc49059d4cf0f5094559084","siem-ui-timeline-pinned-event":"20638091112f0e14f0e443d512301c29","siem-detection-engine-rule-status":"0367e4d775814b56a4bee29384f9aafe","upgrade-assistant-reindex-operation":"a53a20fe086b72c9a86da3cc12dad8a6","upgrade-assistant-telemetry":"56702cec857e0a9dacfb696655b4ff7b","file-upload-telemetry":"0ed4d3e1983d1217a30982630897092e","lens":"21c3ea0763beb1ecb0162529706b88c5","lens-ui-telemetry":"509bfa5978586998e05f9e303c07a327","action":"c0c235fba02ebd2a2412bcda79009b58","action_task_params":"a9d49f184ee89641044be0ca2950fa3a","alert":"e588043a01d3d43477e7cad7efa0f5d8","query":"11aaeb7f5f7fa5bb43f25e18ce26e7d9","index-pattern":"66eccb05066c5a89924f48a9e9736499","visualization":"52d7a13ad68a150c4525b292d23e12cc","search":"181661168bbadd1eff5902361e2a0d5c","dashboard":"d00f614b29a80360e1190193fd333bab","url":"c7f66a0df8b1b52f17c28c4adb111105","server":"ec97f1c5da1a19609a60874e5af1100c","kql-telemetry":"d12a98a6f19a2d273696597547e064ee","sample-data-telemetry":"7d3cfeb915303c9641c59681967ffeb4","telemetry":"358ffaa88ba34a97d55af0933a117de4","timelion-sheet":"9a2a2748877c7a7b582fef201ab1d4cf","ui-metric":"0d409297dc5ebe1e3a1da691c6ee32e3","tsvb-validation-telemetry":"3a37ef6c8700ae6fc97d5c7da00e9215"}}},"settings":{"number_of_shards":1,"auto_expand_replicas":"0-1"}}' 'localhost:9308/.kibana_1'
––– output –––
- {"acknowledged":true,"index":".kibana_1","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_alias/.kibana_task_manager'
––– output –––
- []
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_alias/.kibana'
––– output –––
- []
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 87' -H 'Connection: keep-alive' -d '{"actions":[{"add":{"index":".kibana_task_manager_1","alias":".kibana_task_manager"}}]}' 'localhost:9308/_aliases'
––– output –––
- {"acknowledged":"true"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 61' -H 'Connection: keep-alive' -d '{"actions":[{"add":{"index":".kibana_1","alias":".kibana"}}]}' 'localhost:9308/_aliases'
––– output –––
- {"acknowledged":"true"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager_1/_refresh'
––– output –––
- { "_shards": { "total": 1, "successful": 1, "failed": 0 } }
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_1/_refresh'
––– output –––
- { "_shards": { "total": 1, "successful": 1, "failed": 0 } }
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1307' -H 'Connection: keep-alive' -d '{"index_patterns":[".management-beats"],"version":70000,"settings":{"index":{"number_of_shards":1,"auto_expand_replicas":"0-1","codec":"best_compression"}},"mappings":{"dynamic":"strict","properties":{"type":{"type":"keyword"},"configuration_block":{"properties":{"id":{"type":"keyword"},"type":{"type":"keyword"},"tag":{"type":"keyword"},"description":{"type":"text"},"config":{"type":"keyword"},"last_updated":{"type":"date"}}},"enrollment_token":{"properties":{"token":{"type":"keyword"},"expires_on":{"type":"date"}}},"tag":{"properties":{"id":{"type":"keyword"},"name":{"type":"keyword"},"color":{"type":"keyword"},"hasConfigurationBlocksTypes":{"type":"keyword"}}},"beat":{"properties":{"id":{"type":"keyword"},"status":{"properties":{"type":{"type":"keyword"},"timestamp":{"type":"date"},"event":{"properties":{"type":{"type":"keyword"},"message":{"type":"text"},"uuid":{"type":"keyword"}}}}},"active":{"type":"boolean"},"last_checkin":{"type":"date"},"enrollment_token":{"type":"keyword"},"access_token":{"type":"keyword"},"verified_on":{"type":"date"},"type":{"type":"keyword"},"version":{"type":"keyword"},"host_ip":{"type":"ip"},"host_name":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"tags":{"type":"keyword"},"metadata":{"dynamic":"true","type":"object"},"name":{"type":"keyword"}}}}}}' 'localhost:9308/_template/.management-beats'
––– output –––
- {"acknowledged":true,"index":"_template","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 354' -H 'Connection: keep-alive' -d '{"seq_no_primary_term":true,"query":{"bool":{"filter":[{"bool":{"should":[{"bool":{"must":[{"term":{"type":"upgrade-assistant-reindex-operation"}}],"must_not":[{"exists":{"field":"namespace"}}]}}],"minimum_should_match":1}}],"must":[{"simple_query_string":{"query":"0","fields":["upgrade-assistant-reindex-operation.status"],"default_operator":"OR"}}]}}}' 'localhost:9308/.kibana/_search?size=20&from=0&rest_total_hits_as_int=true'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana/_doc/space%3Adefault'
––– output –––
- {"_id":"space:default","_index":".kibana_1","_type":"_doc","found":false}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 237' -H 'Connection: keep-alive' -d '{"space":{"name":"Default","description":"This is your default space!","color":"#00bfb3","disabledFeatures":[],"_reserved":true},"type":"space","references":[],"migrationVersion":{"space":"6.6.0"},"updated_at":"2025-04-16T12:06:54.147Z"}' 'localhost:9308/.kibana/_create/space%3Adefault?refresh=wait_for'
––– output –––
- {"_id":"space:default","_index":".kibana_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X HEAD --max-time 5 -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/'
––– output –––
OK
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_cluster/settings?include_defaults=true'
––– output –––
- {"defaults":{"action":{"auto_create_index":"true","destructive_requires_name":"false","search":{"shard_count":{"limit":9223372036854775807}}},"bootstrap":{"ctrlhandler":"true","memory_lock":"false","system_call_filter":"true"},"cache":{"recycler":{"page":{"limit":{"heap":"10%"},"type":"CONCURRENT","weight":{"bytes":1.000000,"ints":1.000000,"longs":1.000000,"objects":0.100000}}}},"ccr":{"auto_follow":{"wait_for_metadata_timeout":"60s"},"indices":{"recovery":{"chunk_size":"1mb","internal_action_timeout":"60s","max_bytes_per_sec":"40mb","max_concurrent_file_chunks":5,"recovery_activity_timeout":"60s"}},"wait_for_metadata_timeout":"60s"},"client":{"transport":{"ignore_cluster_name":"false","nodes_sampler_interval":"5s","ping_timeout":"5s","sniff":"false"},"type":"node"},"cluster":{"auto_shrink_voting_configuration":"true","blocks":{"read_only":"false","read_only_allow_delete":"false"},"election":{"back_off_time":"100ms","duration":"500ms","initial_timeout":"100ms","max_timeout":"10s","strategy":"supports_voting_only"},"fault_detection":{"follower_check":{"interval":"1000ms","retry_count":3,"timeout":"10000ms"},"leader_check":{"interval":"1000ms","retry_count":3,"timeout":"10000ms"}},"follower_lag":{"timeout":"90000ms"},"indices":{"close":{"enable":"true"},"tombstones":{"size":500}},"info":{"update":{"interval":"30s","timeout":"15s"}},"initial_master_nodes":[],"join":{"timeout":"60000ms"},"max_shards_per_node":1000,"max_voting_config_exclusions":10,"name":"docker-cluster","no_master_block":"write","nodes":{"reconnect_interval":"10s"},"persistent_tasks":{"allocation":{"enable":"all","recheck_interval":"30s"}},"publish":{"info_timeout":"10000ms","timeout":"30000ms"},"remote":{"connect":"true","connections_per_cluster":3,"initial_connect_timeout":"30s","node":{"attr":""}},"routing":{"allocation":{"allow_rebalance":"indices_all_active","awareness":{"attributes":[]},"balance":{"index":0.550000,"shard":0.450000,"threshold":1.000000},"cluster_concurrent_rebalance":2,"disk":{"include_relocations":"true","reroute_interval":"60s","threshold_enabled":"true","watermark":{"flood_stage":"95%","high":"90%","low":"85%"}},"enable":"all","node_concurrent_incoming_recoveries":2,"node_concurrent_outgoing_recoveries":2,"node_concurrent_recoveries":2,"node_initial_primaries_recoveries":4,"same_shard":{"host":"false"},"shard_state":{"reroute":{"priority":"NORMAL"}},"total_shards_per_node":-1,"type":"balanced"},"rebalance":{"enable":"all"},"use_adaptive_replica_selection":"true"},"service":{"slow_master_task_logging_threshold":"10s","slow_task_logging_threshold":"30s"}},"discovery":{"cluster_formation_warning_timeout":"10000ms","find_peers_interval":"1000ms","initial_state_timeout":"30s","request_peers_timeout":"3000ms","seed_hosts":[],"seed_providers":[],"seed_resolver":{"max_concurrent_resolvers":10,"timeout":"5s"},"type":"single-node","unconfigured_bootstrap_timeout":"3s","zen":{"bwc_ping_timeout":"3s","commit_timeout":"30s","fd":{"connect_on_network_disconnect":"false","ping_interval":"1s","ping_retries":3,"ping_timeout":"30s","register_connection_listener":"true"},"hosts_provider":[],"join_retry_attempts":3,"join_retry_delay":"100ms","join_timeout":"60000ms","master_election":{"ignore_non_master_pings":"false","wait_for_joins_timeout":"30000ms"},"max_pings_from_another_master":3,"minimum_master_nodes":-1,"no_master_block":"write","ping":{"unicast":{"concurrent_connects":10,"hosts":[],"hosts.resolve_timeout":"5s"}},"ping_timeout":"3s","publish":{"max_pending_cluster_states":25},"publish_diff":{"enable":"true"},"publish_timeout":"30s","send_leave_request":"true","unsafe_rolling_upgrades_enabled":"true"}},"enrich":{"cleanup_period":"15m","coordinator_proxy":{"max_concurrent_requests":8,"max_lookups_per_request":128,"queue_capacity":1024},"fetch_size":10000,"max_concurrent_policy_executions":50,"max_force_merge_attempts":3},"gateway":{"auto_import_dangling_indices":"true","expected_data_nodes":-1,"expected_master_nodes":-1,"expected_nodes":-1,"recover_after_data_nodes":-1,"recover_after_master_nodes":0,"recover_after_nodes":-1,"recover_after_time":"0ms","slow_write_logging_threshold":"10s","write_dangling_indices_info":"true"},"http":{"bind_host":[],"compression":"true","compression_level":3,"content_type":{"required":"true"},"cors":{"allow-credentials":"false","allow-headers":"X-Requested-With,Content-Type,Content-Length","allow-methods":"OPTIONS,HEAD,GET,POST,PUT,DELETE","allow-origin":"","enabled":"false","max-age":1728000},"detailed_errors":{"enabled":"true"},"host":[],"max_chunk_size":"8kb","max_content_length":"100mb","max_header_size":"8kb","max_initial_line_length":"4kb","max_warning_header_count":-1,"max_warning_header_size":"-1b","netty":{"max_composite_buffer_components":69905,"receive_predictor_size":"64kb","worker_count":4},"pipelining":{"max_events":10000},"port":"9200-9300","publish_host":[],"publish_port":-1,"read_timeout":"0ms","reset_cookies":"false","tcp":{"keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"},"tcp_no_delay":"true","type":"security4","type.default":"netty4"},"index":{"codec":"default","store":{"fs":{"fs_lock":"native"},"preload":[],"type":""}},"indices":{"analysis":{"hunspell":{"dictionary":{"ignore_case":"false","lazy":"false"}}},"breaker":{"accounting":{"limit":"100%","overhead":1.000000},"fielddata":{"limit":"40%","overhead":1.030000,"type":"memory"},"request":{"limit":"60%","overhead":1.000000,"type":"memory"},"total":{"limit":"95%","use_real_memory":"true"},"type":"hierarchy"},"cache":{"cleanup_interval":"1m"},"fielddata":{"cache":{"size":"-1b"}},"id_field_data":{"enabled":"true"},"lifecycle":{"history_index_enabled":"true","poll_interval":"10m"},"mapping":{"dynamic_timeout":"30s"},"memory":{"index_buffer_size":"10%","interval":"5s","max_index_buffer_size":-1,"min_index_buffer_size":"48mb","shard_inactive_time":"5m"},"queries":{"cache":{"all_segments":"false","count":10000,"size":"10%"}},"query":{"bool":{"max_clause_count":1024},"query_string":{"allowLeadingWildcard":"true","analyze_wildcard":"false"}},"recovery":{"internal_action_long_timeout":"1800000ms","internal_action_timeout":"15m","max_bytes_per_sec":"40mb","max_concurrent_file_chunks":2,"recovery_activity_timeout":"1800000ms","retry_delay_network":"5s","retry_delay_state_sync":"500ms"},"requests":{"cache":{"expire":"0ms","size":"1%"}},"store":{"delete":{"shard":{"timeout":"30s"}}}},"ingest":{"geoip":{"cache_size":1000},"grok":{"watchdog":{"interval":"1s","max_execution_time":"1s"}},"user_agent":{"cache_size":1000}},"logger":{"level":"INFO"},"monitor":{"fs":{"refresh_interval":"1s"},"jvm":{"gc":{"enabled":"true","overhead":{"debug":10,"info":25,"warn":50},"refresh_interval":"1s"},"refresh_interval":"1s"},"os":{"refresh_interval":"1s"},"process":{"refresh_interval":"1s"}},"network":{"bind_host":["0.0.0.0"],"breaker":{"inflight_requests":{"limit":"100%","overhead":2.000000}},"host":["0.0.0.0"],"publish_host":["0.0.0.0"],"server":"true","tcp":{"connect_timeout":"30s","keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"}},"no":{"model":{"state":{"persist":"false"}}},"node":{"attr":{"xpack":{"installed":"true"}},"data":"true","enable_lucene_segment_infos_trace":"false","id":{"seed":0},"ingest":"true","local_storage":"true","master":"true","max_local_storage_nodes":1,"ml":"false","name":"ec0f9510557a","pidfile":"","portsfile":"false","processors":2,"store":{"allow_mmap":"true"},"voting_only":"false"},"path":{"data":[],"home":"/usr/share/elasticsearch","logs":"/usr/share/elasticsearch/logs","repo":[],"shared_data":""},"pidfile":"","plugin":{"mandatory":[]},"processors":2,"reindex":{"remote":{"whitelist":[]}},"repositories":{"fs":{"chunk_size":"9223372036854775807b","compress":"false","location":""},"url":{"allowed_urls":[],"supported_protocols":["http","https","ftp","file","jar"],"url":"http:"}},"resource":{"reload":{"enabled":"true","interval":{"high":"5s","low":"60s","medium":"30s"}}},"rest":{"action":{"multi":{"allow_explicit_index":"true"}}},"script":{"allowed_contexts":[],"allowed_types":[],"cache":{"expire":"0ms","max_size":100},"max_compilations_rate":"75/5m","max_size_in_bytes":65535,"painless":{"regex":{"enabled":"false"}}},"search":{"default_allow_partial_results":"true","default_keep_alive":"5m","default_search_timeout":-1,"highlight":{"term_vector_multi_value":"true"},"keep_alive_interval":"1m","low_level_cancellation":"true","max_buckets":10000,"max_keep_alive":"24h","max_open_scroll_context":500,"remote":{"connect":"true","connections_per_cluster":3,"initial_connect_timeout":"30s","node":{"attr":""}}},"security":{"manager":{"filter_bad_defaults":"true"}},"slm":{"history_index_enabled":"true","retention_duration":"1h","retention_schedule":"0 30 1 * * ?"},"thread_pool":{"analyze":{"queue_size":16,"size":1},"estimated_time_interval":"200ms","fetch_shard_started":{"core":1,"keep_alive":"5m","max":4},"fetch_shard_store":{"core":1,"keep_alive":"5m","max":4},"flush":{"core":1,"keep_alive":"5m","max":1},"force_merge":{"queue_size":-1,"size":1},"generic":{"core":4,"keep_alive":"30s","max":128},"get":{"queue_size":1000,"size":2},"listener":{"queue_size":-1,"size":1},"management":{"core":1,"keep_alive":"5m","max":5},"refresh":{"core":1,"keep_alive":"5m","max":1},"search":{"auto_queue_frame_size":2000,"max_queue_size":1000,"min_queue_size":1000,"queue_size":1000,"size":4,"target_response_time":"1s"},"search_throttled":{"auto_queue_frame_size":200,"max_queue_size":100,"min_queue_size":100,"queue_size":100,"size":1,"target_response_time":"1s"},"snapshot":{"core":1,"keep_alive":"5m","max":1},"warmer":{"core":1,"keep_alive":"5m","max":1},"write":{"queue_size":200,"size":2}},"transform":{"task_thread_pool":{"queue_size":4,"size":4}},"transport":{"bind_host":[],"compress":"false","connect_timeout":"30s","connections_per_node":{"bulk":3,"ping":1,"recovery":2,"reg":6,"state":1},"features":{"x-pack":"true"},"host":[],"netty":{"boss_count":1,"receive_predictor_max":"64kb","receive_predictor_min":"64kb","receive_predictor_size":"64kb","worker_count":4},"ping_schedule":-1,"port":"9300-9400","publish_host":[],"publish_port":-1,"tcp":{"compress":"false","connect_timeout":"30s","keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","port":"9300-9400","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"},"tcp_no_delay":"true","tracer":{"exclude":["internal:discovery/zen/fd*","internal:coordination/fault_detection/*","cluster:monitor/nodes/liveness"],"include":[]},"type":"security4","type.default":"netty4"},"xpack":{"ccr":{"ccr_thread_pool":{"queue_size":100,"size":32},"enabled":"true"},"data_frame":{"enabled":"true"},"enrich":{"enabled":"true"},"flattened":{"enabled":"true"},"graph":{"enabled":"true"},"http":{"default_connection_timeout":"10s","default_read_timeout":"10s","max_response_size":"10mb","proxy":{"host":"","port":0,"scheme":""},"whitelist":["*"]},"ilm":{"enabled":"true"},"license":{"self_generated":{"type":"basic"},"upload":{"types":["standard","gold","platinum","enterprise","trial"]}},"logstash":{"enabled":"true"},"ml":{"autodetect_process":"true","enable_config_migration":"true","enabled":"false","inference_model":{"cache_size":"40%","time_to_live":"5m"},"max_anomaly_records":500,"max_inference_processors":50,"max_lazy_ml_nodes":0,"max_machine_memory_percent":30,"max_model_memory_limit":"0b","max_open_jobs":20,"min_disk_space_off_heap":"5gb","node_concurrent_job_allocations":2,"persist_results_max_retries":20,"process_connect_timeout":"10s"},"monitoring":{"collection":{"ccr":{"stats":{"timeout":"10s"}},"cluster":{"stats":{"timeout":"10s"}},"enabled":"false","enrich":{"stats":{"timeout":"10s"}},"index":{"recovery":{"active_only":"false","timeout":"10s"},"stats":{"timeout":"10s"}},"indices":[],"interval":"10s","ml":{"job":{"stats":{"timeout":"10s"}}},"node":{"stats":{"timeout":"10s"}}},"elasticsearch":{"collection":{"enabled":"true"}},"enabled":"true","history":{"duration":"168h"}},"notification":{"email":{"default_account":"","html":{"sanitization":{"allow":["body","head","_tables","_links","_blocks","_formatting","img:embedded"],"disallow":[],"enabled":"true"}}},"jira":{"default_account":""},"pagerduty":{"default_account":""},"reporting":{"interval":"15s","retries":40,"warning":{"enabled":"true"}},"slack":{"default_account":""}},"rollup":{"enabled":"true","task_thread_pool":{"queue_size":4,"size":4}},"security":{"audit":{"enabled":"false","logfile":{"emit_node_host_address":"false","emit_node_host_name":"false","emit_node_id":"true","emit_node_name":"false","events":{"emit_request_body":"false","exclude":[],"include":["ACCESS_DENIED","ACCESS_GRANTED","ANONYMOUS_ACCESS_DENIED","AUTHENTICATION_FAILED","CONNECTION_DENIED","TAMPERED_REQUEST","RUN_AS_DENIED","RUN_AS_GRANTED"]}}},"authc":{"anonymous":{"authz_exception":"true","roles":[],"username":"_anonymous"},"api_key":{"cache":{"hash_algo":"ssha256","max_keys":10000,"ttl":"24h"},"delete":{"interval":"24h","timeout":-1},"enabled":"false","hashing":{"algorithm":"pbkdf2"}},"password_hashing":{"algorithm":"bcrypt"},"reserved_realm":{"enabled":"true"},"run_as":{"enabled":"true"},"success_cache":{"enabled":"true","expire_after_access":"1h","size":10000},"token":{"delete":{"interval":"30m","timeout":-1},"enabled":"false","thread_pool":{"queue_size":1000,"size":1},"timeout":"20m"}},"authz":{"store":{"roles":{"cache":{"max_size":10000},"field_permissions":{"cache":{"max_size_in_bytes":104857600}},"index":{"cache":{"max_size":10000,"ttl":"20m"}},"negative_lookup_cache":{"max_size":10000}}}},"automata":{"cache":{"enabled":"true","size":10000,"ttl":"48h"},"max_determinized_states":100000},"dls":{"bitset":{"cache":{"size":"10%","ttl":"2h"}}},"dls_fls":{"enabled":"true"},"enabled":"true","encryption":{"algorithm":"AES/CTR/NoPadding"},"encryption_key":{"algorithm":"AES","length":128},"filter":{"always_allow_bound_address":"true"},"fips_mode":{"enabled":"false"},"http":{"filter":{"allow":[],"deny":[],"enabled":"true"},"ssl":{"enabled":"false"}},"ssl":{"diagnose":{"trust":"true"}},"transport":{"filter":{"allow":[],"deny":[],"enabled":"true"},"ssl":{"enabled":"false"}},"user":null},"slm":{"enabled":"true"},"sql":{"enabled":"true"},"transform":{"enabled":"true","num_transform_failure_retries":10},"vectors":{"enabled":"true"},"watcher":{"actions":{"bulk":{"default_timeout":""},"index":{"default_timeout":""}},"bulk":{"actions":1,"concurrent_requests":0,"flush_interval":"1s","size":"1mb"},"enabled":"true","encrypt_sensitive_data":"false","execution":{"default_throttle_period":"5s","scroll":{"size":0,"timeout":""}},"history":{"cleaner_service":{"enabled":"true"}},"index":{"rest":{"direct_access":""}},"input":{"search":{"default_timeout":""}},"internal":{"ops":{"bulk":{"default_timeout":""},"index":{"default_timeout":""},"search":{"default_timeout":""}}},"stop":{"timeout":"30s"},"thread_pool":{"queue_size":1000,"size":10},"transform":{"search":{"default_timeout":""}},"trigger":{"schedule":{"ticker":{"tick_interval":"500ms"}}},"watch":{"scroll":{"size":0}}}}},"persistent":[],"transient":[]}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 171' -H 'Connection: keep-alive' -d '{"sort":[{"task.runAt":"asc"},{"_id":"desc"}],"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"filter":{"term":{"_id":"task:oss_telemetry-vis_telemetry"}}}}]}}}' 'localhost:9308/.kibana_task_manager/_search?ignore_unavailable=true'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 330' -H 'Connection: keep-alive' -d '{"task":{"taskType":"vis_telemetry","state":"{\"stats\":{},\"runs\":0}","params":"{}","attempts":0,"scheduledAt":"2025-04-16T12:07:00.161Z","startedAt":null,"retryAt":null,"runAt":"2025-04-16T12:07:00.161Z","status":"idle"},"type":"task","references":[],"migrationVersion":{"task":"7.6.0"},"updated_at":"2025-04-16T12:07:00.161Z"}' 'localhost:9308/.kibana_task_manager/_create/task%3Aoss_telemetry-vis_telemetry?refresh=false'
––– output –––
- {"_id":"task:oss_telemetry-vis_telemetry","_index":".kibana_task_manager_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 370' -H 'Connection: keep-alive' -d '{"task":{"taskType":"lens_telemetry","state":"{\"byDate\":{},\"suggestionsByDate\":{},\"saved\":{},\"runs\":0}","params":"{}","attempts":0,"scheduledAt":"2025-04-16T12:07:00.161Z","startedAt":null,"retryAt":null,"runAt":"2025-04-16T12:07:00.161Z","status":"idle"},"type":"task","references":[],"migrationVersion":{"task":"7.6.0"},"updated_at":"2025-04-16T12:07:00.161Z"}' 'localhost:9308/.kibana_task_manager/_create/task%3ALens-lens_telemetry?refresh=false'
––– output –––
- {"_id":"task:Lens-lens_telemetry","_index":".kibana_task_manager_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1942' -H 'Connection: keep-alive' -d '{"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"term":{"task.status":"idle"}},{"range":{"task.runAt":{"lte":"now"}}}]}},{"bool":{"must":[{"bool":{"should":[{"term":{"task.status":"running"}},{"term":{"task.status":"claiming"}}]}},{"range":{"task.retryAt":{"lte":"now"}}}]}}]}},{"bool":{"should":[{"exists":{"field":"task.schedule"}},{"bool":{"must":[{"term":{"task.taskType":"actions:.server-log"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.slack"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.email"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.index"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.pagerduty"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.webhook"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"alerting:siem.signals"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"vis_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"lens_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}}]}}]}}]}},"sort":{"_script":{"type":"number","order":"asc","script":{"lang":"painless","source":"\nif (doc['\''task.retryAt'\''].size()!=0) {\n return doc['\''task.retryAt'\''].value.toInstant().toEpochMilli();\n}\nif (doc['\''task.runAt'\''].size()!=0) {\n return doc['\''task.runAt'\''].value.toInstant().toEpochMilli();\n}\n "}}},"seq_no_primary_term":true,"script":{"source":"ctx._source.task.ownerId=params.ownerId; ctx._source.task.status=params.status; ctx._source.task.retryAt=params.retryAt;","lang":"painless","params":{"ownerId":"kibana:ce42b997-a913-4d58-be46-bb1937feedd6","status":"claiming","retryAt":"2025-04-16T12:07:30.419Z"}}}' 'localhost:9308/.kibana_task_manager/_update_by_query?ignore_unavailable=true&refresh=true&max_docs=10&conflicts=proceed'
––– output –––
- {"batches":0,"deleted":0,"failures":[],"noops":0,"requests_per_second":-1,"retries":{"bulk":0,"search":0},"throttled_millis":0,"throttled_until_millis":0,"timed_out":false,"took":0,"total":0,"updated":0,"version_conflicts":0}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1942' -H 'Connection: keep-alive' -d '{"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"term":{"task.status":"idle"}},{"range":{"task.runAt":{"lte":"now"}}}]}},{"bool":{"must":[{"bool":{"should":[{"term":{"task.status":"running"}},{"term":{"task.status":"claiming"}}]}},{"range":{"task.retryAt":{"lte":"now"}}}]}}]}},{"bool":{"should":[{"exists":{"field":"task.schedule"}},{"bool":{"must":[{"term":{"task.taskType":"actions:.server-log"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.slack"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.email"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.index"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.pagerduty"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.webhook"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"alerting:siem.signals"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"vis_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"lens_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}}]}}]}}]}},"sort":{"_script":{"type":"number","order":"asc","script":{"lang":"painless","source":"\nif (doc['\''task.retryAt'\''].size()!=0) {\n return doc['\''task.retryAt'\''].value.toInstant().toEpochMilli();\n}\nif (doc['\''task.runAt'\''].size()!=0) {\n return doc['\''task.runAt'\''].value.toInstant().toEpochMilli();\n}\n "}}},"seq_no_primary_term":true,"script":{"source":"ctx._source.task.ownerId=params.ownerId; ctx._source.task.status=params.status; ctx._source.task.retryAt=params.retryAt;","lang":"painless","params":{"ownerId":"kibana:ce42b997-a913-4d58-be46-bb1937feedd6","status":"claiming","retryAt":"2025-04-16T12:07:30.509Z"}}}' 'localhost:9308/.kibana_task_manager/_update_by_query?ignore_unavailable=true&refresh=true&max_docs=10&conflicts=proceed'
––– output –––
- {"batches":0,"deleted":0,"failures":[],"noops":0,"requests_per_second":-1,"retries":{"bulk":0,"search":0},"throttled_millis":0,"throttled_until_millis":0,"timed_out":false,"took":0,"total":0,"updated":0,"version_conflicts":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 64' -H 'Connection: keep-alive' -d '{"query":{"bool":{"filter":{"term":{"type":"canvas-workpad"}}}}}' 'localhost:9308/.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad%2C-hits.hits._source.canvas-workpad.assets'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 64' -H 'Connection: keep-alive' -d '{"query":{"bool":{"filter":{"term":{"type":"canvas-element"}}}}}' 'localhost:9308/.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-element.content'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 374' -H 'Connection: keep-alive' -d '{"seq_no_primary_term":true,"_source":{"excludes":["output.content"]},"query":{"bool":{"filter":{"bool":{"minimum_should_match":1,"should":[{"term":{"status":"pending"}},{"bool":{"must":[{"term":{"status":"processing"}},{"range":{"process_expiration":{"lte":"2025-04-16T12:07:03.101Z"}}}]}}]}}}},"sort":[{"priority":{"order":"asc"}},{"created_at":{"order":"asc"}}],"size":1}' 'localhost:9308/.reporting-*/_search'
––– output –––
- {
- "took": 0,
- "timed_out": false,
- "_shards": {
- "total": 0,
- "successful": 0,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": {
- "value": 0,
- "relation": "eq"
- },
- "max_score": 0,
- "hits": []
- }
- }test/clt-tests/mysqldump/mysql/mcl-all-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/kibana/test-parameter-for-installing-the-kibana-version.rec––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = 7.10.2\n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:05.142 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:05.142 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:05.143 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | 7.10.2 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = 8.17.4\n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:05.142 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:05.142 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:05.143 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:21:15.450 2026] [34] watchdog: main process 35 forked ok
+ [Sun Mar 15 09:21:15.450 2026] [35] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:15.450 2026] [34] watchdog: main process 35 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | 8.17.4 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = \n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:05.142 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:05.142 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:05.143 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:21:15.450 2026] [34] watchdog: main process 35 forked ok
+ [Sun Mar 15 09:21:15.450 2026] [35] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:15.450 2026] [34] watchdog: main process 35 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:21:25.757 2026] [46] watchdog: main process 47 forked ok
+ [Sun Mar 15 09:21:25.757 2026] [47] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:25.758 2026] [46] watchdog: main process 47 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mysqldump/mysql/mcl-all-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/multi-query.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:48.850 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:48.850 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:48.851 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test'), (3, 'sample', 'sample');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20limit%201;show%20tables" | grep -v 'row in set'
––– output –––
- +----+---------+------------+
- | id | value | value_attr |
- +----+---------+------------+
- | 1 | example | example |
- +----+---------+------------+
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20where%20match('test');show%20meta" | grep -v 'row\|rows'
––– output –––
- +----+-------+------------+
- | id | value | value_attr |
- +----+-------+------------+
- | 2 | test | test |
- +----+-------+------------+
- +----------------+-------+
- | Variable_name | Value |
- +----------------+-------+
- | total | 1 |
- | total_found | 1 |
- | total_relation | eq |
- | time | 0.000 |
- | keyword[0] | test |
- | docs[0] | 1 |
- | hits[0] | 1 |
- +----------------+-------+
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20limit%201;show%20tables" | grep -v 'row in set'
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20where%20match('test');show%20meta"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":2,"value":"test","value_attr":"test"}
- ],
- "total":1,
- "error":"",
- "warning":""
- },
- {
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"1"},
- {"Variable_name":"total_found","Value":"1"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"0.000"},
- {"Variable_name":"keyword[0]","Value":"test"},
- {"Variable_name":"docs[0]","Value":"1"},
- {"Variable_name":"hits[0]","Value":"1"}
- ],
- "total":7,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t limit 1;show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('test');show meta"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t limit 1;show tables"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t where match('test');show meta"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":2,"value":"test","value_attr":"test"}
- ],
- "total":1,
- "error":"",
- "warning":""
- },
- {
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"1"},
- {"Variable_name":"total_found","Value":"1"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"0.000"},
- {"Variable_name":"keyword[0]","Value":"test"},
- {"Variable_name":"docs[0]","Value":"1"},
- {"Variable_name":"hits[0]","Value":"1"}
- ],
- "total":7,
- "error":"",
- "warning":""
- }]test/clt-tests/http-interface/error-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT) min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example'), (2, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELEKT * FROM t"; echo
––– output –––
- {"error":"P02: syntax error, unexpected identifier near 'SELEKT * FROM t'"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM nonexistent_table"; echo
––– output –––
- {"error":"unknown local table(s) 'nonexistent_table' in search request"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM t; SHOW META"; echo
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "DESCRIBE t; SELECT * FROM t" | awk '!/row.*in set/'; echo
––– output –––
- {"error":"P01: syntax error, unexpected ';' near '; SELECT * FROM '"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t WHERE MATCH('@value \!@#$%')"; echo
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}}],
- "data":[
- ],
- "total":0,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t ORDER BY unknown_column"; echo
––– output –––
- {"error":"table t: sort-by attribute 'unknown_column' not found"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t LIMIT -5"; echo
––– output –––
- {"error":"limit out of bounds (limit=-5)"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "UPDATE t SET value='new_value' WHERE id=1"; echo
––– output –––
- {"error":"table t: attribute 'value' can not be updated (full-text field)"}test/clt-tests/mcl/auto-embeddings-syntax-check.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration|Failed.*to.*download).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title, content') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_model_remote"
––– output –––
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | test_model_remote | CREATE TABLE test_model_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content'
- ) |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_model_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"; MD5_1=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=1" | grep -v embedding | sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | grep -E '^[0-9]+(\.[0-9]+)?$' | awk '{printf "%.5f\n", $1}' | tr '\n' ',' | sed 's/,$//' | md5sum | awk '{print $1}'); MD5_2=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=2" | grep -v embedding | sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | grep -E '^[0-9]+(\.[0-9]+)?$' | awk '{printf "%.5f\n", $1}' | tr '\n' ',' | sed 's/,$//' | md5sum | awk '{print $1}'); echo "vector_md5_1: $MD5_1"; echo "vector_md5_2: $MD5_2"; if [ "$MD5_1" = "$MD5_2" ]; then echo "SUCCESS: Same FROM fields produce same vector"; else echo "FAIL: Different vectors (FROM does not include description field and should not change generated vector value)"; fi
––– output –––
- vector_md5_1: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- vector_md5_2: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce same vector
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ vector_md5_1: d41d8cd98f00b204e9800998ecf8427e
+ vector_md5_2: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same FROM fields produce same vector
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title') "; mysql -h0 -P9306 -e "INSERT INTO test_model_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_no_auto (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_model_no_auto"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+test/clt-tests/mcl/auto-embeddings-qwen.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_qwen (title TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='Qwen/Qwen3-Embedding-0.6B' FROM='title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_qwen"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_qwen
- Create Table: CREATE TABLE test_qwen (
- id bigint,
- title text,
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='Qwen/Qwen3-Embedding-0.6B' FROM='title'
- )
––– input –––
mysql -h0 -P9306 -e "insert into test_qwen(id, title) values(1, 'book'),(2, 'bread');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total_records FROM test_qwen"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total_records |
- +---------------+
- | 2 |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "select id, title, knn_dist() from test_qwen where knn(vec, 3, 'loaf')"
––– output –––
- +------+-------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-------+------------+
- | 2 | bread | #!/0\.3[0-9]*/!# |
- | 1 | book | #!/0\.[45][0-9]*/!# |
- +------+-------+------------+test/clt-tests/mcl/auto-embeddings-voyage-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_voyage_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title, content' API_KEY='${VOYAGE_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_voyage_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_voyage_remote
- Create Table: CREATE TABLE test_voyage_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='voyage/voyage-3.5-lite' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_voyage_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_voyage_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title' API_KEY='${VOYAGE_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_voyage_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test__invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_voyage_no_from'" | grep -q test_voyage_no_from; then mysql -h0 -P9306 -e "INSERT INTO test__no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test__no_from'" | grep -q test_voyage_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_voyage_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test__no_from.*model_name='voyage\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$VOYAGE_API_KEY" ] && [ "$VOYAGE_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_voyage_remote WHERE knn(embedding, 3, 'machine learning and artificial intelligence')\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
- *************************** 2. row ***************************
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_voyage_remote WHERE knn(embedding, 5, 'technology and AI') AND id > 0"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
API_KEY_VAL="${VOYAGE_API_KEY}"; cat > /etc/manticoresearch/manticore.conf << CONFEOF
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_voyage_plain {
type = rt
path = /var/lib/manticore/test_voyage_plain
rt_field = title
rt_field = content
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","hnsw_m":16,"hnsw_ef_construction":200,"model_name":"voyage/voyage-3.5-lite","from":"title,content","api_key":"${API_KEY_VAL}"}]}
}
CONFEOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:21:02.714 2026] [69] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------------------+------+
- | test_voyage_plain | rt |
- +-------------------+------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_plain (id, title, content) VALUES(1, 'bread', 'food item'), (2, 'cat', 'animal pet')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_voyage_plain"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title FROM test_voyage_plain WHERE knn(embedding, 2, 'dog')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- title: cat
- *************************** 2. row ***************************
- id: 1
- title: bread
––– input –––
cat > /etc/manticoresearch/manticore.conf << 'EOF'
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_voyage_no_key {
type = rt
path = /var/lib/manticore/test_voyage_no_key
rt_field = title
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","model_name":"voyage/voyage-3.5-lite","from":"title"}]}
}
EOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:21:13.371 2026] [85] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
searchd 2>&1|grep WARNING
––– output –––
- WARNING: table 'test_voyage_no_key': prealloc: Invalid API key for remote model - NOT SERVINGtest/clt-tests/http-interface/cli-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:14.658 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:14.658 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:14.659 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | grep -v 'rows in set' | head -n 4
––– output –––
- %{TABLE_LINE}
- %{TABLE_ROW}
- %{TABLE_LINE}
- %{TABLE_ROW}
––– input –––
curl -s "http://localhost:9308/cli?show%20buddy%20plugins" | grep -v 'rows in set' | head -n 4
––– output –––
- %{TABLE_LINE}
- %{TABLE_ROW}
- %{TABLE_LINE}
- %{TABLE_ROW}
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20where%20match('exmaple')%20option%20fuzzy=1" | grep -v 'row in set'
––– output –––
- +----+---------+------------+
- | id | value | value_attr |
- +----+---------+------------+
- | 1 | example | example |
- +----+---------+------------+
––– input –––
curl -s "http://localhost:9308/cli?show%20fields%20from%20t" | grep -v 'rows in set'
––– output –––
- +------------+--------+------+-----+---------+-------+
- | Field | Type | Null | Key | Default | Extra |
- +------------+--------+------+-----+---------+-------+
- | id | bigint | NO | | | |
- | value | text | NO | | | |
- | value_attr | string | NO | | | |
- +------------+--------+------+-----+---------+-------+
––– input –––
curl -s "http://localhost:9308/cli?show%20full%20tables" | grep -v 'row in set'
––– output –––
- +---------------------+------------+
- | Tables_in_Manticore | Table_type |
- +---------------------+------------+
- | t | BASE TABLE |
- +---------------------+------------+
––– input –––
curl -s "http://localhost:9308/cli?create%20table%20t_copy%20like%20t" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?insert%20into%20auto_created%20(id,%20value)%20values%20(10,%20'abc')" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?alter%20table%20t%20add%20column%20extra_field%20int" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?replace%20into%20t%20(id,%20value)%20values%20(1,%20'replaced_value')" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20limit%201" | grep -v 'row in set'
––– output –––
- +----+-------+------------+-------------+
- | id | value | value_attr | extra_field |
- +----+-------+------------+-------------+
- | %{NUMBER} | %{PATH} | %{PATH} | %{NUMBER} |
- +----+-------+------------+-------------+test/clt-tests/http-interface/cli-json-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:26.169 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:26.169 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:26.170 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli_json?show%20version"
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings %{VERSION}"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?show%20buddy%20plugins"
––– output –––
- [{"total":28,"error":"","warning":"","columns":[{"Package":{"type":"string"}},{"Plugin":{"type":"string"}},{"Version":{"type":"string"}},{"Type":{"type":"string"}},{"Info":{"type":"string"}}],"data":[{"Package":"manticoresoftware/buddy-plugin-empty-string","Plugin":"empty-string","Version":"%{VERSION}","Type":"core","Info":"Handles empty queries, which can occur when trimming comments or dealing with specific SQL protocol instructions in comments that are not supported"},{"Package":"manticoresoftware/buddy-plugin-backup","Plugin":"backup","Version":"%{VERSION}","Type":"core","Info":"BACKUP sql statement"},{"Package":"manticoresoftware/buddy-plugin-emulate-elastic","Plugin":"emulate-elastic","Version":"%{VERSION}","Type":"core","Info":"Emulates some Elastic queries and generates responses as if they were made by ES"},{"Package":"manticoresoftware/buddy-plugin-fuzzy","Plugin":"fuzzy","Version":"%{VERSION}","Type":"core","Info":"Fuzzy search plugin. It helps to find the best match for a given query."},{"Package":"manticoresoftware/buddy-plugin-create-table","Plugin":"create-table","Version":"%{VERSION}","Type":"core","Info":"Enables tables copying; handles CREATE TABLE statements with MySQL options not supported by Manticore"},{"Package":"manticoresoftware/buddy-plugin-create-cluster","Plugin":"create-cluster","Version":"%{VERSION}","Type":"core","Info":"Enable CREATE CLUSTER IF NOT EXISTS statements"},{"Package":"manticoresoftware/buddy-plugin-drop","Plugin":"drop","Version":"%{VERSION}","Type":"core","Info":"Handles DROP statements with MySQL options not supported by Manticore"},{"Package":"manticoresoftware/buddy-plugin-insert","Plugin":"insert","Version":"%{VERSION}","Type":"core","Info":"Auto schema support. When an insert or replace operation is performed and the table does not exist, it creates it with data types auto-detection"},{"Package":"manticoresoftware/buddy-plugin-alias","Plugin":"alias","Version":"%{VERSION}","Type":"core","Info":""},{"Package":"manticoresoftware/buddy-plugin-select","Plugin":"select","Version":"%{VERSION}","Type":"core","Info":"Various SELECTs handlers needed for mysqldump and other software support, mostly aiming to work similarly to MySQL"},{"Package":"manticoresoftware/buddy-plugin-replace-select","Plugin":"replace-select","Version":"%{VERSION}","Type":"core","Info":"Enables REPLACE INTO ... SELECT ... FROM operations with batch processing"},{"Package":"manticoresoftware/buddy-plugin-show","Plugin":"show","Version":"%{VERSION}","Type":"core","Info":"Various \"show\" queries handlers, for example, `show queries`, `show fields`, `show full tables`, etc"},{"Package":"manticoresoftware/buddy-plugin-plugin","Plugin":"plugin","Version":"%{VERSION}","Type":"core","Info":"Core logic for plugin support and helpers. Also handles `create buddy plugin`, `delete buddy plugin`, and `show buddy plugins`"},{"Package":"manticoresoftware/buddy-plugin-test","Plugin":"test","Version":"%{VERSION}","Type":"core","Info":"Test plugin, used exclusively for tests"},{"Package":"manticoresoftware/buddy-plugin-alter-column","Plugin":"alter-column","Version":"%{VERSION}","Type":"core","Info":"Enables adding/dropping table fields(columns)"},{"Package":"manticoresoftware/buddy-plugin-alter-distributed-table","Plugin":"alter-distributed-table","Version":"%{VERSION}","Type":"core","Info":"Enables alter for distributed tables"},{"Package":"manticoresoftware/buddy-plugin-alter-rename-table","Plugin":"alter-rename-table","Version":"%{VERSION}","Type":"core","Info":"Enables alter table rename"},{"Package":"manticoresoftware/buddy-plugin-modify-table","Plugin":"modify-table","Version":"%{VERSION}","Type":"core","Info":"Assists in standardizing options in create and alter table statements to show option=1 for integers."},{"Package":"manticoresoftware/buddy-plugin-knn","Plugin":"knn","Version":"%{VERSION}","Type":"core","Info":"Enables KNN by document id"},{"Package":"manticoresoftware/buddy-plugin-replace","Plugin":"replace","Version":"%{VERSION}","Type":"core","Info":"Enables partial replaces"},{"Package":"manticoresoftware/buddy-plugin-queue","Plugin":"queue","Version":"%{VERSION}","Type":"core","Info":""},{"Package":"manticoresoftware/buddy-plugin-sharding","Plugin":"sharding","Version":"%{VERSION}","Type":"core","Info":"Enables sharded tables."},{"Package":"manticoresoftware/buddy-plugin-update","Plugin":"update","Version":"%{VERSION}","Type":"core","Info":"Handles UPDATE statements sent by MySQL tools making possible for them to update full-text fields"},{"Package":"manticoresoftware/buddy-plugin-autocomplete","Plugin":"autocomplete","Version":"%{VERSION}","Type":"core","Info":"Autocomplete plugin that offers suggestions based on the starting query"},{"Package":"manticoresoftware/buddy-plugin-cli-table","Plugin":"cli-table","Version":"%{VERSION}","Type":"core","Info":"/cli endpoint based on /cli_json - outputs query result as a table"},{"Package":"manticoresoftware/buddy-plugin-distributed-insert","Plugin":"distributed-insert","Version":"%{VERSION}","Type":"core","Info":"The plugin enables data insertion into distributed sharded tables."},{"Package":"manticoresoftware/buddy-plugin-truncate","Plugin":"truncate","Version":"%{VERSION}","Type":"core","Info":"Handles TRUNCATE statements on distributed tables"},{"Package":"manticoresoftware/buddy-plugin-metrics","Plugin":"metrics","Version":"%{VERSION}","Type":"core","Info":"Returns Prometheus metrics"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20where%20match('exmaple')%20option%20fuzzy=1"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],"data":[{"id":1,"value":"example","value_attr":"example"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?show%20fields%20from%20t"
––– output –––
- [{
- "columns":[{"Field":{"type":"string"}},{"Type":{"type":"string"}},{"Null":{"type":"string"}},{"Key":{"type":"string"}},{"Default":{"type":"string"}},{"Extra":{"type":"string"}}],
- "data":[
- {"Field":"id","Type":"bigint","Null":"NO","Key":"","Default":"","Extra":""},
- {"Field":"value","Type":"text","Null":"NO","Key":"","Default":"","Extra":""},
- {"Field":"value_attr","Type":"string","Null":"NO","Key":"","Default":"","Extra":""}
- ],
- "total":3,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json?create%20table%20t_copy2%20like%20t"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20limit%201"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]test/clt-tests/http-interface/show-version-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:02.445 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:02.445 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:02.446 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | sed 's/ *|/|/g' | awk '!/row.*in set/'|grep -v "\-\-\-"|grep -v Component
––– output –––
- | Daemon| %{VERSION}|
- | Columnar| columnar %{VERSION}|
- | Secondary| secondary %{VERSION}|
- | Knn| knn %{VERSION}|
- | Embeddings| embeddings %{VERSION}|
- | Buddy| buddy %{VERSION}|test/clt-tests/mcl/auto-embeddings-openai-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title, content' API_KEY='${OPENAI_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_openai_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_openai_remote
- Create Table: CREATE TABLE test_openai_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='openai/text-embedding-ada-002' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_openai_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title' API_KEY='${OPENAI_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_openai_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_openai_no_from'" | grep -q test_openai_no_from; then mysql -h0 -P9306 -e "INSERT INTO test_openai_no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_openai_no_from'" | grep -q test_openai_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_openai_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test_openai_no_from.*model_name='openai\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$OPENAI_API_KEY" ] && [ "$OPENAI_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_openai_remote WHERE knn(embedding, 3, 'machine learning and artificial intelligence')\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
- *************************** 2. row ***************************
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_openai_remote WHERE knn(embedding, 5, 'technology and AI') AND id > 0"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
API_KEY_VAL="${OPENAI_API_KEY}"; cat > /etc/manticoresearch/manticore.conf << CONFEOF
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_openai_plain {
type = rt
path = /var/lib/manticore/test_openai_plain
rt_field = title
rt_field = content
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","hnsw_m":16,"hnsw_ef_construction":200,"model_name":"openai/text-embedding-ada-002","from":"title,content","api_key":"${API_KEY_VAL}"}]}
}
CONFEOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:20:16.646 2026] [69] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------------------+------+
- | test_openai_plain | rt |
- +-------------------+------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_plain (id, title, content) VALUES(1, 'bread', 'food item'), (2, 'cat', 'animal pet')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_openai_plain"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title FROM test_openai_plain WHERE knn(embedding, 2, 'dog')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- title: cat
- *************************** 2. row ***************************
- id: 1
- title: bread
––– input –––
cat > /etc/manticoresearch/manticore.conf << 'EOF'
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_openai_no_key {
type = rt
path = /var/lib/manticore/test_openai_no_key
rt_field = title
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","model_name":"openai/text-embedding-ada-002","from":"title"}]}
}
EOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:20:27.303 2026] [85] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
searchd 2>&1|grep WARNING
––– output –––
- WARNING: table 'test_openai_no_key': prealloc: Invalid API key for remote model - NOT SERVING |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/mysql/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-only-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-only-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/mcl-id-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/mcl-only-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-id-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-id-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/mysql/no-mcl-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/buddy-plugins/test-facet-with-option-fuzzy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:18.872 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:18.872 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:18.873 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test; CREATE TABLE test(column1 int, column2 int, column3 text) min_infix_len = '2'; INSERT INTO test(column1, column2, column3) VALUES (123, 3333, 'text here'), (456, 22222, 'text here');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1
FACET column2;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column2 | count(*) |
- +---------+----------+
- | 3333 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, layouts=''
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET (IF(NOT INTEGER(column1), column1 > column2, column2 > 4) AND column2 <= 2 AND column2 >= 1) AS crazy_field;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +-------------+----------+
- | crazy_field | count(*) |
- +-------------+----------+
- | 0 | 2 |
- +-------------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1, layouts=''
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION layouts='', fuzzy=1
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1 ORDER BY COUNT(*) DESC;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1 LIMIT 1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, fix_overlap=1
FACET column1;"
––– output –––
- ERROR 1064 (42000) at line 2: unknown option 'fix_overlap'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION cutoff=1, fuzzy=1
FACET column3;"
––– output –––
- ERROR 1064 (42000) at line 2: table test: unable to group by stored field 'column3'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy-plugins/test-enable-disable-buddy-plugin.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:07.399 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:07.399 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:07.400 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES"
––– output –––
- ERROR 1064 (42000) at line 1: Plugin 'show' is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
- ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "create table test (id bigint, value text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;"
––– output –––
- ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us,ru' AS layouts);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy/test-buddy-protocol-validation.rec––– input –––
export SEARCHD_FLAGS="--logdebugvv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:00.722 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:00.722 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:00.723 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE buddy_test (id INT, name STRING, content TEXT) min_infix_len = '3'; INSERT INTO buddy_test VALUES (1, 'test1', 'sample content'), (2, 'test2', 'another sample');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS" > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"body":"SHOW BUDDY PLUGINS".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"sql response".*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SHOW%20VERSION" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli_json.*"body":"SHOW VERSION".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SHOW%20FULL%20TABLES" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli_json.*"body":"SHOW FULL TABLES".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20buddy_test%20WHERE%20MATCH('tset')%20OPTION%20fuzzy=1" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?INSERT%20INTO%20auto_buddy_table%20(id,%20name)%20VALUES%20(1,%20'auto_test')" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli?SHOW%20TABLES" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli.*"body":"SHOW TABLES".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SHOW VERSION" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/sql".*"body":"SHOW VERSION".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Version 3 OK" || echo "Wrong version"
––– output –––
- Version 3 OK
+ Wrong version
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20buddy_test;%20SHOW%20META" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM buddy_test; SHOW META" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid versiontest/clt-tests/buddy-plugins/test-fuzzy-autocomplete-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:30.392 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:30.392 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:30.393 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/name_data.txt
––– output –––
- 1995eec70e60c584bc35ff0688556b94 /tmp/name_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -r '.hits.hits[]._source.username'
––– output –––
- BERNA PFEIFFER
- BERNA SAGE
- BERNA PANG
- BERNA STOLTZFUS
- BERNA HALVERSON
- BERNA PLASCENCIA
- BERNA CALLAWAY
- BERNA STONER
- BERNA MARSH
- BERNA LEI
- BERNA SOUSA
- BERNA LIAO
- BERNA TROTTER
- BERNA VALDOVINOS
- BERNA VALLE
- BERNA ELKINS
- BERNA HURD
- BERNA DUARTE
- BERNA HAUGEN
- BERNA LISTER
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -r '.hits.hits[]._source.username'
––– output –––
- SHANE GANT
- DANILLE GANT
- BLANCH GANT
- TRISTAN GANT
- NATHANAEL GANT
- JANESSA GANT
- ANDREW GANT
- KORTNEY GANT
- SABINE GANT
- IRA GANT
- SHAWNTA GANT
- TRACEY GANT
- JIM GANT
- GERRY GANT
- ELROY GANT
- ERIN GANT
- LEONARDA GANT
- JARED GANT
- RODNEY GANT
- ROCKY GANT
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 1813,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 800363,
- "_score": 1547,
- "_source": {
- "username": "TOBY BEAULIEU",
- "s": "a"
- }
- },
- {
- "_id": 807095,
- "_score": 1547,
- "_source": {
- "username": "TOBY HOFER",
- "s": "a"
- }
- },
- {
- "_id": 807096,
- "_score": 1547,
- "_source": {
- "username": "TOBY DEMPSEY",
- "s": "a"
- }
- },
- {
- "_id": 808820,
- "_score": 1547,
- "_source": {
- "username": "TOBY RAYMOND",
- "s": "a"
- }
- },
- {
- "_id": 808863,
- "_score": 1547,
- "_source": {
- "username": "TOBY BATEMAN",
- "s": "a"
- }
- },
- {
- "_id": 813761,
- "_score": 1547,
- "_source": {
- "username": "TOBY VANWINKLE",
- "s": "a"
- }
- },
- {
- "_id": 818229,
- "_score": 1547,
- "_source": {
- "username": "TOBY BROCK",
- "s": "a"
- }
- },
- {
- "_id": 825472,
- "_score": 1547,
- "_source": {
- "username": "TOBY LINDQUIST",
- "s": "a"
- }
- },
- {
- "_id": 826251,
- "_score": 1547,
- "_source": {
- "username": "TOBY KAUFFMAN",
- "s": "a"
- }
- },
- {
- "_id": 827886,
- "_score": 1547,
- "_source": {
- "username": "TOBY PITMAN",
- "s": "a"
- }
- },
- {
- "_id": 832558,
- "_score": 1547,
- "_source": {
- "username": "TOBY KELLEY",
- "s": "a"
- }
- },
- {
- "_id": 833689,
- "_score": 1547,
- "_source": {
- "username": "TOBY HANDY",
- "s": "a"
- }
- },
- {
- "_id": 834136,
- "_score": 1547,
- "_source": {
- "username": "TOBY HOPPE",
- "s": "a"
- }
- },
- {
- "_id": 836413,
- "_score": 1547,
- "_source": {
- "username": "TOBY STOVALL",
- "s": "a"
- }
- },
- {
- "_id": 839075,
- "_score": 1547,
- "_source": {
- "username": "TOBY JEROME",
- "s": "a"
- }
- },
- {
- "_id": 839512,
- "_score": 1547,
- "_source": {
- "username": "TOBY LEONARD",
- "s": "a"
- }
- },
- {
- "_id": 841923,
- "_score": 1547,
- "_source": {
- "username": "TOBY PARNELL",
- "s": "a"
- }
- },
- {
- "_id": 842450,
- "_score": 1547,
- "_source": {
- "username": "TOBY LOWE",
- "s": "a"
- }
- },
- {
- "_id": 843217,
- "_score": 1547,
- "_source": {
- "username": "TOBY ROBISON",
- "s": "a"
- }
- },
- {
- "_id": 846291,
- "_score": 1547,
- "_source": {
- "username": "TOBY BITTNER",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 1304,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 999737,
- "_score": 1,
- "_source": {
- "username": "KEITH STUMP",
- "s": "a"
- }
- },
- {
- "_id": 999039,
- "_score": 1,
- "_source": {
- "username": "KEITH JAMIESON",
- "s": "a"
- }
- },
- {
- "_id": 996439,
- "_score": 1,
- "_source": {
- "username": "KEITHA CARBAJAL",
- "s": "a"
- }
- },
- {
- "_id": 995770,
- "_score": 1,
- "_source": {
- "username": "KEITH GONZALES",
- "s": "a"
- }
- },
- {
- "_id": 990882,
- "_score": 1,
- "_source": {
- "username": "MINH SANTANA",
- "s": "a"
- }
- },
- {
- "_id": 990643,
- "_score": 1,
- "_source": {
- "username": "KEITH MENDES",
- "s": "a"
- }
- },
- {
- "_id": 989972,
- "_score": 1,
- "_source": {
- "username": "KEITHA WALTERS",
- "s": "a"
- }
- },
- {
- "_id": 989954,
- "_score": 1,
- "_source": {
- "username": "GWENN SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 989444,
- "_score": 1,
- "_source": {
- "username": "KEITH KEATON",
- "s": "a"
- }
- },
- {
- "_id": 988755,
- "_score": 1,
- "_source": {
- "username": "SHERRON SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988366,
- "_score": 1,
- "_source": {
- "username": "LAVONIA SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988254,
- "_score": 1,
- "_source": {
- "username": "MAYOLA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 987106,
- "_score": 1,
- "_source": {
- "username": "KEITH FAULK",
- "s": "a"
- }
- },
- {
- "_id": 986580,
- "_score": 1,
- "_source": {
- "username": "DARNELL SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 984012,
- "_score": 1,
- "_source": {
- "username": "KEITH CORONEL",
- "s": "a"
- }
- },
- {
- "_id": 982759,
- "_score": 1,
- "_source": {
- "username": "MORGAN KEITH",
- "s": "a"
- }
- },
- {
- "_id": 982421,
- "_score": 1,
- "_source": {
- "username": "KEITH SHIFFLETT",
- "s": "a"
- }
- },
- {
- "_id": 982223,
- "_score": 1,
- "_source": {
- "username": "TELMA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 982056,
- "_score": 1,
- "_source": {
- "username": "RENITA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 981115,
- "_score": 1,
- "_source": {
- "username": "KATIE SMYTH",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 773,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 998829,
- "_score": 1,
- "_source": {
- "username": "EDYTHE VACA",
- "s": "a"
- }
- },
- {
- "_id": 998500,
- "_score": 1,
- "_source": {
- "username": "SETH PHUNG",
- "s": "a"
- }
- },
- {
- "_id": 996507,
- "_score": 1,
- "_source": {
- "username": "SETH LYMAN",
- "s": "a"
- }
- },
- {
- "_id": 995119,
- "_score": 1,
- "_source": {
- "username": "EDYTHE JOHN",
- "s": "a"
- }
- },
- {
- "_id": 993455,
- "_score": 1,
- "_source": {
- "username": "EDYTH ROSADO",
- "s": "a"
- }
- },
- {
- "_id": 992097,
- "_score": 1,
- "_source": {
- "username": "EDYTH RAGAN",
- "s": "a"
- }
- },
- {
- "_id": 989954,
- "_score": 1,
- "_source": {
- "username": "GWENN SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988823,
- "_score": 1,
- "_source": {
- "username": "SETH WHITTAKER",
- "s": "a"
- }
- },
- {
- "_id": 988755,
- "_score": 1,
- "_source": {
- "username": "SHERRON SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988366,
- "_score": 1,
- "_source": {
- "username": "LAVONIA SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 986580,
- "_score": 1,
- "_source": {
- "username": "DARNELL SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 986231,
- "_score": 1,
- "_source": {
- "username": "EDYTH BLODGETT",
- "s": "a"
- }
- },
- {
- "_id": 985595,
- "_score": 1,
- "_source": {
- "username": "SETH BACON",
- "s": "a"
- }
- },
- {
- "_id": 982423,
- "_score": 1,
- "_source": {
- "username": "SETH CHATMAN",
- "s": "a"
- }
- },
- {
- "_id": 981115,
- "_score": 1,
- "_source": {
- "username": "KATIE SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 979541,
- "_score": 1,
- "_source": {
- "username": "EDYTHE CLAYTON",
- "s": "a"
- }
- },
- {
- "_id": 979093,
- "_score": 1,
- "_source": {
- "username": "SETH BURROUGHS",
- "s": "a"
- }
- },
- {
- "_id": 978812,
- "_score": 1,
- "_source": {
- "username": "EDYTH GULLEY",
- "s": "a"
- }
- },
- {
- "_id": 975994,
- "_score": 1,
- "_source": {
- "username": "SETH PARHAM",
- "s": "a"
- }
- },
- {
- "_id": 975841,
- "_score": 1,
- "_source": {
- "username": "ALEIDA SMYTH",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "johnny"
- },
- {
- "query": "jon"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M
––– output –––
- [
- {
- "total": 6,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M
––– output –––
- {
- "error": "At least two languages are required in layouts"
- }test/clt-tests/buddy/test-show-version.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:45.645 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:45.645 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:45.646 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "show version\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Component: Daemon
- Version: %{VERSION}
- *************************** 2. row ***************************
- Component: Columnar
- Version: columnar %{VERSION}
- *************************** 3. row ***************************
- Component: Secondary
- Version: secondary %{VERSION}
- *************************** 4. row ***************************
- Component: Knn
- Version: knn %{VERSION}
- *************************** 5. row ***************************
- Component: Embeddings
- Version: embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#
- *************************** 6. row ***************************
- Component: Buddy
- Version: buddy %{VERSION}test/clt-tests/buddy/test-manticore-version-in-telemetry.rec––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --telemetry-period=5' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
export SEARCHD_FLAGS="--logdebugvv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:14.839 2026] [59] watchdog: main process 60 forked ok
+ [Sun Mar 15 09:21:14.839 2026] [60] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:14.840 2026] [59] watchdog: main process 60 exited cleanly (exit code 1), shutting down
––– input –––
timeout 20 bash -c 'grep -m 1 "labels:" <(tail -f /var/log/manticore/searchd.log) | sed "s/.*labels: //" | jq -M .'
––– output –––
- {
- "collector": "buddy",
- "os_name": "Linux",
- "os_release_name": "Ubuntu",
- "os_release_version": "%{SEMVER} LTS (#!/[A-Za-z]+\s[A-Za-z]+/!#)",
- "machine_type": "x86_64",
- "machine_id": "#!/[0-9A-Za-z]+/!#",
- "dockerized": "#!/\b(?:unknown|yes)\b/!#",
- "official_docker": "#!/\b(?:no|yes)\b/!#",
- "buddy_version": "%{VERSION}",
- "manticore_version": "%{VERSION}",
- "columnar_version": "%{VERSION}",
- "secondary_version": "%{VERSION}",
- "knn_version": "%{VERSION}",
- "embeddings_version": "%{VERSION}",
- "manticore_mode": "#!/[A-Za-z]+/!#",
- "manticore_binlog_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_auto_optimize_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_query_log_format": "#!/[A-Za-z]+/!#",
- "manticore_max_allowed_packet": "%{NUMBER}",
- "manticore_pseudo_sharding_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_secondary_indexes_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_accurate_aggregation_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_distinct_precision_threshold": "%{NUMBER}"
- }test/clt-tests/buddy/test-unserialize-error-absence-kafka-operations.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
seq 1 5 | xargs -I{} bash -c "mysql -h0 -P9306 -e 'DROP MATERIALIZED VIEW view_table;' || true; mysql -h0 -P9306 -e 'DROP SOURCE kafka;' || true; mysql -h0 -P9306 -e 'DROP TABLE kafka_test;' || true; mysql -h0 -P9306 -e \"CREATE SOURCE kafka (id bigint, term text, abbrev text, GlossDef json) type=\\\"kafka\\\" broker_list=\\\"kafka:9092\\\" topic_list=\\\"my-data\\\" consumer_group=\\\"manticore\\\" num_consumers=\\\"2\\\" batch=50; CREATE TABLE kafka_test (id bigint, name text, short_name text, received_at text, size multi); CREATE MATERIALIZED VIEW view_table TO kafka_test AS SELECT id, term as name, abbrev as short_name, UTC_TIMESTAMP() as received_at, GlossDef.size as size FROM kafka; SHOW SOURCES; SHOW TABLES; SHOW MVS;\""
––– output –––
- ERROR 1064 (42000) at line 1: DROP TABLE failed: unknown table 'kafka_test'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka_test | rt |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | view_table |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
––– input –––
tail -n 1000 /var/log/manticore/searchd.log | grep -i "unserialize"
––– output –––
OKtest/clt-tests/buddy/test-log-level-buddy-sync.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:58.163 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:58.164 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:58.165 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
BUDDY_PORT=$(grep "started.*at http://127.0.0.1:" /var/log/manticore/searchd.log | tail -1 | sed 's/.*http:\/\/127.0.0.1:\([0-9]*\).*/\1/'); echo "Buddy API port: $BUDDY_PORT"
––– output –––
- Buddy API port: %{NUMBER}
+ Buddy API port:
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- info
––– input –––
curl -s -X POST -d '{"log_level":"debug"}' localhost:$BUDDY_PORT/config; echo
––– output –––
- {"log_level":"debug"}
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debug
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debug;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debug
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debugv;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debugv
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debugvv;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debugvv
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=info;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- info |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI: test/clt-tests/replication/test-replication-with-mysqldump.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=c
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo 'the, and, of' > /tmp/stopwords.txt
––– output –––
OK
––– input –––
echo 'cat => feline' > /tmp/exceptions.txt
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='columnar' morphology='stem_en' stopwords='/tmp/stopwords.txt' exceptions='/tmp/exceptions.txt' rt_mem_limit='256M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO tbl1 VALUES (1, 'The cat runs', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo '=> faster' > /tmp/wordforms.txt
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' morphology='stem_ru' wordforms='/tmp/wordforms.txt' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (1, 'Текст на русском', 84, 2.71, '{\"ключ\":\"значение\"}', (4,5,6), 'строка', 0, '2023-11-15 08:30:00', (987654321098765432, 123456789012345678), (0.4, 0.3, 0.2, 0.1));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (2, 'Прыжок', 19, 1.62, '{\"движение\":\"прыжок\",\"число\":3}', (7,8,9), 'пример', 1, '2024-06-10 15:45:00', (345678901234567890, 567890123456789012), (0.8, 0.7, 0.6, 0.5));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "CREATE TABLE tbl3 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SHOW TABLE tbl3 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (1, 'Plain example', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'plain_string', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "ALTER CLUSTER c ADD tbl3;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysqldump --skip-lock-tables -etc --column-statistics=0 --replace -u cluster -h0 -P1306 --skip-comments manticore c:tbl1 | mysql -h0 -P1306; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
for port in 1306 2306 3306; do mysql -h0 -P$port -e "SET GLOBAL cluster_user = 'new_username';"; done
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "DELETE FROM c:tbl2 WHERE id = 2;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysqldump -etc --skip-lock-tables --column-statistics=0 --replace --net-buffer-length=16M -u new_username -h0 -P2306 --skip-comments manticore c:tbl1 c:tbl2 c:tbl3 | mysql -h0 -P3306; echo $?
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c DROP tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– input –––
echo 'new, stop, words' > /tmp/new_stopwords.txt; echo $?
––– output –––
OK
––– input –––
echo 'dog => canine' > /tmp/new_exceptions.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER TABLE tbl1 stopwords='/tmp/new_stopwords.txt' exceptions='/tmp/new_exceptions.txt';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE c:tbl1 SETTINGS\G;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c DROP tbl2;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– input –––
ls /usr/share/manticore/ru.pak
––– output –––
- /usr/share/manticore/ru.pak
+ ls: cannot access '/usr/share/manticore/ru.pak': No such file or directory
––– input –––
mysql -h0 -P2306 -e "ALTER TABLE tbl2 morphology='lemmatize_ru';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: 'tbl2' failed to create dictionary, error 'failed to open /usr/share/manticore//ru.pak: No such file or directory'
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = rowwise
- morphology = lemmatize_ru
+ morphology = stem_ru
wordforms = /var/log/manticore-2/tbl2/wordforms_chunk0_0.txt
rt_mem_limit = 536870912
––– input –––
mysqldump -etc --column-statistics=0 --replace -u new_username -h0 -P2306 --skip-comments manticore tbl2 | mysql -P2306 -h0; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– 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:
- +------+----------------------------------+-----------------------------------------+
+ Data from c:tbl2 on port 2306:
- | id | f | highlight() |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
- | 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 –––
OK
––– input –––
rm -f /tmp/stopwords.txt /tmp/exceptions.txt /tmp/wordforms.txt /var/lib/manticore/tbl3.conf dump.sql
––– output –––
OK |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/vector-knn/test-knn-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:05.068 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:05.068 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:05.069 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "create table test ( title text, image_vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2' );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into test values ( 1, 'yellow bag', (0.653448,0.192478,0.017971,0.339821) ), ( 2, 'white bag', (-0.148894,0.748278,0.091892,-0.095406) );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from test where knn ( image_vector, 5, (0.286569,-0.031816,0.066684,0.032926), {ef=2000} );"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 1 | 0.28146550 |
- | 2 | 0.81527930 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from test where knn ( image_vector, 5, 1 );"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 2 | 1.14755321 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "select * from test where knn ( image_vector, 5, 1 );"
––– output –––
- +------+-----------+---------------------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | image_vector | @knn_dist |
- +------+-----------+---------------------------------------+------------+
- | 2 | white bag | -0.148894,0.748278,0.091892,-0.095406 | 1.14755321 |
- +------+-----------+---------------------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(*) from test where knn ( image_vector, 5, 1 );"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, model TEXT, color TEXT, sold BOOL, date_added BIGINT, storage_capacity UINT, release_year UINT, price FLOAT, discounted_price FLOAT, product_codes JSON, values JSON, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test (id, model, color, sold, date_added, storage_capacity, release_year, price, discounted_price, product_codes, values, additional_info, vector) VALUES (1, 'Model_1', 'Color_1', 1, 1620590570251, 512, 2022, 654.19, 855.34, '[81,56,60]', '[96,389,27]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.1, 0.2, 0.3, 0.4)), (2, 'Model_2', 'Color_2', 1, 1689374130160, 128, 2020, 663.70, 767.99, '[12,39,30]', '[226,305,123]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.286569, -0.031816, 0.066684, 0.032926)), (3, 'Model_3', 'Color_3', 0, 1640782021529, 512, 2020, 676.46, 847.08, '[62,13,4]', '[707,601,608]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.5, 0.7, -0.1, 0.2)), (4, 'Model_4', 'Color_4', 0, 1615319697581, 128, 2020, 424.23, 883.90, '[98,96,89]', '[166,252,510]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.7, -0.8, 0.1, -0.2)), (5, 'Model_5', 'Color_5', 1, 1671157942660, 128, 2021, 1173.29, 977.33, '[27,12,37]', '[988,87,21]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.3, 0.4, 0.5, 0.6)), (6, 'Model_6', 'Color_6', 0, 1609876342571, 256, 2021, 755.99, 665.49, '[5,15,25]', '[15,100,500]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.2, 0.4, -0.6, 0.8)), (7, 'Model_7', 'Color_7', 1, 1648765432160, 64, 2019, 299.99, 199.99, '[77,88,99]', '[99,888,555]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.5, -0.3, 0.9, -0.1)), (8, 'Model_8', 'Color_8', 0, 1654876543130, 256, 2019, 800.99, 699.99, '[22,33,44]', '[66,333,999]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.8, 0.6, 0.2, -0.4)), (9, 'Model_9', 'Color_9', 1, 1631567882541, 128, 2022, 499.99, 399.99, '[11,22,33]', '[111,222,333]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.1, 0.3, -0.5, 0.7)), (10, 'Model_10', 'Color_10', 0, 1678956543120, 512, 2022, 1299.99, 1099.99, '[9,8,7]', '[555,444,333]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.9, 0.1, 0.8, -0.2));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 5 | 0.16000001 |
- | 2 | 0.27772635 |
- | 9 | 0.78000003 |
- | 3 | 0.81000006 |
- | 7 | 1.020000 |
- | 6 | 1.100000 |
- | 10 | 1.260000 |
- | 8 | 1.300000 |
- | 4 | 1.75999987 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 5 | 0.16000001 |
- | 2 | 0.27772635 |
- | 9 | 0.78000003 |
- | 3 | 0.81000006 |
- | 7 | 1.020000 |
- | 6 | 1.100000 |
- | 10 | 1.260000 |
- | 8 | 1.300000 |
- | 4 | 1.75999987 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM knn_test WHERE knn(vector, 5, 1)\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 5
- model: Model_5
- color: Color_5
- sold: 1
- date_added: 1671157942660
- storage_capacity: 128
- release_year: 2021
- price: 1173.290039
- discounted_price: 977.330017
- product_codes: [27,12,37]
- values: [988,87,21]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.300000,0.400000,0.500000,0.600000
- @knn_dist: 0.16000001
- *************************** 2. row ***************************
- id: 2
- model: Model_2
- color: Color_2
- sold: 1
- date_added: 1689374130160
- storage_capacity: 128
- release_year: 2020
- price: 663.700012
- discounted_price: 767.989990
- product_codes: [12,39,30]
- values: [226,305,123]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.286569,-0.031816,0.066684,0.032926
- @knn_dist: 0.27772635
- *************************** 3. row ***************************
- id: 9
- model: Model_9
- color: Color_9
- sold: 1
- date_added: 1631567882541
- storage_capacity: 128
- release_year: 2022
- price: 499.989990
- discounted_price: 399.989990
- product_codes: [11,22,33]
- values: [111,222,333]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.100000,0.300000,-0.500000,0.700000
- @knn_dist: 0.78000003
- *************************** 4. row ***************************
- id: 3
- model: Model_3
- color: Color_3
- sold: 0
- date_added: 1640782021529
- storage_capacity: 512
- release_year: 2020
- price: 676.460022
- discounted_price: 847.080017
- product_codes: [62,13,4]
- values: [707,601,608]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.500000,0.700000,-0.100000,0.200000
- @knn_dist: 0.81000006
- *************************** 5. row ***************************
- id: 7
- model: Model_7
- color: Color_7
- sold: 1
- date_added: 1648765432160
- storage_capacity: 64
- release_year: 2019
- price: 299.989990
- discounted_price: 199.990005
- product_codes: [77,88,99]
- values: [99,888,555]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.500000,-0.300000,0.900000,-0.100000
- @knn_dist: 1.020000
- *************************** 6. row ***************************
- id: 6
- model: Model_6
- color: Color_6
- sold: 0
- date_added: 1609876342571
- storage_capacity: 256
- release_year: 2021
- price: 755.989990
- discounted_price: 665.489990
- product_codes: [5,15,25]
- values: [15,100,500]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.200000,0.400000,-0.600000,0.800000
- @knn_dist: 1.100000
- *************************** 7. row ***************************
- id: 10
- model: Model_10
- color: Color_10
- sold: 0
- date_added: 1678956543120
- storage_capacity: 512
- release_year: 2022
- price: 1299.989990
- discounted_price: 1099.989990
- product_codes: [9,8,7]
- values: [555,444,333]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.900000,0.100000,0.800000,-0.200000
- @knn_dist: 1.260000
- *************************** 8. row ***************************
- id: 8
- model: Model_8
- color: Color_8
- sold: 0
- date_added: 1654876543130
- storage_capacity: 256
- release_year: 2019
- price: 800.989990
- discounted_price: 699.989990
- product_codes: [22,33,44]
- values: [66,333,999]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.800000,0.600000,0.200000,-0.400000
- @knn_dist: 1.300000
- *************************** 9. row ***************************
- id: 4
- model: Model_4
- color: Color_4
- sold: 0
- date_added: 1615319697581
- storage_capacity: 128
- release_year: 2020
- price: 424.230011
- discounted_price: 883.900024
- product_codes: [98,96,89]
- values: [166,252,510]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.700000,-0.800000,0.100000,-0.200000
- @knn_dist: 1.75999987
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 10 |
- +----------+test/clt-tests/vector-knn/test-knn-validation.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Manticore started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore started!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, title TEXT, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test VALUES (1, 'first', (0.1, 0.2, 0.3, 0.4)), (2, 'second', (0.5, 0.6, 0.7, 0.8)), (3, 'third', (0.9, 0.1, 0.2, 0.3));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4));"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- | 3 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, -1, (0.1, 0.2, 0.3, 0.4));" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: k parameter must be positive near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {ef=-100});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'ef' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {oversampling=-2.0});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'oversampling' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 0, (0.1, 0.2, 0.3, 0.4));" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: k parameter must be positive near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {oversampling=0});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'oversampling' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2}}' | python3 -m json.tool | grep '"total"'
––– output –––
- "total": 3,
+ Expecting value: line 1 column 1 (char 0)
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":-1}}'
––– output –––
- {"error":"k parameter must be positive"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"ef":-100}}'
––– output –––
- {"error":"ef parameter must be non-negative"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"oversampling":-2.0}}'
––– output –––
- {"error":"oversampling parameter must be >= 1.0"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":0}}'
––– output –––
- {"error":"k parameter must be positive"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"ef":0}}'
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":3,"total_relation":"eq","hits":[{"_id":1,"_score":1,"_knn_dist":0.000000,"_source":{"title":"first","vector":[0.100000,0.200000,0.300000,0.400000]}},{"_id":2,"_score":1,"_knn_dist":0.64000005,"_source":{"title":"second","vector":[0.500000,0.600000,0.700000,0.800000]}},{"_id":3,"_score":1,"_knn_dist":0.66999990,"_source":{"title":"third","vector":[0.900000,0.100000,0.200000,0.300000]}}]}}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"oversampling":0}}'
––– output –––
- {"error":"oversampling parameter must be >= 1.0"}test/clt-tests/vector-knn/test-knn-search-by-doc-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:16.670 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:16.671 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:16.671 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s localhost:9308/cli -d "create table test ( test_vector float_vector knn_type='hnsw' knn_dims='2' hnsw_similarity='l2' )" > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s localhost:9308/cli -d 'insert into test values ( 2, (0.2,0.3) ), ( 3, (0.2,0.7) ), ( 4, (0.3,0.5) ), ( 5, (0.5,0.5) ), ( 6, (0.7,0.2) ), ( 10, (0.9,0.9) )' > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s localhost:9308/search -d '{"index":"test","knn":{"field":"test_vector","doc_id":3,"k":5}}'; echo $?
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"eq","hits":[{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]+/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{1}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}}]}}0
+ 7test/clt-tests/test-configuration/timezone.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: #!/[0-9a-zA-Z]\w+/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select curtime()\G" | awk 'NR>1 {print $2}' > /tmp/utc.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cat /tmp/utc.txt
––– output –––
- #!/\d+:\d+:\d+/!#
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
mysql -h0 -P9306 -e "set global timezone='UTC';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: UTC
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Bangkok';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select curtime()\G" | awk 'NR>1 {print $2}' > /tmp/bkk.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cat /tmp/bkk.txt
––– output –––
- #!/\d+:\d+:\d+/!#
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Bangkok
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
[ $(( ($(date -d "$(cat /tmp/bkk.txt)" +%s) - $(date -d "$(cat /tmp/utc.txt)" +%s) + 43200) % 86400 - 43200 >= 25200 )) ] && echo "At least 7 hours apart" || echo "Less than 7 hours apart"
––– output –––
OK
––– input –––
cp /etc/manticoresearch/manticore.conf /tmp/manticore.conf.backup
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=Asia/Tokyo && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Tokyo
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as tokyo_hour\G" | grep "tokyo_hour:" | awk '{print $2}' > /tmp/tokyo_hour.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=UTC && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: UTC
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as utc_hour\G" | grep "utc_hour:" | awk '{print $2}' > /tmp/tz_utc_hour.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cp -P /etc/localtime /tmp/localtime.backup
––– output –––
OK
––– input –––
cp /etc/timezone /tmp/timezone.backup
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
ln -snf /usr/share/zoneinfo/Asia/Singapore /etc/localtime && echo "Asia/Singapore" > /etc/timezone
––– output –––
OK
––– input –––
unset TZ && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Singapore
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
ln -snf /usr/share/zoneinfo/Europe/London /etc/localtime && echo "Europe/London" > /etc/timezone
––– output –––
OK
––– input –––
searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Europe/London
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Europe/London works correctly from system files"
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
cp /etc/manticoresearch/manticore.conf /tmp/manticore_tz.conf
––– output –––
OK
––– input –––
sed -i '/^searchd {/a\ timezone = America/New_York' /tmp/manticore_tz.conf
––– output –––
OK
––– input –––
searchd --config /tmp/manticore_tz.conf 2>&1 | head -2 | grep "Using time zone"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: America/New_York
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait --config /tmp/manticore_tz.conf 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=Africa/Cairo
––– output –––
OK
––– input –––
ln -snf /usr/share/zoneinfo/Australia/Sydney /etc/localtime && echo "Australia/Sydney" > /etc/timezone
––– output –––
OK
––– input –––
searchd --config /tmp/manticore_tz.conf 2>&1 | head -2 | grep "Using time zone"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: America/New_York
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Priority test: Config (America/New_York) overrides TZ (Africa/Cairo) and system (Australia/Sydney)"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "set global timezone='UTC';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(1615787586) as h_utc\G" | grep "h_utc:" | awk '{print $2}' > /tmp/hour_utc.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Tokyo';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(1615787586) as h_tokyo\G" | grep "h_tokyo:" | awk '{print $2}' > /tmp/hour_tokyo.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
UTC_H=$(cat /tmp/hour_utc.txt)
––– output –––
OK
––– input –––
TOKYO_H=$(cat /tmp/hour_tokyo.txt)
––– output –––
OK
––– input –––
DIFF=$(( (TOKYO_H - UTC_H + 24) % 24 ))
––– output –––
OK
––– input –––
if [ $DIFF -eq 9 ]; then echo "HOUR(timestamp) works: Tokyo is UTC+9"; else echo "HOUR() error: diff is $DIFF, expected 9"; fi
––– output –––
- HOUR(timestamp) works: Tokyo is UTC+9
+ HOUR() error: diff is 0, expected 9
––– input –––
mysql -h0 -P9306 -e "set global timezone='GMT';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: GMT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='EST5EDT';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: EST5EDT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Kolkata';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Kolkata
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as kolkata_h, minute(now()) as kolkata_m\G" | grep -E "kolkata_h:|kolkata_m:" | awk '{print $2}' | tr '\n' ':' | sed 's/:$//' > /tmp/kolkata_time.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Kolkata (UTC+5:30) time: $(cat /tmp/kolkata_time.txt)"
––– output –––
- #!/Kolkata \(UTC\+5:30\) time: .*/!#
+ Kolkata (UTC+5:30) time:
––– input –––
searchd --stopwait --config /tmp/manticore_tz.conf 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
mv /tmp/localtime.backup /etc/localtime
––– output –––
OK
––– input –––
mv /tmp/timezone.backup /etc/timezone
––– output –––
OK
––– input –––
mv /tmp/manticore.conf.backup /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /tmp/manticore_tz.conf /tmp/*.txt
––– output –––
OKtest/clt-tests/vector-knn/tets-insert-knn-errors.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:22:39.659 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:22:39.659 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:22:39.660 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- ERROR 1064 (42000) at line 1: row 1, column 3: incompatible value specified for a float vector column
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test"
––– output –––
- +----------+----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +----------+----------------------------------------------------------------------+
- | knn_test | CREATE TABLE knn_test (
- id bigint,
- model text,
- vector float_vector
- ) |
- +----------+----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test2 (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test2 (id, model, vector) VALUES (1, 'Model_1', (0.286569,-0.031816,0.066684,0.032926))"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test2 WHERE knn(vector, 10, 1)"
––– output –––
- ERROR 1064 (42000) at line 1: table knn_test2: KNN index not enabled for attribute 'vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test2"
––– output –––
- +-----------+-----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-----------------------------------------------------------------------+
- | knn_test2 | CREATE TABLE knn_test2 (
- id bigint,
- model text,
- vector float_vector
- ) |
- +-----------+-----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test3 (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test3 (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- ERROR 1064 (42000) at line 1: row 1, column 3: incompatible value specified for a float vector column
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test3 WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test3"
––– output –––
- +-----------+-----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-----------------------------------------------------------------------+
- | knn_test3 | CREATE TABLE knn_test3 (
- id bigint,
- model text,
- vector float_vector
- ) |
- +-----------+-----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test4 (id BIGINT, model TEXT, vector int)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test4 (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test4 WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test4"
––– output –––
- +-----------+------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+------------------------------------------------------------------+
- | knn_test4 | CREATE TABLE knn_test4 (
- id bigint,
- model text,
- vector integer
- ) |
- +-----------+------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test5 (id BIGINT, model TEXT, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test5 (id, model, vector) VALUES (1, 'Model_1', (0.9012, 0.2126, 0.2879, 0.7552))"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test5 WHERE knn(vector, 10, 1)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test5"
––– output –––
- +-----------+-------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-------------------------------------------------------------------------------------------------------------------------+
- | knn_test5 | CREATE TABLE knn_test5 (
- id bigint,
- model text,
- vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='L2'
- ) |
- +-----------+-------------------------------------------------------------------------------------------------------------------------+test/clt-tests/test-configuration/test-writing-binlog-during-parallel-queries.rec––– input –––
set -b +m; sed -i '/data_dir = \/var\/lib\/manticore/a\ binlog_common = 1\n' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
for i in {1..10}; do rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null; if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi; mysql -P9306 -h0 -e "drop table if exists t1"; mysql -P9306 -h0 -e "drop table if exists t2"; for n in 1 2; do mysql -P9306 -h0 -e "create table t${n}"; done; sleep 1; for n in 1 2; do mysql -P9306 -h0 -e "insert into t${n} values(0)" &>/dev/null; done; wait 5>/dev/null 2>&1; echo $?; mysql -P9306 -h0 -e "show tables\G; select * from t1\G; select * from t2\G;"; mysql -P9306 -h0 -e "flush logs"; done
––– output –––
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER} |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/mysql/random-1m-dump-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
./test/clt-tests/scripts/generate-records.sh 1000000 | mysql -h0 -P9306
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysqldump -h0 -P9306 Manticore 2>/dev/null 1> /tmp/all-databases.sql
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "drop table t"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < /tmp/all-databases.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+test/clt-tests/mysqldump/maria/mcl-id-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-id-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/pq-table-mysqldump.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -P9306 -h0 -e "create table pq(f text) type='percolate'"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "insert into pq(id, query) values(1, '@f abc'),(2, 'def')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "select * from pq"
––– output –––
- +------+--------+------+---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+
––– input –––
mysqldump -h0 -P9306 manticore 2>/dev/null 1> /tmp/pq-dump.sql
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e 'drop table pq'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e 'show tables'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 manticore < /tmp/pq-dump.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from pq;'
––– output –––
- +------+--------+------+---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+test/clt-tests/mysqldump/maria/mcl-id-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/buddy-plugins/test-fuzzy-search.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:10.836 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:10.836 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:10.837 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/name_data.txt
––– output –––
- 1995eec70e60c584bc35ff0688556b94 /tmp/name_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+---------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | username | s |
- +-------+------------------+------+
- | 688 | SHERIE STORY | a |
- | 1422 | TOBY CARO | a |
- | 1627 | RUPERT STORY | a |
- | 2154 | TONY GREY | a |
- | 3759 | TOBY GILCHRIST | a |
- | 5687 | TONY EASTERLING | a |
- | 5835 | TOBY ROBERSON | a |
- | 6281 | TOBY ARAIZA | a |
- | 7311 | ANTONY STOVALL | a |
- | 7475 | TOBY REINHART | a |
- | 8828 | TONYA CALLAHAN | a |
- | 9251 | TOBY LANGFORD | a |
- | 9293 | ZENA STORY | a |
- | 9619 | TONY WHITTINGTON | a |
- | 10167 | LANA STORY | a |
- | 10341 | ANTONY KAYE | a |
- | 12573 | LATONYA CRABTREE | a |
- | 12876 | TOBY MONTENEGRO | a |
- | 13391 | ANTONY CARRILLO | a |
- | 13672 | LEZLIE STORY | a |
- +-------+------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-----------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | username | s |
- +--------+----------------+------+
- | 998829 | EDYTHE VACA | a |
- | 998500 | SETH PHUNG | a |
- | 996507 | SETH LYMAN | a |
- | 995119 | EDYTHE JOHN | a |
- | 993455 | EDYTH ROSADO | a |
- | 992097 | EDYTH RAGAN | a |
- | 989954 | GWENN SMYTH | a |
- | 988823 | SETH WHITTAKER | a |
- | 988755 | SHERRON SMYTH | a |
- | 988366 | LAVONIA SMYTH | a |
- | 986580 | DARNELL SMYTH | a |
- | 986231 | EDYTH BLODGETT | a |
- | 985595 | SETH BACON | a |
- | 982423 | SETH CHATMAN | a |
- | 981115 | KATIE SMYTH | a |
- | 979541 | EDYTHE CLAYTON | a |
- | 979093 | SETH BURROUGHS | a |
- | 978812 | EDYTH GULLEY | a |
- | 975994 | SETH PARHAM | a |
- | 975841 | ALEIDA SMYTH | 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"'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+--------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, ranker=expr('sum((4*lcs+2*(min_hit_pos=1)+exact_hit)*user_weight)*1000+bm25'), field_weights=(username=1), fuzzy=1;"
––– output –––
- +----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +----------------+
- | MINH FENNELL |
- | MINH MAZUR |
- | MINH VILLEGAS |
- | MINH TILLER |
- | MINH VOGT |
- | MINH SHAW |
- | MINH STEADMAN |
- | MINH PEAK |
- | MINH ROOT |
- | MINH PATTERSON |
- | MINH BURDETTE |
- | MINH ABNEY |
- | MINH DOLAN |
- | MINH RUDD |
- | MINH TOLBERT |
- | MINH CRANDALL |
- | MINH JAIME |
- | MINH ISAACSON |
- | MINH BONILLA |
- | MINH WAHL |
- +----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, field_weights=(username=1), fuzzy=1;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +-----------------+
- | SYDNEY SMYTH |
- | CHERILYN SMYTH |
- | SATURNINA SMYTH |
- | LYNN SMYTH |
- | STEVEN SMYTH |
- | JASMIN SMYTH |
- | BERYL SMYTH |
- | JACK SMYTH |
- | CAROLEE SMYTH |
- | CARON SMYTH |
- | ALFREDO SMYTH |
- | ALTA SMYTH |
- | VIKI SMYTH |
- | CHANA SMYTH |
- | HYUN SMYTH |
- | ROGER SMYTH |
- | LINDSEY SMYTH |
- | WILFORD SMYTH |
- | ARLINE SMYTH |
- | APRYL SMYTH |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, ranker=expr('sum((4*lcs+2*(min_hit_pos=1)+exact_hit)*user_weight)*1000+bm25'), fuzzy=1;"
––– output –––
- +----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +----------------+
- | MINH FENNELL |
- | MINH MAZUR |
- | MINH VILLEGAS |
- | MINH TILLER |
- | MINH VOGT |
- | MINH SHAW |
- | MINH STEADMAN |
- | MINH PEAK |
- | MINH ROOT |
- | MINH PATTERSON |
- | MINH BURDETTE |
- | MINH ABNEY |
- | MINH DOLAN |
- | MINH RUDD |
- | MINH TOLBERT |
- | MINH CRANDALL |
- | MINH JAIME |
- | MINH ISAACSON |
- | MINH BONILLA |
- | MINH WAHL |
- +----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, fuzzy=1;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +-----------------+
- | SYDNEY SMYTH |
- | CHERILYN SMYTH |
- | SATURNINA SMYTH |
- | LYNN SMYTH |
- | STEVEN SMYTH |
- | JASMIN SMYTH |
- | BERYL SMYTH |
- | JACK SMYTH |
- | CAROLEE SMYTH |
- | CARON SMYTH |
- | ALFREDO SMYTH |
- | ALTA SMYTH |
- | VIKI SMYTH |
- | CHANA SMYTH |
- | HYUN SMYTH |
- | ROGER SMYTH |
- | LINDSEY SMYTH |
- | WILFORD SMYTH |
- | ARLINE SMYTH |
- | APRYL SMYTH |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id ASC OPTION fuzzy=0;" > /tmp/result_fuzzy0.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id ASC;" > /tmp/result_no_fuzzy.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
diff /tmp/result_fuzzy0.txt /tmp/result_no_fuzzy.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | joe |
- | joey |
- | john |
- | jon |
- | jose |
- | joy |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | cami |
- | darci |
- | joan |
- | jody |
- | joe |
- | joel |
- | joey |
- | john |
- | johnie |
- | johnny |
- | joi |
- | jon |
- | jonas |
- | jordan |
- | jorge |
- | jose |
- | joseph |
- | joshi |
- | joshua |
- | joy |
- | joyce |
- | kaci |
- | kami |
- | kimi |
- | laci |
- | luci |
- | marci |
- | mi |
- | nanci |
- | naomi |
- | neomi |
- | nohemi |
- | ricci |
- | staci |
- | tami |
- | tammi |
- | tobias |
- | todd |
- | toi |
- | tom |
- | tomas |
- | tomi |
- | toney |
- | traci |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | chang |
- | chong |
- | chung |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS tbl1; CREATE TABLE tbl1 (title TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM \`tbl1\` WHERE MATCH('abc') OPTION fuzzy = 1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-----------+
- | some |
- | something |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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. Use: MATCH('search query') or MATCH('search query', table_name)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-----------+
- | some |
- | something |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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. Use: MATCH('search query') or MATCH('search query', table_name)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +---------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | command | result |
- +---------+--------+
- | sleep | #!/[0-9]{1}.[0-9]{3}/!# |
- +---------+--------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t VALUES (1, 'abcdef'), (2, 'abcd efgh');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcdef'); SHOW META;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 "insert into t values(3, 'aa defghi xxx');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('aa def ghi xxx') option fuzzy=1, layouts='';"
––– output –––
- +------+---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f |
- +------+---------------+
- | 3 | aa defghi xxx |
- +------+---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1; SHOW META;"
––– output –––
- +------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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');
+ grep: /var/log/manticore/query.log: No such file or directory
- /* #!/[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('aa def ghi xxx') option fuzzy=1, layouts='';
- /* #!/[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 –––
- +----------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f |
- +------+-----------+
- | 1 | abcdef |
- | 2 | abcd efgh |
- +------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('\$#@\!') OPTION fuzzy=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS idx1; CREATE TABLE idx1(value TEXT) min_infix_len='2';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO idx1(value) VALUES ('340');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1');"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-------+
- | 340 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('3', 'idx1');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1', 1 AS fuzziness);"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-------+
- | 340 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('3*', 'idx1', 1 AS fuzziness);"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
echo -e "1\tabcdef\n2\tabcd efgh\n3\trandom text" > /tmp/data.tsv; echo $?
––– output –––
OK
––– input –––
mkdir -p /tmp/idx_plain && chmod 777 /tmp/idx_plain; echo $?
––– output –––
OK
––– input –––
indexer --all --config /tmp/manticore_idx.conf > /dev/null 2>&1; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE idx_plain SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcef') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('nonexistent') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('abc', 'idx_plain');"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ran', 'idx_plain');"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('zzz', 'idx_plain');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=0;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcd efgh') OPTION fuzzy=0;"
––– output –––
OKtest/clt-tests/buddy-plugins/test-skipping-plugin-loading.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:11.286 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:11.286 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:11.287 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-replace"
––– output –––
- Package: manticoresoftware/buddy-plugin-replace-select
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Package: manticoresoftware/buddy-plugin-replace
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS tbl;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | tbl | rt |
- +-------+------+
––– input –––
./test/clt-tests/scripts/generate-1mln-records.sh 1000
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | tbl | rt |
- +-------+------+
- +----------+
- | count(*) |
- +----------+
- | 1000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 15 PRO' WHERE id = 101; SELECT * FROM tbl WHERE id = 101\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 101
- model: iPhone 15 PRO
- storage_capacity: 256
- color: silver
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- date_added: 2224442480
- product_codes: 1,2,3
- values: 523456764345678976,9223372036854775807
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: 0.773448,0.312478,0.137971,0.459821
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv --skip=manticoresoftware/buddy-plugin-replace' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:21.994 2026] [43] watchdog: main process 44 forked ok
+ [Sun Mar 15 09:21:21.994 2026] [44] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:21.995 2026] [43] watchdog: main process 44 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99 WHERE id = 117; select * from tbl WHERE id = 117;"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET price =15000.99 WHERE id = 117'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-replace"
––– output –––
- Package: manticoresoftware/buddy-plugin-replace-select
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
- Package: manticoresoftware/buddy-plugin-alter-rename-table
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2001(f text, s string); insert into index2001 values(01,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-----------+------+
- | index2001 | rt |
- | tbl | rt |
- +-----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2001 RENAME new_index2001;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | tbl | rt |
- +---------------+------+
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/buddy_path =/c\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv --skip=manticoresoftware/buddy-plugin-alter-rename-table --skip=manticoresoftware/buddy-plugin-replace' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:32.734 2026] [65] watchdog: main process 66 forked ok
+ [Sun Mar 15 09:21:32.734 2026] [66] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:32.735 2026] [65] watchdog: main process 66 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE new_index2001 RENAME new_index2002;"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting '=' near 'new_index2002'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | tbl | rt |
- +---------------+------+
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/buddy_path =/c\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:43.246 2026] [82] watchdog: main process 83 forked ok
+ [Sun Mar 15 09:21:43.246 2026] [83] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:43.247 2026] [82] watchdog: main process 83 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
- Package: manticoresoftware/buddy-plugin-alter-rename-table
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE new_index2001 RENAME new_index2002;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2002 | rt |
- | tbl | rt |
- +---------------+------+test/clt-tests/buddy-plugins/test-prometheus-exporter.rec––– input –––
export SEARCHD_FLAGS="--iostats --cpustats"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:59.932 2026] [21] watchdog: main process 22 forked ok
+ [Sun Mar 15 09:20:59.932 2026] [22] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:59.933 2026] [21] watchdog: main process 22 exited cleanly (exit code 1), shutting down
––– input –––
curl -s 0:9308/metrics > /tmp/exporter_unfiltered_output.txt
––– output –––
OK
––– input –––
cat /tmp/exporter_unfiltered_output.txt | grep -e "^manticore" | cut -d" " -f1 | sed 's/^manticore_//' | sed 's/qcache_thresh_microseconds/qcache_thresh_msec/' | sort > /tmp/exporter_output.txt
––– output –––
OK
––– input –––
searchd --iostats --cpustats --status | cut -d":" -f1 | tail -n +10 | sort > /tmp/searchd_output.txt
––– output –––
OK
––– input –––
ls -1 /tmp | grep -E "^(exporter|searchd).*\.txt$"
––– output –––
OK
––– input –––
cat /tmp/exporter_unfiltered_output.txt | grep "Warning"
––– output –––
OK
––– input –––
while read -r line; do grep -q "^$line" /tmp/exporter_output.txt || echo "$line"; done < /tmp/searchd_output.txt
––– output –––
OK
––– input –––
echo "new-option" >> /tmp/searchd_output.txt
––– output –––
OK
––– input –––
while read -r line; do grep -q "^$line" /tmp/exporter_output.txt || echo "$line"; done < /tmp/searchd_output.txt
––– output –––
OKtest/clt-tests/bugs/1335-test-issue.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
php ./test/clt-tests/scripts/issue-1335-dump.php 10000 30 800000
––– output –––
- finished inserting
+ Fatal error: Uncaught mysqli_sql_exception: Connection refused in /.clt/test/clt-tests/scripts/issue-1335-dump.php:54
- %{NUMBER} docs per sec
+ Stack trace:
+ #0 /.clt/test/clt-tests/scripts/issue-1335-dump.php(54): mysqli_connect('127.0.0.1', '', Object(SensitiveParameterValue), '', 9306)
+ #1 {main}
+ thrown in /.clt/test/clt-tests/scripts/issue-1335-dump.php on line 54
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): %{NUMBER}
––– input –––
timeout 10 mysql -h0 -P9306 -e "select * from test where MATCH('@street walnut blvd') and country='US'\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 2. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 3. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 4. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 5. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 6. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 7. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 8. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 9. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 10. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 11. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 12. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 13. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 14. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 15. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 16. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 17. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 18. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 19. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 20. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: UStest/clt-tests/buddy-plugins/test-inconsistent-comunication-with-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:45.160 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:45.160 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:45.161 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]test/clt-tests/buddy-plugins/test-fuzzy-trailing-semicolon.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(id, f) VALUES (1, 'ящик'), (2, 'коробка');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s "0:9308/sql?mode=raw" -d "select * from t where match('ящик') option fuzzy=1;"; echo $?
––– output –––
- {"error":"Fuzzy search requires min_infix_len to be set"}0
+ 7
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS t; CREATE TABLE t(f TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(id, f) VALUES (1, 'ящик'), (2, 'коробка');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s "0:9308/sql?mode=raw" -d "select * from t where match('ящик') option fuzzy=1;"; echo $?
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"f":{"type":"string"}}],"data":[{"id":1,"f":"ящик"}]}]0
+ 7test/clt-tests/bugs/3037-secondary-indexes-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load --quiet --json --port=9306 --init="CREATE TABLE task (id BIGINT, status UINT, enddatetime TIMESTAMP, isoverdue BOOL)" --load="INSERT INTO task (id, status, enddatetime, isoverdue) VALUES (<increment>, <int/1/8>, <int/1577836800/1672531200>, 0)" --batch-size=1000 --threads=4 --total=10000 > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "FLUSH RAMCHUNK task;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "OPTIMIZE TABLE task OPTION cutoff=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "SHOW TABLE task STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 1 |
- +---------------+-------+
––– input –––
mysql -P9306 -h0 -e "DESCRIBE task;"
––– output –––
- +-------------+-----------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-------------+-----------+------------+
- | id | bigint | |
- | status | uint | |
- | enddatetime | timestamp | |
- | isoverdue | bool | |
- +-------------+-----------+------------+
––– input –––
mysql -P9306 -h0 -e "SET GLOBAL secondary_indexes=1; select id,status from task where isOverdue = 0 and status not in (1,4,5,6,7,8) ORDER BY id ASC LIMIT 10 /*+ SecondaryIndex(status) */; show meta;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | status |
- +------+--------+
- | 5 | 2 |
- | 7 | 3 |
- | 10 | 3 |
- | 14 | 2 |
- | 17 | 2 |
- | 20 | 3 |
- | 33 | 2 |
- | 36 | 2 |
- | 37 | 2 |
- | 38 | 2 |
- +------+--------+
- +----------------+------------------------------+
- | Variable_name | Value |
- +----------------+------------------------------+
- | total | %{NUMBER} |
- | total_found | %{NUMBER} |
- | total_relation | eq |
- | time | %{NUMBER}.%{NUMBER} |
- | index | status:SecondaryIndex (100%) |
- +----------------+------------------------------+
––– input –––
mysql -P9306 -h0 -e "SET GLOBAL secondary_indexes=0; select id,status from task where isOverdue = 0 and status not in (1,4,5,6,7,8) ORDER BY id ASC LIMIT 10 /*+ SecondaryIndex(status) */; show meta;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | status |
- +------+--------+
- | 5 | 2 |
- | 7 | 3 |
- | 10 | 3 |
- | 14 | 2 |
- | 17 | 2 |
- | 20 | 3 |
- | 33 | 2 |
- | 36 | 2 |
- | 37 | 2 |
- | 38 | 2 |
- +------+--------+
- +----------------+------------------------------------------------------------------------------------------------------------------------------+
- | Variable_name | Value |
- +----------------+------------------------------------------------------------------------------------------------------------------------------+
- | warning | table task: hint error: secondary indexes are disabled; hint error: requested hint type not supported for attribute 'status' |
- | total | %{NUMBER} |
- | total_found | %{NUMBER} |
- | total_relation | eq |
- | time | %{NUMBER}.%{NUMBER} |
- +----------------+------------------------------------------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/bugs/3844-max-ft-field-crash.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(s text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t values(1, 'a');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: MAX() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: AVG() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: MIN() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: SUM() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists t_str_rowwise; create table t_str_rowwise(category_id int, name string, price int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t_str_rowwise(id, category_id, name, price) values(1, 1, 'apple', 10), (2, 1, 'banana', 15), (3, 2, 'apple', 20), (4, 2, 'cherry', 25), (5, 1, 'date', 30);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select name, count(*), sum(price), max(price), min(price), avg(price) from t_str_rowwise group by name order by count(*) desc;"
––– output –––
- +--------+----------+------------+------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name | count(*) | sum(price) | max(price) | min(price) | avg(price) |
- +--------+----------+------------+------------+------------+------------+
- | apple | 2 | 30 | 20 | 10 | 15.000000 |
- | banana | 1 | 15 | 15 | 15 | 15.000000 |
- | cherry | 1 | 25 | 25 | 25 | 25.000000 |
- | date | 1 | 30 | 30 | 30 | 30.000000 |
- +--------+----------+------------+------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(distinct name) from t_str_rowwise;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(distinct name) |
- +----------------------+
- | 4 |
- +----------------------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t_str_columnar; create table t_str_columnar(category_id int, name string, price int) engine='columnar';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t_str_columnar(id, category_id, name, price) values(1, 1, 'apple', 10), (2, 1, 'banana', 15), (3, 2, 'apple', 20), (4, 2, 'cherry', 25), (5, 1, 'date', 30);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select name, count(*), sum(price), max(price), min(price), avg(price) from t_str_columnar group by name order by count(*) desc;"
––– output –––
- +--------+----------+------------+------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name | count(*) | sum(price) | max(price) | min(price) | avg(price) |
- +--------+----------+------------+------------+------------+------------+
- | apple | 2 | 30 | 20 | 10 | 15.000000 |
- | banana | 1 | 15 | 15 | 15 | 15.000000 |
- | cherry | 1 | 25 | 25 | 25 | 25.000000 |
- | date | 1 | 30 | 30 | 30 | 30.000000 |
- +--------+----------+------------+------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(distinct name) from t_str_columnar;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(distinct name) |
- +----------------------+
- | 4 |
- +----------------------+test/clt-tests/bugs/4009-qcache-secondaryindex-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load \
--batch-size=1000 \
--threads=4 \
--total=1000000 \
--init="CREATE TABLE test(id bigint, name text, type int)" \
--load="INSERT INTO test(id,name,type) VALUES(<increment>,'<text/10/100>',<int/1/100>)" \
--quiet > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL qcache_max_bytes=16000000; SET GLOBAL qcache_thresh_msec=1; SET GLOBAL qcache_ttl_sec=180;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard');"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 229322 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW STATUS LIKE 'qcache_hits'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Counter: qcache_hits
- Value: 0
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW STATUS LIKE 'qcache_hits'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Counter: qcache_hits
- Value: %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "SELECT sum(type), count(*) FROM test WHERE MATCH('hard') AND type=5 OPTION max_query_time=1\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- sum(type): %{NUMBER}
- count(*): %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "SELECT sum(type), count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- sum(type): 11260
- count(*): 2252
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL qcache_max_bytes=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard');"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 229322 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+test/clt-tests/bugs/3602-knn-dist-attribute-error.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e 'drop table if exists companysearch;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "create table companysearch(f text, \`embeddings\` float_vector knn_type='hnsw' knn_dims='2' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into companysearch values(1, 'web', (0,0));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM companysearch WHERE knn(embeddings, 5, (1,1)) AND MATCH('web') OPTION ranker=expr('knn_dist()');"
––– output –––
- ERROR 1064 (42000) at line 1: table companysearch: KNN_DIST() attribute not available in this context
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/bugs/4176-attach-rt-externals.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mkdir -p /var/lib/manticore/ext_rt && \
echo "sweuniq" > /var/lib/manticore/ext_rt/sw_e.txt && \
echo "e1 => e1r" > /var/lib/manticore/ext_rt/wf_e1.txt && \
echo "e2 => e2r" > /var/lib/manticore/ext_rt/wf_e2.txt && \
echo "exce => excex" > /var/lib/manticore/ext_rt/exc_e.txt && \
echo "swauniq" > /var/lib/manticore/ext_rt/sw_a1.txt && \
echo "swauniqb" > /var/lib/manticore/ext_rt/sw_a2.txt && \
echo "a1 => a1r" > /var/lib/manticore/ext_rt/wf_a1.txt && \
echo "exca => excar" > /var/lib/manticore/ext_rt/exc_a.txt && \
echo "swbuniq" > /var/lib/manticore/ext_rt/sw_b1.txt && \
echo "b1 => b1r" > /var/lib/manticore/ext_rt/wf_b1.txt && \
echo "b2 => b2r" > /var/lib/manticore/ext_rt/wf_b2.txt && \
echo "excb => excbr" > /var/lib/manticore/ext_rt/exc_b.txt && \
echo "swcuniq" > /var/lib/manticore/ext_rt/sw_c1.txt && \
echo "swcuniqb" > /var/lib/manticore/ext_rt/sw_c2.txt && \
echo "c1 => c1r" > /var/lib/manticore/ext_rt/wf_c1.txt && \
echo "excc => exccr" > /var/lib/manticore/ext_rt/exc_c.txt && \
echo "swduniq" > /var/lib/manticore/ext_rt/sw_d1.txt && \
echo "d1 => d1r" > /var/lib/manticore/ext_rt/wf_d1.txt && \
echo "d2 => d2r" > /var/lib/manticore/ext_rt/wf_d2.txt && \
echo "excd => excdr" > /var/lib/manticore/ext_rt/exc_d.txt && \
echo "swdstuniq" > /var/lib/manticore/ext_rt/sw_dst.txt && \
echo "dst => dstr" > /var/lib/manticore/ext_rt/wf_dst.txt && \
echo "excdst => excdstr" > /var/lib/manticore/ext_rt/exc_dst.txt && \
echo "swshareduniq" > /var/lib/manticore/ext_rt/sw_shared.txt && \
echo "shared => sharedr" > /var/lib/manticore/ext_rt/wf_shared.txt && \
echo "excshared => excsharedr" > /var/lib/manticore/ext_rt/exc_shared.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_empty (id BIGINT, title TEXT); CREATE TABLE rt_src_empty (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_e.txt' wordforms='/var/lib/manticore/ext_rt/wf_e1.txt, /var/lib/manticore/ext_rt/wf_e2.txt' exceptions='/var/lib/manticore/ext_rt/exc_e.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ATTACH TABLE rt_src_empty TO TABLE rt_dst_empty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if grep -q "sweuniq" /var/lib/manticore/rt_dst_empty/stopwords_chunk*.txt && \
grep -q "e1 => e1r" /var/lib/manticore/rt_dst_empty/wordforms_chunk*.txt && \
grep -q "e2 => e2r" /var/lib/manticore/rt_dst_empty/wordforms_chunk*.txt && \
grep -q "exce => excex" /var/lib/manticore/rt_dst_empty/exceptions_chunk*.txt; then echo OK_EMPTY_CONTENT; else echo FAIL_EMPTY_CONTENT; fi
––– output –––
- OK_EMPTY_CONTENT
+ grep: /var/lib/manticore/rt_dst_empty/stopwords_chunk*.txt: No such file or directory
+ FAIL_EMPTY_CONTENT
––– input –––
if grep -q "stopwords_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta && \
grep -q "wordforms_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta && \
grep -q "exceptions_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta; then echo OK_EMPTY_META; else echo FAIL_EMPTY_META; fi
––– output –––
- OK_EMPTY_META
+ grep: /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta: No such file or directory
+ FAIL_EMPTY_META
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_multi (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_a1.txt, /var/lib/manticore/ext_rt/sw_a2.txt' wordforms='/var/lib/manticore/ext_rt/wf_a1.txt' exceptions='/var/lib/manticore/ext_rt/exc_a.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (1, 'a'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_b1.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_b1.txt, /var/lib/manticore/ext_rt/wf_b2.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_b.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (2, 'b'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_c1.txt, /var/lib/manticore/ext_rt/sw_c2.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_c1.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_c.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (3, 'c'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_src_multi STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 3 |
- +-------------+------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_multi (id BIGINT, title TEXT); ATTACH TABLE rt_src_multi TO TABLE rt_dst_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_multi STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 3 |
- +-------------+------+
––– input –––
if grep -q "swauniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swauniqb" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swbuniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swcuniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swcuniqb" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "a1 => a1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "b1 => b1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "b2 => b2r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "c1 => c1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "exca => excar" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt && \
grep -q "excb => excbr" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt && \
grep -q "excc => exccr" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt; then echo OK_MULTI_CONTENT; else echo FAIL_MULTI_CONTENT; fi
––– output –––
- OK_MULTI_CONTENT
+ grep: /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt: No such file or directory
+ FAIL_MULTI_CONTENT
––– input –––
if grep -q "stopwords_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta && \
grep -q "wordforms_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta && \
grep -q "exceptions_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta; then echo OK_MULTI_META; else echo FAIL_MULTI_META; fi
––– output –––
- OK_MULTI_META
+ grep: /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta: No such file or directory
+ FAIL_MULTI_META
––– input –––
if for f in /var/lib/manticore/rt_dst_multi/*.sph; do grep -a -q "stopwords_chunk" "$f" || exit 1; done; then echo OK_MULTI_SPH; else echo FAIL_MULTI_SPH; fi
––– output –––
- OK_MULTI_SPH
+ grep: /var/lib/manticore/rt_dst_multi/*.sph: No such file or directory
+ bash: line 85: exit: command not found
+ FAIL_MULTI_SPH
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_multi; DROP TABLE IF EXISTS rt_src_second; DROP TABLE IF EXISTS rt_dst_attach;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_multi (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_a1.txt, /var/lib/manticore/ext_rt/sw_a2.txt' wordforms='/var/lib/manticore/ext_rt/wf_a1.txt' exceptions='/var/lib/manticore/ext_rt/exc_a.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (1, 'a'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_b1.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_b1.txt, /var/lib/manticore/ext_rt/wf_b2.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_b.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (2, 'b'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_c1.txt, /var/lib/manticore/ext_rt/sw_c2.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_c1.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_c.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (3, 'c'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_second (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_d1.txt' wordforms='/var/lib/manticore/ext_rt/wf_d1.txt, /var/lib/manticore/ext_rt/wf_d2.txt' exceptions='/var/lib/manticore/ext_rt/exc_d.txt'; INSERT INTO rt_src_second VALUES (4, 'd'); FLUSH RAMCHUNK rt_src_second;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_attach (id BIGINT, title TEXT); ATTACH TABLE rt_src_multi TO TABLE rt_dst_attach; ATTACH TABLE rt_src_second TO TABLE rt_dst_attach;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_attach STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 4 |
- +-------------+------+
––– input –––
if grep -q "swduniq" /var/lib/manticore/rt_dst_attach/stopwords_chunk*.txt && \
grep -q "d1 => d1r" /var/lib/manticore/rt_dst_attach/wordforms_chunk*.txt && \
grep -q "d2 => d2r" /var/lib/manticore/rt_dst_attach/wordforms_chunk*.txt && \
grep -q "excd => excdr" /var/lib/manticore/rt_dst_attach/exceptions_chunk*.txt; then echo OK_ATTACH_CONTENT; else echo FAIL_ATTACH_CONTENT; fi
––– output –––
- OK_ATTACH_CONTENT
+ grep: /var/lib/manticore/rt_dst_attach/stopwords_chunk*.txt: No such file or directory
+ FAIL_ATTACH_CONTENT
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_second; DROP TABLE IF EXISTS rt_dst_nonempty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_second (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_d1.txt' wordforms='/var/lib/manticore/ext_rt/wf_d1.txt, /var/lib/manticore/ext_rt/wf_d2.txt' exceptions='/var/lib/manticore/ext_rt/exc_d.txt'; INSERT INTO rt_src_second VALUES (4, 'd'); FLUSH RAMCHUNK rt_src_second;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_nonempty (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_dst.txt' wordforms='/var/lib/manticore/ext_rt/wf_dst.txt' exceptions='/var/lib/manticore/ext_rt/exc_dst.txt'; INSERT INTO rt_dst_nonempty VALUES (10,'dst'); FLUSH RAMCHUNK rt_dst_nonempty; ATTACH TABLE rt_src_second TO TABLE rt_dst_nonempty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_nonempty STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 2 |
- +-------------+------+
––– input –––
if grep -q "swdstuniq" /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt && \
grep -q "swduniq" /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt; then echo OK_NONEMPTY_CONTENT; else echo FAIL_NONEMPTY_CONTENT; fi
––– output –––
- OK_NONEMPTY_CONTENT
+ grep: /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt: No such file or directory
+ FAIL_NONEMPTY_CONTENT
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared VALUES (1,'s1'); FLUSH RAMCHUNK rt_src_shared; INSERT INTO rt_src_shared VALUES (2,'s2'); FLUSH RAMCHUNK rt_src_shared; CREATE TABLE rt_dst_shared (id BIGINT, title TEXT); ATTACH TABLE rt_src_shared TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if [ "$(grep -l 'swshareduniq' /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt | wc -l)" -eq 1 ]; then echo OK_SHARED_DEDUP; else echo FAIL_SHARED_DEDUP; fi
––– output –––
- OK_SHARED_DEDUP
+ grep: /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt: No such file or directory
+ FAIL_SHARED_DEDUP
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_shared; DROP TABLE IF EXISTS rt_src_shared2; DROP TABLE IF EXISTS rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared VALUES (1,'s1'); FLUSH RAMCHUNK rt_src_shared; CREATE TABLE rt_dst_shared (id BIGINT, title TEXT); ATTACH TABLE rt_src_shared TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared2 (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared2 VALUES (2,'s2'); FLUSH RAMCHUNK rt_src_shared2; ATTACH TABLE rt_src_shared2 TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if [ "$(grep -l 'swshareduniq' /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt | wc -l)" -eq 1 ]; then echo OK_SHARED_DEDUP_MULTI_SRC; else echo FAIL_SHARED_DEDUP_MULTI_SRC; fi
––– output –––
- OK_SHARED_DEDUP_MULTI_SRC
+ grep: /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt: No such file or directory
+ FAIL_SHARED_DEDUP_MULTI_SRCtest/clt-tests/bugs/3428-test-having-total-found.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:03.355 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:03.356 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:03.357 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_having (id bigint, category int, price float, quantity int)" --load="INSERT INTO test_having (id, category, price, quantity) VALUES (<increment>, <int/1/200>, <float/10.0/100.0>, <int/1/50>)" --batch-size=1000 --threads=4 --total=10000 > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_having\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 10000
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(DISTINCT category) as distinct_categories FROM test_having\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- distinct_categories: 200
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_having ORDER BY id ASC LIMIT 10000;" > /tmp/test_having_data.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/test_having_data.txt
––– output –––
- 9b2930342c90b8f4c4812792e35ba70f /tmp/test_having_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /tmp/test_having_data.txt
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 200
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 5 OFFSET 0\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 2. row ***************************
- category: 2
- cnt: 51
- *************************** 3. row ***************************
- category: 3
- cnt: 58
- *************************** 4. row ***************************
- category: 4
- cnt: 40
- *************************** 5. row ***************************
- category: 5
- cnt: 47
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 5 OFFSET 5\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 6
- cnt: 47
- *************************** 2. row ***************************
- category: 7
- cnt: 43
- *************************** 3. row ***************************
- category: 8
- cnt: 50
- *************************** 4. row ***************************
- category: 9
- cnt: 64
- *************************** 5. row ***************************
- category: 10
- cnt: 34
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 10000\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: total_found
- Value: 0
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 60 ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 9
- cnt: 64
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 19test/clt-tests/bugs/3489-fuzzy-option-alias-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:25.851 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:25.851 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:25.852 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_table (id BIGINT, field INT, content TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_table (id, field, content) VALUES (1, 1, 'test document'), (2, 0, 'best result'), (3, 1, 'west coast');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test');"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- | 0 |
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option2 FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option2 |
- +---------+
- | 1 |
- | 0 |
- | 1 |
- +---------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS something FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | something |
- +-----------+
- | 1 |
- | 0 |
- | 1 |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION cutoff=1;"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | option |
- +------+--------+
- | 1 | 1 |
- | 2 | 0 |
- | 3 | 1 |
- +------+--------+test/clt-tests/bugs/3481-http-update-distributed-table-wrong-cluster-crash.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd --logdebugv > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Manticore started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore started!
+ Timeout or failed!
––– input –––
mysql -v -P9306 -h0 -e "drop table if exists t; create table t(f int); drop table if exists d; CREATE TABLE d type='distributed' agent='127.0.0.1:9312:t'"
––– output –––
- --------------
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- drop table if exists t
- --------------
- --------------
- create table t(f int)
- --------------
- --------------
- drop table if exists d
- --------------
- --------------
- CREATE TABLE d type='distributed' agent='127.0.0.1:9312:t'
- --------------
––– input –––
curl -s -X POST http://localhost:9312/update -d '{"cluster": "unknown_cluster", "table": "d", "id": 2, "doc": {"f": 5}}'
––– output –––
- {"error":{"type":"action_request_validation_exception","reason":"table t: table t: table 't' is not in any cluster, use just 't'","table":"d"},"status":409}test/clt-tests/bugs/3832-fuzzy-cli-json-multiquery.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:48.274 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:48.274 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:48.275 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t(f text) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(f) values('abcdef');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s localhost:9308/cli_json -d "SELECT f from t where match('abczef') option fuzzy=1; show meta"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"f":{"type":"string"}}],"data":[{"f":"abcdef"}]}]
––– input –––
curl -s localhost:9308/cli_json -d "SELECT * from t where match('abczef') option fuzzy=1; show tables"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"f":{"type":"string"}}],"data":[{"id":%{NUMBER},"f":"abcdef"}]}] |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/performance/test-optimisation-and-update.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y bc > /dev/null; echo $?
––– output –––
OK
––– input –––
chmod +x ./test/clt-tests/scripts/load_names_attr.php > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 1 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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'
+ Timeout or failed!
- precached 1 tables in #!/[0-9]{1}.[0-9]{3}/!# sec
+ Manticore 0.0.0 ecc027918@26031509 (columnar 12.1.1 d84509a@26031305) (secondary 12.1.1 d84509a@26031305) (knn 12.1.1 d84509a@26031305) (embeddings 1.1.1)
- Buddy started!
+ Copyright (c) 2001-2016, Andrew Aksyonoff
+ Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
+ Copyright (c) 2017-2026, Manticore Software LTD (https://manticoresearch.com)
+ [Sun Mar 15 09:21:53.435 2026] [255] using config file '/etc/manticoresearch/manticore.conf' (269 chars)...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ 21:53.438 2026] [261] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:53.439 2026] [260] watchdog: main process 261 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | name | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ real 0m0.004s
+ user 0m0.001s
+ sys 0m0.003s
+ Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OKtest/clt-tests/replication/test-lock-tables-replicated.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DELETE CLUSTER test_cluster;" 2>&1 || echo "Cluster doesn't exist yet"
––– output –––
- ERROR 1064 (42000) at line 1: unknown cluster 'test_cluster'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
Cluster doesn't exist yet
––– input –––
mysql -h0 -P9306 -e "CREATE CLUSTER test_cluster;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS repl_table; CREATE TABLE repl_table (id BIGINT, data TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER CLUSTER test_cluster ADD repl_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_cluster:repl_table (id, data) VALUES (1, 'replicated_data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_cluster:repl_table;"
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | data |
- +------+-----------------+
- | 1 | replicated_data |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_cluster:repl_table READ;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: Table test_cluster:repl_table absent, or not suitable for lock
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;" 2>&1
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
which mysqldump
––– output –––
OK
––– input –––
mysqldump -h0 -P9306 -ucluster --no-tablespaces -t manticore test_cluster:repl_table 2>&1 | grep "Got error"
––– output –––
- mysqldump: Got error: 1064: Table test_cluster:repl_table absent, or not suitable for lock when doing LOCK TABLES
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
mysqldump -h0 -P9306 -ucluster --no-tablespaces --skip-lock-tables -t --compact manticore test_cluster:repl_table 2>&1 | grep "INSERT INTO"
––– output –––
- INSERT INTO `test_cluster:repl_table` VALUES ('1','replicated_data');
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS regular_table; CREATE TABLE regular_table (id BIGINT, data TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO regular_table VALUES (1, 'regular_data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES regular_table READ;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM regular_table;"
––– output –––
- +------+--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | data |
- +------+--------------+
- | 1 | regular_data |
- +------+--------------+
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysqldump -h0 -P9306 --no-tablespaces --compact manticore regular_table 2>&1 | grep -E "INSERT" | head -1
––– output –––
- INSERT INTO `regular_table` VALUES ('1','regular_data');
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES regular_table READ; SHOW LOCKS; UNLOCK TABLES;"
––– output –––
- +------+---------------+-----------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Type | Name | Lock Type | Additional Info |
- +------+---------------+-----------+-----------------+
- | rt | regular_table | read | Count: 1 |
- +------+---------------+-----------+-----------------+
––– input –––
mysql -h0 -P9306 -e "ALTER CLUSTER test_cluster DROP repl_table;" 2>&1 || echo "Already removed"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Already removed
––– input –––
mysql -h0 -P9306 -e "DELETE CLUSTER test_cluster;" 2>&1
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS repl_table; DROP TABLE IF EXISTS regular_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/performance/test-json-disk_chunks.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
chmod +x ./test/clt-tests/scripts/generate-records-json.sh
––– output –––
OK
––– input –––
./test/clt-tests/scripts/generate-records-json.sh 1000 4 | mysql -h0 -P9306; echo $?;
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
for i in {1..5}; do mysql -h0 -P9306 -e 'SELECT id, ANY(x>100 OR x < 10 FOR x IN j.a) ja, j.b FROM t GROUP BY j.b,j.c LIMIT 1 option threads=4' > /dev/null 2>&1; echo $?; done
––– output –––
- 0
+ 1
- 0
+ 1
- 0
+ 1
- 0
+ 1
- 0
+ 1test/clt-tests/replication/test-cluster-creation-without-replication.rec––– input –––
sed -i -e '/listen = 127.0.0.1:9312/d' -e '/listen = 127.0.0.1:9308:http/d' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
stdbuf -oL searchd > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "create cluster c"
––– output –––
- ERROR 1064 (42000) at line 1: can not create cluster 'c': no 'listen' is found, cannot set incoming addresses, replication is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111) |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/core/test-external-files-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_disk (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt,';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | t_disk | rt |
- +--------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 1 | zxczxc | 77 |
- | 2 | srthh | 88 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_disk | CREATE TABLE t_disk (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_disk/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 1 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:23:53.090 2026] [41] watchdog: main process 42 forked ok
+ [Sun Mar 15 09:23:53.090 2026] [42] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:23:53.091 2026] [41] watchdog: main process 42 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk4_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | settings | |
- +---------------+-------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:24:04.195 2026] [63] watchdog: main process 64 forked ok
+ [Sun Mar 15 09:24:04.195 2026] [64] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:24:04.196 2026] [63] watchdog: main process 64 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | settings | |
- +---------------+-------+
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt /var/lib/manticore/t_disk/stopwords_chunk4_2.txt /var/lib/manticore/t_disk/stopwords_chunk4_3.txt /var/lib/manticore/t_disk/stopwords_chunk4_4.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt /var/lib/manticore/t_disk/wordforms_chunk4_2.txt /var/lib/manticore/t_disk/wordforms_chunk4_3.txt /var/lib/manticore/t_disk/wordforms_chunk4_4.txt |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:24:14.814 2026] [79] watchdog: main process 80 forked ok
+ [Sun Mar 15 09:24:14.814 2026] [80] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:24:14.815 2026] [79] watchdog: main process 80 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt /var/lib/manticore/t_disk/stopwords_chunk4_2.txt /var/lib/manticore/t_disk/stopwords_chunk4_3.txt /var/lib/manticore/t_disk/stopwords_chunk4_4.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt /var/lib/manticore/t_disk/wordforms_chunk4_2.txt /var/lib/manticore/t_disk/wordforms_chunk4_3.txt /var/lib/manticore/t_disk/wordforms_chunk4_4.txt |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+test/clt-tests/core/test-expansion-phrase-limit.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content with some words');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d)\"');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE test_expansion;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
sed -i '/^searchd {/a\ expansion_phrase_limit = 8\n expansion_phrase_warning = 0' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d) (e|f)\"');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f)\"');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"~10');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"/2');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE test_expansion;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
sed -i 's/expansion_phrase_warning = 0/expansion_phrase_warning = 1/' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d)\"'); SHOW META LIKE 'warning';" | grep -c "query is too complex"
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 0
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
ERROR_COUNT=$(mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"');" 2>&1 | grep -c "ERROR"); echo "Error count: $ERROR_COUNT (expected: 0)"
––– output –––
- Error count: 0 (expected: 0)
+ Error count: 1 (expected: 0)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c|d|e) (f|g|h|j)\"'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"~10'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"/2'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as cnt FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"'); SELECT COUNT(*) as cnt FROM test_expansion WHERE MATCH('\"(a|b|c|d) (e|f|g|h)\"');" 2>&1 | grep -c "ERROR"
––– output –––
- 0
+ 1
––– input –––
sed -i '/expansion_phrase_limit/d; /expansion_phrase_warning/d' /etc/manticoresearch/manticore.conf
––– output –––
OKtest/clt-tests/core/test-alter-table-distributed.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index201(f text, s string); insert into index201 values(1,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index202(f text, s string); insert into index202 values(2,'def','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index203(f text, s string); insert into index203 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index204(f text, s string); insert into index204 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index201' local='index202';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index201 | local |
- | index202 | local |
- +----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table local='index201' local='index203';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index201 | local |
- | index203 | local |
- +----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table agent='127.0.0.1:9312:remote_index' local='index204';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +-----------------------------+----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +-----------------------------+----------+
- | index204 | local |
- | 127.0.0.1:9312:remote_index | remote_1 |
- +-----------------------------+----------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index203 local='index201' local='index203';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(title text, meta json) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index201 | rt |
- | index202 | rt |
- | index203 | rt |
- | index204 | rt |
- | products | percolate |
- +------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products local='index201' local='index202';"
––– output –––
- ERROR 1064 (42000) at line 1: Table products should be distributed
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE nonexistent local='index203' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: Table nonexistent doesn't exist
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE invalid-name local='index201' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected $undefined, expecting $end near '-name local='index201' local='index204''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE @name local='index201' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected identifier near '@name local='index201' local='index204''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC products"
––– output –––
- +---------+--------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +---------+--------+------------+
- | id | bigint | |
- | query | string | |
- | tags | string | |
- | filters | string | |
- +---------+--------+------------+
––– input –––
for i in $(seq 1 100); do mysql -h0 -P9306 -e "CREATE TABLE index${i}(f text, s string); INSERT INTO index${i} VALUES(${i}, 'value${i}', 'string');"; done
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index1 | rt |
- | index10 | rt |
- | index100 | rt |
- | index11 | rt |
- | index12 | rt |
- | index13 | rt |
- | index14 | rt |
- | index15 | rt |
- | index16 | rt |
- | index17 | rt |
- | index18 | rt |
- | index19 | rt |
- | index2 | rt |
- | index20 | rt |
- | index201 | rt |
- | index202 | rt |
- | index203 | rt |
- | index204 | rt |
- | index21 | rt |
- | index22 | rt |
- | index23 | rt |
- | index24 | rt |
- | index25 | rt |
- | index26 | rt |
- | index27 | rt |
- | index28 | rt |
- | index29 | rt |
- | index3 | rt |
- | index30 | rt |
- | index31 | rt |
- | index32 | rt |
- | index33 | rt |
- | index34 | rt |
- | index35 | rt |
- | index36 | rt |
- | index37 | rt |
- | index38 | rt |
- | index39 | rt |
- | index4 | rt |
- | index40 | rt |
- | index41 | rt |
- | index42 | rt |
- | index43 | rt |
- | index44 | rt |
- | index45 | rt |
- | index46 | rt |
- | index47 | rt |
- | index48 | rt |
- | index49 | rt |
- | index5 | rt |
- | index50 | rt |
- | index51 | rt |
- | index52 | rt |
- | index53 | rt |
- | index54 | rt |
- | index55 | rt |
- | index56 | rt |
- | index57 | rt |
- | index58 | rt |
- | index59 | rt |
- | index6 | rt |
- | index60 | rt |
- | index61 | rt |
- | index62 | rt |
- | index63 | rt |
- | index64 | rt |
- | index65 | rt |
- | index66 | rt |
- | index67 | rt |
- | index68 | rt |
- | index69 | rt |
- | index7 | rt |
- | index70 | rt |
- | index71 | rt |
- | index72 | rt |
- | index73 | rt |
- | index74 | rt |
- | index75 | rt |
- | index76 | rt |
- | index77 | rt |
- | index78 | rt |
- | index79 | rt |
- | index8 | rt |
- | index80 | rt |
- | index81 | rt |
- | index82 | rt |
- | index83 | rt |
- | index84 | rt |
- | index85 | rt |
- | index86 | rt |
- | index87 | rt |
- | index88 | rt |
- | index89 | rt |
- | index9 | rt |
- | index90 | rt |
- | index91 | rt |
- | index92 | rt |
- | index93 | rt |
- | index94 | rt |
- | index95 | rt |
- | index96 | rt |
- | index97 | rt |
- | index98 | rt |
- | index99 | rt |
- | products | percolate |
- +------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table $(for i in $(seq 1 100); do echo -n "local='index${i}'"; done | sed 's/, $//');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index1 | local |
- | index2 | local |
- | index3 | local |
- | index4 | local |
- | index5 | local |
- | index6 | local |
- | index7 | local |
- | index8 | local |
- | index9 | local |
- | index10 | local |
- | index11 | local |
- | index12 | local |
- | index13 | local |
- | index14 | local |
- | index15 | local |
- | index16 | local |
- | index17 | local |
- | index18 | local |
- | index19 | local |
- | index20 | local |
- | index21 | local |
- | index22 | local |
- | index23 | local |
- | index24 | local |
- | index25 | local |
- | index26 | local |
- | index27 | local |
- | index28 | local |
- | index29 | local |
- | index30 | local |
- | index31 | local |
- | index32 | local |
- | index33 | local |
- | index34 | local |
- | index35 | local |
- | index36 | local |
- | index37 | local |
- | index38 | local |
- | index39 | local |
- | index40 | local |
- | index41 | local |
- | index42 | local |
- | index43 | local |
- | index44 | local |
- | index45 | local |
- | index46 | local |
- | index47 | local |
- | index48 | local |
- | index49 | local |
- | index50 | local |
- | index51 | local |
- | index52 | local |
- | index53 | local |
- | index54 | local |
- | index55 | local |
- | index56 | local |
- | index57 | local |
- | index58 | local |
- | index59 | local |
- | index60 | local |
- | index61 | local |
- | index62 | local |
- | index63 | local |
- | index64 | local |
- | index65 | local |
- | index66 | local |
- | index67 | local |
- | index68 | local |
- | index69 | local |
- | index70 | local |
- | index71 | local |
- | index72 | local |
- | index73 | local |
- | index74 | local |
- | index75 | local |
- | index76 | local |
- | index77 | local |
- | index78 | local |
- | index79 | local |
- | index80 | local |
- | index81 | local |
- | index82 | local |
- | index83 | local |
- | index84 | local |
- | index85 | local |
- | index86 | local |
- | index87 | local |
- | index88 | local |
- | index89 | local |
- | index90 | local |
- | index91 | local |
- | index92 | local |
- | index93 | local |
- | index94 | local |
- | index95 | local |
- | index96 | local |
- | index97 | local |
- | index98 | local |
- | index99 | local |
- | index100 | local |
- +----------+-------+test/clt-tests/core/test-create-table-like-existing-table-with-data.rec––– input –––
echo "a => b" > /var/lib/manticore/wordforms1.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:28.632 2026] [23] watchdog: main process 24 forked ok
+ [Sun Mar 15 09:21:28.632 2026] [24] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:28.633 2026] [23] watchdog: main process 24 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
- +------+--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table2 | CREATE TABLE table2 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table2/exceptions.txt' stopwords='/var/lib/manticore/table2/stopwords_0.txt' wordforms='/var/lib/manticore/table2/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
- c => d
+ cat: /var/lib/manticore/table2/exceptions.txt: No such file or directory
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
- abcstop
+ cat: /var/lib/manticore/table2/stopwords_0.txt: No such file or directory
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
- a => b
+ cat: /var/lib/manticore/table2/wordforms_0.txt: No such file or directory
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- +--------+------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table3 | CREATE TABLE table3 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table3/exceptions.txt' stopwords='/var/lib/manticore/table3/stopwords_0.txt' wordforms='/var/lib/manticore/table3/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- +--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table4 | CREATE TABLE table4 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table4/exceptions.txt' stopwords='/var/lib/manticore/table4/stopwords_0.txt' wordforms='/var/lib/manticore/table4/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table5 | CREATE TABLE table5 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table5/exceptions.txt' stopwords='/var/lib/manticore/table5/stopwords_0.txt' wordforms='/var/lib/manticore/table5/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- | table7 | rt |
- +--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table7 | CREATE TABLE table7 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table7/exceptions.txt' stopwords='/var/lib/manticore/table7/stopwords_0.txt' wordforms='/var/lib/manticore/table7/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5 OPTION output_words = 'file';"
––– output –––
- +---------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- | table7 | rt |
- | table_5 | rt |
- +---------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table_5 | CREATE TABLE table_5 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table_5/exceptions.txt' stopwords='/var/lib/manticore/table_5/stopwords_0.txt' wordforms='/var/lib/manticore/table_5/wordforms_0.txt' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting $end near 'WITH DATA abs'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/core/test-auto-schema.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:21:16.928 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:21:16.928 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:21:16.929 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "drop table if exists test"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists test2"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists test3"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (12345678901234, 56789012345678));"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: 12345678901234,56789012345678
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- | vector | mva64 | |
- +------------------+--------+----------------+
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test2 (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', '[0.773448, 0.312478, 0.137971, 0.459821]');"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test2\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: [0.773448,0.312478,0.137971,0.459821]
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test2 OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- | vector | json | |
- +------------------+--------+----------------+
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test3 (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', 'null');"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test3\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- vector: null
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test3 OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | vector | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- +------------------+--------+----------------+test/clt-tests/core/test-alter-table.rec––– input –––
rm -rf /var/lib/manticore
––– output –––
OK
––– input –––
mkdir /tmp/test-alter/
––– output –––
OK
––– input –––
ln -s /tmp/test-alter/ /var/lib/manticore
––– output –––
OK
––– input –––
echo "a > b" > /tmp/test-alter/wordforms1.txt; echo "c > d" > /tmp/test-alter/exc.txt; echo "abcstop" > /tmp/test-alter/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test3 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: settings
- Value: exceptions = /tmp/test-alter/test3/exceptions_chunk0_0.txt
- stopwords = /tmp/test-alter/test3/stopwords_chunk0_0.txt
- wordforms = /tmp/test-alter/test3/wordforms_chunk0_0.txt
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test3 exceptions = ''"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: settings
- Value: stopwords = /tmp/test-alter/test3/stopwords_chunk0_0.txt
- wordforms = /tmp/test-alter/test3/wordforms_chunk0_0.txttest/clt-tests/core/test-alter-rename.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2001(f text, s string); insert into index2001 values(01,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2002(f text, s string); insert into index2002 values(02,'def','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2003(f text, s string); insert into index2003 values(03,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2004(f text, s string); insert into index2004 values(04,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-----------+------+
- | index2001 | rt |
- | index2002 | rt |
- | index2003 | rt |
- | index2004 | rt |
- +-----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2001 RENAME new_index2001;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2002 RENAME new_index2002;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2003 RENAME new_index2003;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2004 RENAME new_index2004;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2006(f text, s string); insert into index2006 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2007(f text, s string); insert into index2007 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index2006' local='index2007';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; DESC dist_table"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+-------------+
- +-----------+-------+
- | Agent | Type |
- +-----------+-------+
- | index2006 | local |
- | index2007 | local |
- +-----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table RENAME new_dist_table;"
––– output –––
- ERROR 1064 (42000) at line 1: Table dist_table should be RT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+-------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(title text, meta json) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- | products | percolate |
- +---------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products RENAME new_products;"
––– output –––
- ERROR 1064 (42000) at line 1: Table products should be RT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE nonexistent RENAME new_nonexistent;"
––– output –––
- ERROR 1064 (42000) at line 1: Source table nonexistent not exists
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE invalid-name RENAME new_invalid_name;"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected $undefined, expecting $end near '-name RENAME new_invalid_name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/core/test-alter-rename-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:20:15.633 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:20:15.633 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:20:15.634 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE articles(title text, content text); INSERT INTO articles VALUES(1,'test','content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(name text, price float); INSERT INTO products VALUES(1,'laptop',999.99);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +----------+------+
- | articles | rt |
- | products | rt |
- +----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products RENAME products_new"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles | rt |
- | products_new | rt |
- +--------------+------+
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+*+FROM+articles+LIMIT+1" | grep -o '"_id":1'
––– output –––
- "_id":1
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+title,+content+FROM+articles+WHERE+MATCH('test')+LIMIT+10" | grep -o '"title":"test"'
––– output –––
- "title":"test"
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER+TABLE+nonexistent+RENAME+new_name"
––– output –––
- {"error":"Source table nonexistent not exists"}
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT%20title+FROM+articles+WHERE%20MATCH('test')" | grep -o '"title":"test"'
––– output –––
- "title":"test"
––– input –––
mysql -h0 -P9306 -e "INSERT INTO articles(title,content) VALUES('test with spaces','content with special chars');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+id,+title,+content+FROM+articles+ORDER+BY+id+DESC+LIMIT+10" | grep -o '"total":2'
––– output –––
- "total":2
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER%20TABLE%20articles%20RENAME%20articles2"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles2 | rt |
- | products_new | rt |
- +--------------+------+
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+COUNT(*)+AS+cnt+FROM+articles2" | grep -o '"cnt":2'
––– output –––
- "cnt":2
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER%20TABLE%20articles2%20RENAME%20articles"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles | rt |
- | products_new | rt |
- +--------------+------+test/clt-tests/core/test-external-files-handling-ramchunk.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt' rt_mem_limit = '256M';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram OPTION output_words = 'file';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t_ram | rt |
- +-------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 2 | srthh | 88 |
- | 1 | zxczxc | 77 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_ram | CREATE TABLE t_ram (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 3 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:23:09.148 2026] [40] watchdog: main process 41 forked ok
+ [Sun Mar 15 09:23:09.148 2026] [41] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:23:09.149 2026] [40] watchdog: main process 41 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk2_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------+
- | settings | rt_mem_limit = 268435456 |
- +---------------+--------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:23:20.255 2026] [62] watchdog: main process 63 forked ok
+ [Sun Mar 15 09:23:20.255 2026] [63] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:23:20.256 2026] [62] watchdog: main process 63 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------+
- | settings | rt_mem_limit = 268435456 |
- +---------------+--------------------------+
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt /var/lib/manticore/t_ram/stopwords_chunk2_2.txt /var/lib/manticore/t_ram/stopwords_chunk2_3.txt /var/lib/manticore/t_ram/stopwords_chunk2_4.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt /var/lib/manticore/t_ram/wordforms_chunk2_2.txt /var/lib/manticore/t_ram/wordforms_chunk2_3.txt /var/lib/manticore/t_ram/wordforms_chunk2_4.txt
- rt_mem_limit = 268435456 |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:23:30.873 2026] [78] watchdog: main process 79 forked ok
+ [Sun Mar 15 09:23:30.873 2026] [79] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:23:30.874 2026] [78] watchdog: main process 79 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt /var/lib/manticore/t_ram/stopwords_chunk2_2.txt /var/lib/manticore/t_ram/stopwords_chunk2_3.txt /var/lib/manticore/t_ram/stopwords_chunk2_4.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt /var/lib/manticore/t_ram/wordforms_chunk2_2.txt /var/lib/manticore/t_ram/wordforms_chunk2_3.txt /var/lib/manticore/t_ram/wordforms_chunk2_4.txt
- rt_mem_limit = 268435456 |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/maria/pq-table-mysqldump.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "create table pq(f text) type='percolate'"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e "insert into pq(id, query) values(1, '@f abc'),(2, 'def')"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e "select * from pq"
––– output –––
- +------+--------+------+---------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+
––– input –––
mysqldump -h0 -P9306 manticore 2>/dev/null 1> /tmp/pq-dump.sql
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e 'drop table pq'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e 'show tables'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 manticore < /tmp/pq-dump.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from pq;'
––– output –––
- +------+--------+------+---------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+test/clt-tests/mysqldump/maria/mcl-only-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/random-1m-dump-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
./test/clt-tests/scripts/generate-records.sh 1000000 | mysql -h0 -P9306
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysqldump -h0 -P9306 Manticore 2>/dev/null 1> /tmp/all-databases.sql
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "drop table t"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < /tmp/all-databases.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+test/clt-tests/mysqldump/maria/no-mcl-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/maria/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-only-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/performance/concurrent-load-search-stats-validation.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:24:43.695 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:24:43.695 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:24:43.696 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
manticore-load --host=127.0.0.1 --drop --batch-size=10000 --threads=4 --total=100000 --init="CREATE TABLE test(id bigint, name text, type int)" --load="INSERT INTO test(id,name,type) VALUES(<increment>,'<text/10/100>',<int/1/100>)" --together --threads=1 --total=3000 --load="SELECT * FROM test WHERE MATCH('<text/1/1>')" > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "show table test status like '%search_stats_%'; show status like 'search_stats%'" | grep -c search_stats_ms_avg
––– output –––
- 2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 0
––– input –––
TABLE_AVG=$(mysql -P9306 -h0 -e "show table test status like '%search_stats_ms_avg%'" | grep search_stats_ms_avg | tr -d '|' | awk '{print $2}' | tr -d ' '); GLOBAL_AVG=$(mysql -P9306 -h0 -e "show status like 'search_stats_ms_avg'" | grep search_stats_ms_avg | tr -d '|' | awk '{print $2}' | tr -d ' '); echo "Table avg: $TABLE_AVG, Global avg: $GLOBAL_AVG"; python3 -c "import sys; table=float('$TABLE_AVG'); global_val=float('$GLOBAL_AVG'); diff_pct=abs(table-global_val)/max(table,global_val)*100 if max(table,global_val) > 0 else 0; print(f'Table stats: {table}ms, Global stats: {global_val}ms, Difference: {diff_pct:.1f}%'); result = 'PASS: Statistics are consistent (within 20% difference)' if table > 0 and global_val > 0 and diff_pct <= 20 else f'INFO: Statistics differ by {diff_pct:.1f}% (exceeds 20% threshold)'; print(result)"
––– output –––
- #!/Table avg: [0-9]+\.[0-9]+, Global avg: [0-9]+\.[0-9]+/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/Table stats: [0-9]+\.[0-9]+ms, Global stats: [0-9]+\.[0-9]+ms, Difference: [0-9]+\.[0-9]+%/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/PASS: Statistics are consistent \(within 20% difference\)|INFO: Statistics differ by [0-9]+\.[0-9]+% \(exceeds 20% threshold\)/!#
+ Table avg: , Global avg:
+ Traceback (most recent call last):
+ File "<string>", line 1, in <module>
+ ValueError: could not convert string to float: ''test/clt-tests/mysqldump/maria/no-mcl-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-only-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+ |
f3a6ade to
034c202
Compare
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/expected-errors/test-errors-insert-for-distributed-missing-table.rec––– input –––
sed -i '/^searchd/a\ buddy_path =' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2006(f text, s string); insert into index2006 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2007(f text, s string); insert into index2007 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index2006' local='index2007';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; DESC dist_table"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- +------------+-------------+
- +-----------+-------+
- | Agent | Type |
- +-----------+-------+
- | index2006 | local |
- | index2007 | local |
- +-----------+-------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO dist_table (id, column1, column2) VALUES (1, 'value1', 'value2'), (2, 'value3', 'value4');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'dist_table' does not support INSERT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO missing_table(f, s) VALUES('abc', 'string');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'missing_table' absent
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-character-transformation-when-sending-to-buddy.rec––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
export SEARCHD_FLAGS="--logdebugv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:13.141 2026] [23] watchdog: main process 24 forked ok
+ [Sun Mar 15 09:47:13.141 2026] [24] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:13.142 2026] [23] watchdog: main process 24 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test (id BIGINT, a TEXT, b TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test (id, a, b) VALUES (1, 'hello', 'world'), (2, 'hello', 'universe'), (3, 'goodbye', 'world');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1, key2 = 2;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select b, a from test where match('hello world') option key1 = 1, key2 = 2;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select b, a from test where match('hello world') option key2 = 2"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select a, b from test where match('hello world') option key1 = 1, key2 = 2, key3 = 3;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'key1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
timeout 5 bash -c 'while [ $(grep -c "request data" /var/log/manticore/searchd.log 2>/dev/null || echo 0) -lt 5 ]; do sleep 0.01; done' && echo "All 5 requests logged"
––– output –––
- All 5 requests logged
+ bash: line 1: [: too many arguments
+ All 5 requests logged
––– input –––
cat /var/log/manticore/searchd.log | grep 'request data' | sed 's/.*request data/request data/'
––– output –––
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1, key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select b, a from test where match('hello world') option key1 = 1, key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key2'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select b, a from test where match('hello world') option key2 = 2","http_method":""}}
- request data: {"type":"unknown sql request","error":{"message":"unknown option 'key1'","body":null},"version":3,"user":"root","message":{"path_query":"","body":"select a, b from test where match('hello world') option key1 = 1, key2 = 2, key3 = 3","http_method":""}}test/clt-tests/expected-errors/buddy-plugin-select.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM manticore.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM `manticore`.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM `Manticore`.test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.files;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.files
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.tables;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.tables
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.triggers;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.triggers
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.column_statistics;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.column_statistics
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT * FROM information_schema.columns;'
––– output –––
- ERROR 1064 (42000) at line 1: No such table information_schema.columns
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE id = '1';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE id IN ('1');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COALESCE(name, '') = '' FROM test;"
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(', expecting $end near 'name, '') = '''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE CONTAINS(text_field, 'NEAR((word1, word2), 3)');"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected '(' near '(text_field, 'NEAR((word1, word2), 3)')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DISTINCT TABLE_SCHEMA from information_schema.TABLES;"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected DISTINCT near 'DISTINCT TABLE_SCHEMA from information_schema.TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date) * 60 * 60 + MINUTE(date) * 60 + SECOND(date)) SECOND) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date) * 60 * 60 + MINUTE(date) * 60 + SECOND(date)) SECOND) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date)*60 + MINUTE(date)) MINUTE) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL (HOUR(date)*60*60 + MINUTE(date)*60 + SECOND(date)) SECOND) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL HOUR(date) HOUR) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE_ADD(DATE(date), INTERVAL HOUR(date) HOUR) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE(date) AS date FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT DATE(date) FROM test;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFMONTH(date)-1 DAY)) AS date FROM test;'
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(' near 'date)-1 DAY))'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFMONTH(date)-1 DAY)) FROM test;'
––– output –––
- ERROR 1064 (42000) at line 1: table test: parse error: P09: syntax error, unexpected '(' near 'date)-1 DAY))'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFYEAR(date)-1 DAY)) AS date FROM test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT DATE(DATE_SUB(date, INTERVAL DAYOFYEAR(date)-1 DAY)) FROM test;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-external-files-handling-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "z => w" > /var/lib/manticore/wordforms2.txt; echo "a => b" > /var/lib/manticore/wordforms3.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "z" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords='/var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt, /var/lib/manticore/wordforms3.txt' rt_mem_limit='256M';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram OPTION output_words = 'file';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t_ram | rt |
- +-------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 2 | srthh | 88 |
- | 1 | zxczxc | 77 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_ram | CREATE TABLE t_ram (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 3 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt /var/lib/manticore/t_ram/wordforms_chunk0_2.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
- WARNING: table 't_ram': all wordform source tokens are stopwords (wordform='z => w', file='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt'). IGNORED.
- WARNING: table 't_ram': all wordform source tokens are stopwords (wordform='z => w', file='/var/lib/manticore/t_ram/wordforms_chunk0_1.txt'). IGNORED.
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:37.634 2026] [41] watchdog: main process 42 forked ok
+ [Sun Mar 15 09:47:37.634 2026] [42] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:37.634 2026] [41] watchdog: main process 42 exited cleanly (exit code 1), shutting downtest/clt-tests/expected-errors/buddy-plugin-backup.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES users, posts TO '/backup/location';'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES users, posts TO /backup/location'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES users, posts TO '/backup/location' OPTIONS compress=true, async=false;'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES users, posts TO /backup/location OPTIONS compress=true, async=false'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'BACKUP TABLES TO '/backup/location' OPTIONS compress=true, async=false;'
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'BACKUP TABLES TO /backup/location OPTIONS compress=true, async=false'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/buddy-plugin-show.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW QUERIES;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'QUERIES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW FULL TABLES;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'FULL TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SHOW SCHEMAS;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected identifier, expecting VARIABLES near 'SCHEMAS'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/buddy-plugin-empty-string.rec––– input –––
apt-get -y remove 'manticore-buddy' > /dev/null; echo $?
––– output –––
OK
––– input –––
stdbuf -oL searchd
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
- listening on %{IPADDR}:9306 for mysql
- listening on %{IPADDR}:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE test (id BIGINT, name TEXT, date TIMESTAMP);'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SET @saved_cs_client = @@character_set_client;'
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected @@sysvar near '@@character_set_client'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SET character_set_client = utf8mb4;'
––– output –––
- ERROR 1064 (42000) at line 1: Unknown session variable 'character_set_client' in SET statement
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111) |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/test-configuration/test-buddy-max-connections-configuration.rec––– input –––
sed -i '/^searchd/a\ max_connections=1' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi;
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ Timeout or failed!
- listening on %{IPADDR}:9306 for mysql
+ [Sun Mar 15 09:48:04.261 2026] [24] watchdog: main process 25 forked ok
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ [Sun Mar 15 09:48:04.261 2026] [25] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- Buddy started!
+ [Sun Mar 15 09:48:04.262 2026] [24] watchdog: main process 25 exited cleanly (exit code 1), shutting down
––– input –––
mysql -P9306 -h0 -e "CREATE TABLE IF NOT EXISTS t (id INT); INSERT INTO t (id) VALUES(0); SHOW QUERIES\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- query: SHOW QUERIES
- time: %{NUMBER}us
- protocol: mysql
- host: %{IPADDR}:%{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- query: select
- time: %{NUMBER}#!/\b(?:us|ms)\b/!# ago
- protocol: http
- host: %{IPADDR}:%{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
- query: show_settings
- time: %{NUMBER}us
- protocol: http
- host: %{IPADDR}:%{NUMBER}
––– input –––
stdbuf -oL searchd --stopwait
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
+ [Sun Mar 15 09:48:14.513 2026] [32] FATAL: stop: pid file '/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
sed -i '/^searchd/,/^}/s/max_connections=1/max_connections=2/' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi;
––– output –––
Manticore %{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)
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-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
- starting daemon version '%{VERSION} (columnar %{VERSION}) (secondary %{VERSION}) (knn %{VERSION}) (embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#)' ...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ Timeout or failed!
- listening on %{IPADDR}:9306 for mysql
+ [Sun Mar 15 09:48:14.706 2026] [38] watchdog: main process 39 forked ok
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ [Sun Mar 15 09:48:14.706 2026] [39] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
- precaching table 't'
+ [Sun Mar 15 09:48:14.706 2026] [38] watchdog: main process 39 exited cleanly (exit code 1), shutting down
- precached 1 tables in #!/[0-9]+.[0-9]+/!# sec
- Buddy started!
––– input –––
for n in 1 2; do mysql -P9306 -h0 -e "CREATE TABLE IF NOT EXISTS b${n} (id INT);" ; done; for n in 1 2; do mysql -P9306 -h0 -e "INSERT INTO b${n} (id) VALUES(0)" & pids="$pids $!"; done; for pid in $pids; do wait $pid; done; mysql -P9306 -h0 -e "show queries\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- query: show queries
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- time: %{NUMBER}us
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- protocol: mysql
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- host: %{IPADDR}:%{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- query: select
- time: %{NUMBER}#!/\b(?:us|ms)\b/!# ago
- protocol: http
- host: %{IPADDR}:%{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
- query: show_settings
- time: %{NUMBER}us
- protocol: http
- host: %{IPADDR}:%{NUMBER}test/clt-tests/test-configuration/test-buddy-requests-not-logged.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
TMPLOG=$(mktemp) && cp /var/log/manticore/query.log "$TMPLOG"
––– output –––
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
––– input –––
mysql -h0 -P9306 -e "create table test (id BIGINT, model TEXT);" || echo "ERROR: Failed to create table"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR: Failed to create table
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test","id":1,"doc":{"model":"Test message"}}' > /dev/null 2>&1 || echo "ERROR: Failed to insert data"
––– output –––
+ ERROR: Failed to insert data
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from test' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: SELECT query was NOT logged as expected" || echo "ERROR: SELECT query was logged when it should not have been!"
––– output –––
- Test passed: SELECT query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: SELECT query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from test; show meta' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: SHOW META query was NOT logged as expected" || echo "ERROR: SHOW META query was logged when it should not have been!"
––– output –––
- Test passed: SHOW META query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: SHOW META query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=delete from test where id=1' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -eq 0 ] && echo "Test passed: DELETE query was NOT logged as expected" || echo "ERROR: DELETE query was logged when it should not have been!"
––– output –––
- Test passed: DELETE query was NOT logged as expected
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: DELETE query was logged when it should not have been!
––– input –––
curl -s -H 'User-agent:' -d 'query=select * from test' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -gt 0 ] && echo "Test passed: Query without User-Agent was logged" || echo "ERROR: Query without User-Agent was NOT logged!"
––– output –––
- Test passed: Query without User-Agent was logged
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: Query without User-Agent was NOT logged!
––– input –––
curl -s -H 'User-agent: Manticore Buddy/1.0.0' -d 'query=select * from non_existent_table' 'localhost:9308/sql?mode=raw' > /dev/null 2>&1
––– output –––
OK
––– input –––
sync && cp /var/log/manticore/query.log "$TMPLOG-diff" && [ "$(diff "$TMPLOG" "$TMPLOG-diff" | wc -l)" -gt 0 ] && echo "Test passed: Error query was logged" || echo "ERROR: Error query was NOT logged!"
––– output –––
- Test passed: Error query was logged
+ cp: cannot stat '/var/log/manticore/query.log': No such file or directory
+ ERROR: Error query was NOT logged!
––– input –––
rm -f "$TMPLOG" "$TMPLOG-diff"
––– output –––
OKtest/clt-tests/test-configuration/show-threads.rec––– input –––
stdbuf -oL searchd --cpustats > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW THREADS\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- TID: %{NUMBER}
- Name: work_%{NUMBER}
- Proto: mysql
- State: query
- Connection from: 127.0.0.1:%{NUMBER}
- ConnID: %{NUMBER}
- This/prev job time: %{NUMBER}#!/(s|ms|us)/!#
- CPU activity: %{NUMBER}%
- Jobs done: %{NUMBER}
- Thread status: working
- Info: SHOW THREADS |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/multi-query.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:46.167 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:46.167 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:46.168 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test'), (3, 'sample', 'sample');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20limit%201;show%20tables" | grep -v 'row in set'
––– output –––
- +----+---------+------------+
- | id | value | value_attr |
- +----+---------+------------+
- | 1 | example | example |
- +----+---------+------------+
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20where%20match('test');show%20meta" | grep -v 'row\|rows'
––– output –––
- +----+-------+------------+
- | id | value | value_attr |
- +----+-------+------------+
- | 2 | test | test |
- +----+-------+------------+
- +----------------+-------+
- | Variable_name | Value |
- +----------------+-------+
- | total | 1 |
- | total_found | 1 |
- | total_relation | eq |
- | time | 0.000 |
- | keyword[0] | test |
- | docs[0] | 1 |
- | hits[0] | 1 |
- +----------------+-------+
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20limit%201;show%20tables" | grep -v 'row in set'
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20where%20match('test');show%20meta"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":2,"value":"test","value_attr":"test"}
- ],
- "total":1,
- "error":"",
- "warning":""
- },
- {
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"1"},
- {"Variable_name":"total_found","Value":"1"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"0.000"},
- {"Variable_name":"keyword[0]","Value":"test"},
- {"Variable_name":"docs[0]","Value":"1"},
- {"Variable_name":"hits[0]","Value":"1"}
- ],
- "total":7,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t limit 1;show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('test');show meta"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t limit 1;show tables"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t where match('test');show meta"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":2,"value":"test","value_attr":"test"}
- ],
- "total":1,
- "error":"",
- "warning":""
- },
- {
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"1"},
- {"Variable_name":"total_found","Value":"1"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"0.000"},
- {"Variable_name":"keyword[0]","Value":"test"},
- {"Variable_name":"docs[0]","Value":"1"},
- {"Variable_name":"hits[0]","Value":"1"}
- ],
- "total":7,
- "error":"",
- "warning":""
- }]test/clt-tests/http-interface/error-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT) min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example'), (2, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELEKT * FROM t"; echo
––– output –––
- {"error":"P02: syntax error, unexpected identifier near 'SELEKT * FROM t'"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM nonexistent_table"; echo
––– output –––
- {"error":"unknown local table(s) 'nonexistent_table' in search request"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM t; SHOW META"; echo
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "DESCRIBE t; SELECT * FROM t" | awk '!/row.*in set/'; echo
––– output –––
- {"error":"P01: syntax error, unexpected ';' near '; SELECT * FROM '"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t WHERE MATCH('@value \!@#$%')"; echo
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}}],
- "data":[
- ],
- "total":0,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t ORDER BY unknown_column"; echo
––– output –––
- {"error":"table t: sort-by attribute 'unknown_column' not found"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "SELECT * FROM t LIMIT -5"; echo
––– output –––
- {"error":"limit out of bounds (limit=-5)"}
––– input –––
curl -s "http://localhost:9308/cli_json" -d "UPDATE t SET value='new_value' WHERE id=1"; echo
––– output –––
- {"error":"table t: attribute 'value' can not be updated (full-text field)"}test/clt-tests/mcl/auto-embeddings-syntax-check.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration|Failed.*to.*download).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title, content') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_model_remote"
––– output –––
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | test_model_remote | CREATE TABLE test_model_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content'
- ) |
- +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_model_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"; MD5_1=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=1" | grep -v embedding | sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | grep -E '^[0-9]+(\.[0-9]+)?$' | awk '{printf "%.5f\n", $1}' | tr '\n' ',' | sed 's/,$//' | md5sum | awk '{print $1}'); MD5_2=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=2" | grep -v embedding | sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | grep -E '^[0-9]+(\.[0-9]+)?$' | awk '{printf "%.5f\n", $1}' | tr '\n' ',' | sed 's/,$//' | md5sum | awk '{print $1}'); echo "vector_md5_1: $MD5_1"; echo "vector_md5_2: $MD5_2"; if [ "$MD5_1" = "$MD5_2" ]; then echo "SUCCESS: Same FROM fields produce same vector"; else echo "FAIL: Different vectors (FROM does not include description field and should not change generated vector value)"; fi
––– output –––
- vector_md5_1: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- vector_md5_2: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce same vector
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ vector_md5_1: d41d8cd98f00b204e9800998ecf8427e
+ vector_md5_2: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same FROM fields produce same vector
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title') "; mysql -h0 -P9306 -e "INSERT INTO test_model_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_model_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_model_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_model_no_auto (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_model_no_auto"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+test/clt-tests/mcl/auto-embeddings-qwen.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_qwen (title TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='Qwen/Qwen3-Embedding-0.6B' FROM='title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_qwen"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_qwen
- Create Table: CREATE TABLE test_qwen (
- id bigint,
- title text,
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='Qwen/Qwen3-Embedding-0.6B' FROM='title'
- )
––– input –––
mysql -h0 -P9306 -e "insert into test_qwen(id, title) values(1, 'book'),(2, 'bread');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total_records FROM test_qwen"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total_records |
- +---------------+
- | 2 |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "select id, title, knn_dist() from test_qwen where knn(vec, 3, 'loaf')"
––– output –––
- +------+-------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-------+------------+
- | 2 | bread | #!/0\.3[0-9]*/!# |
- | 1 | book | #!/0\.[45][0-9]*/!# |
- +------+-------+------------+test/clt-tests/mcl/auto-embeddings-voyage-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_voyage_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title, content' API_KEY='${VOYAGE_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_voyage_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_voyage_remote
- Create Table: CREATE TABLE test_voyage_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='voyage/voyage-3.5-lite' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_voyage_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_voyage_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/voyage-3.5-lite' FROM = 'title' API_KEY='${VOYAGE_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_voyage_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_voyage_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test__invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'voyage/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_voyage_no_from'" | grep -q test_voyage_no_from; then mysql -h0 -P9306 -e "INSERT INTO test__no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test__no_from'" | grep -q test_voyage_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_voyage_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test__no_from.*model_name='voyage\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$VOYAGE_API_KEY" ] && [ "$VOYAGE_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_voyage_remote WHERE knn(embedding, 3, 'machine learning and artificial intelligence')\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
- *************************** 2. row ***************************
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_voyage_remote WHERE knn(embedding, 5, 'technology and AI') AND id > 0"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
API_KEY_VAL="${VOYAGE_API_KEY}"; cat > /etc/manticoresearch/manticore.conf << CONFEOF
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_voyage_plain {
type = rt
path = /var/lib/manticore/test_voyage_plain
rt_field = title
rt_field = content
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","hnsw_m":16,"hnsw_ef_construction":200,"model_name":"voyage/voyage-3.5-lite","from":"title,content","api_key":"${API_KEY_VAL}"}]}
}
CONFEOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:48:00.071 2026] [69] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------------------+------+
- | test_voyage_plain | rt |
- +-------------------+------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_voyage_plain (id, title, content) VALUES(1, 'bread', 'food item'), (2, 'cat', 'animal pet')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_voyage_plain"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title FROM test_voyage_plain WHERE knn(embedding, 2, 'dog')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- title: cat
- *************************** 2. row ***************************
- id: 1
- title: bread
––– input –––
cat > /etc/manticoresearch/manticore.conf << 'EOF'
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_voyage_no_key {
type = rt
path = /var/lib/manticore/test_voyage_no_key
rt_field = title
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","model_name":"voyage/voyage-3.5-lite","from":"title"}]}
}
EOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:48:10.725 2026] [85] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
searchd 2>&1|grep WARNING
––– output –––
- WARNING: table 'test_voyage_no_key': prealloc: Invalid API key for remote model - NOT SERVINGtest/clt-tests/http-interface/cli-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:11.989 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:11.989 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:11.990 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | grep -v 'rows in set' | head -n 4
––– output –––
- %{TABLE_LINE}
- %{TABLE_ROW}
- %{TABLE_LINE}
- %{TABLE_ROW}
––– input –––
curl -s "http://localhost:9308/cli?show%20buddy%20plugins" | grep -v 'rows in set' | head -n 4
––– output –––
- %{TABLE_LINE}
- %{TABLE_ROW}
- %{TABLE_LINE}
- %{TABLE_ROW}
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20where%20match('exmaple')%20option%20fuzzy=1" | grep -v 'row in set'
––– output –––
- +----+---------+------------+
- | id | value | value_attr |
- +----+---------+------------+
- | 1 | example | example |
- +----+---------+------------+
––– input –––
curl -s "http://localhost:9308/cli?show%20fields%20from%20t" | grep -v 'rows in set'
––– output –––
- +------------+--------+------+-----+---------+-------+
- | Field | Type | Null | Key | Default | Extra |
- +------------+--------+------+-----+---------+-------+
- | id | bigint | NO | | | |
- | value | text | NO | | | |
- | value_attr | string | NO | | | |
- +------------+--------+------+-----+---------+-------+
––– input –––
curl -s "http://localhost:9308/cli?show%20full%20tables" | grep -v 'row in set'
––– output –––
- +---------------------+------------+
- | Tables_in_Manticore | Table_type |
- +---------------------+------------+
- | t | BASE TABLE |
- +---------------------+------------+
––– input –––
curl -s "http://localhost:9308/cli?create%20table%20t_copy%20like%20t" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?insert%20into%20auto_created%20(id,%20value)%20values%20(10,%20'abc')" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?alter%20table%20t%20add%20column%20extra_field%20int" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?replace%20into%20t%20(id,%20value)%20values%20(1,%20'replaced_value')" > /dev/null; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s "http://localhost:9308/cli?select%20*%20from%20t%20limit%201" | grep -v 'row in set'
––– output –––
- +----+-------+------------+-------------+
- | id | value | value_attr | extra_field |
- +----+-------+------------+-------------+
- | %{NUMBER} | %{PATH} | %{PATH} | %{NUMBER} |
- +----+-------+------------+-------------+test/clt-tests/http-interface/cli-json-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:23.483 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:23.483 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:23.484 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli_json?show%20version"
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings %{VERSION}"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?show%20buddy%20plugins"
––– output –––
- [{"total":28,"error":"","warning":"","columns":[{"Package":{"type":"string"}},{"Plugin":{"type":"string"}},{"Version":{"type":"string"}},{"Type":{"type":"string"}},{"Info":{"type":"string"}}],"data":[{"Package":"manticoresoftware/buddy-plugin-empty-string","Plugin":"empty-string","Version":"%{VERSION}","Type":"core","Info":"Handles empty queries, which can occur when trimming comments or dealing with specific SQL protocol instructions in comments that are not supported"},{"Package":"manticoresoftware/buddy-plugin-backup","Plugin":"backup","Version":"%{VERSION}","Type":"core","Info":"BACKUP sql statement"},{"Package":"manticoresoftware/buddy-plugin-emulate-elastic","Plugin":"emulate-elastic","Version":"%{VERSION}","Type":"core","Info":"Emulates some Elastic queries and generates responses as if they were made by ES"},{"Package":"manticoresoftware/buddy-plugin-fuzzy","Plugin":"fuzzy","Version":"%{VERSION}","Type":"core","Info":"Fuzzy search plugin. It helps to find the best match for a given query."},{"Package":"manticoresoftware/buddy-plugin-create-table","Plugin":"create-table","Version":"%{VERSION}","Type":"core","Info":"Enables tables copying; handles CREATE TABLE statements with MySQL options not supported by Manticore"},{"Package":"manticoresoftware/buddy-plugin-create-cluster","Plugin":"create-cluster","Version":"%{VERSION}","Type":"core","Info":"Enable CREATE CLUSTER IF NOT EXISTS statements"},{"Package":"manticoresoftware/buddy-plugin-drop","Plugin":"drop","Version":"%{VERSION}","Type":"core","Info":"Handles DROP statements with MySQL options not supported by Manticore"},{"Package":"manticoresoftware/buddy-plugin-insert","Plugin":"insert","Version":"%{VERSION}","Type":"core","Info":"Auto schema support. When an insert or replace operation is performed and the table does not exist, it creates it with data types auto-detection"},{"Package":"manticoresoftware/buddy-plugin-alias","Plugin":"alias","Version":"%{VERSION}","Type":"core","Info":""},{"Package":"manticoresoftware/buddy-plugin-select","Plugin":"select","Version":"%{VERSION}","Type":"core","Info":"Various SELECTs handlers needed for mysqldump and other software support, mostly aiming to work similarly to MySQL"},{"Package":"manticoresoftware/buddy-plugin-replace-select","Plugin":"replace-select","Version":"%{VERSION}","Type":"core","Info":"Enables REPLACE INTO ... SELECT ... FROM operations with batch processing"},{"Package":"manticoresoftware/buddy-plugin-show","Plugin":"show","Version":"%{VERSION}","Type":"core","Info":"Various \"show\" queries handlers, for example, `show queries`, `show fields`, `show full tables`, etc"},{"Package":"manticoresoftware/buddy-plugin-plugin","Plugin":"plugin","Version":"%{VERSION}","Type":"core","Info":"Core logic for plugin support and helpers. Also handles `create buddy plugin`, `delete buddy plugin`, and `show buddy plugins`"},{"Package":"manticoresoftware/buddy-plugin-test","Plugin":"test","Version":"%{VERSION}","Type":"core","Info":"Test plugin, used exclusively for tests"},{"Package":"manticoresoftware/buddy-plugin-alter-column","Plugin":"alter-column","Version":"%{VERSION}","Type":"core","Info":"Enables adding/dropping table fields(columns)"},{"Package":"manticoresoftware/buddy-plugin-alter-distributed-table","Plugin":"alter-distributed-table","Version":"%{VERSION}","Type":"core","Info":"Enables alter for distributed tables"},{"Package":"manticoresoftware/buddy-plugin-alter-rename-table","Plugin":"alter-rename-table","Version":"%{VERSION}","Type":"core","Info":"Enables alter table rename"},{"Package":"manticoresoftware/buddy-plugin-modify-table","Plugin":"modify-table","Version":"%{VERSION}","Type":"core","Info":"Assists in standardizing options in create and alter table statements to show option=1 for integers."},{"Package":"manticoresoftware/buddy-plugin-knn","Plugin":"knn","Version":"%{VERSION}","Type":"core","Info":"Enables KNN by document id"},{"Package":"manticoresoftware/buddy-plugin-replace","Plugin":"replace","Version":"%{VERSION}","Type":"core","Info":"Enables partial replaces"},{"Package":"manticoresoftware/buddy-plugin-queue","Plugin":"queue","Version":"%{VERSION}","Type":"core","Info":""},{"Package":"manticoresoftware/buddy-plugin-sharding","Plugin":"sharding","Version":"%{VERSION}","Type":"core","Info":"Enables sharded tables."},{"Package":"manticoresoftware/buddy-plugin-update","Plugin":"update","Version":"%{VERSION}","Type":"core","Info":"Handles UPDATE statements sent by MySQL tools making possible for them to update full-text fields"},{"Package":"manticoresoftware/buddy-plugin-autocomplete","Plugin":"autocomplete","Version":"%{VERSION}","Type":"core","Info":"Autocomplete plugin that offers suggestions based on the starting query"},{"Package":"manticoresoftware/buddy-plugin-cli-table","Plugin":"cli-table","Version":"%{VERSION}","Type":"core","Info":"/cli endpoint based on /cli_json - outputs query result as a table"},{"Package":"manticoresoftware/buddy-plugin-distributed-insert","Plugin":"distributed-insert","Version":"%{VERSION}","Type":"core","Info":"The plugin enables data insertion into distributed sharded tables."},{"Package":"manticoresoftware/buddy-plugin-truncate","Plugin":"truncate","Version":"%{VERSION}","Type":"core","Info":"Handles TRUNCATE statements on distributed tables"},{"Package":"manticoresoftware/buddy-plugin-metrics","Plugin":"metrics","Version":"%{VERSION}","Type":"core","Info":"Returns Prometheus metrics"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20where%20match('exmaple')%20option%20fuzzy=1"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],"data":[{"id":1,"value":"example","value_attr":"example"}]}]
––– input –––
curl -s "http://localhost:9308/cli_json?show%20fields%20from%20t"
––– output –––
- [{
- "columns":[{"Field":{"type":"string"}},{"Type":{"type":"string"}},{"Null":{"type":"string"}},{"Key":{"type":"string"}},{"Default":{"type":"string"}},{"Extra":{"type":"string"}}],
- "data":[
- {"Field":"id","Type":"bigint","Null":"NO","Key":"","Default":"","Extra":""},
- {"Field":"value","Type":"text","Null":"NO","Key":"","Default":"","Extra":""},
- {"Field":"value_attr","Type":"string","Null":"NO","Key":"","Default":"","Extra":""}
- ],
- "total":3,
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/cli_json?create%20table%20t_copy2%20like%20t"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
curl -s "http://localhost:9308/cli_json?select%20*%20from%20t%20limit%201"
––– output –––
- [{
- "columns":[{"id":{"type":"long long"}},{"value":{"type":"string"}},{"value_attr":{"type":"string"}}],
- "data":[
- {"id":1,"value":"example","value_attr":"example"}
- ],
- "total":1,
- "error":"",
- "warning":""
- }]test/clt-tests/http-interface/show-version-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:59.114 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:59.114 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:59.115 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | sed 's/ *|/|/g' | awk '!/row.*in set/'|grep -v "\-\-\-"|grep -v Component
––– output –––
- | Daemon| %{VERSION}|
- | Columnar| columnar %{VERSION}|
- | Secondary| secondary %{VERSION}|
- | Knn| knn %{VERSION}|
- | Embeddings| embeddings %{VERSION}|
- | Buddy| buddy %{VERSION}|test/clt-tests/mcl/auto-embeddings-openai-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title, content' API_KEY='${OPENAI_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_openai_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_openai_remote
- Create Table: CREATE TABLE test_openai_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='openai/text-embedding-ada-002' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_openai_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'title' API_KEY='${OPENAI_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_openai_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_openai_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_openai_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'openai/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_openai_no_from'" | grep -q test_openai_no_from; then mysql -h0 -P9306 -e "INSERT INTO test_openai_no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_openai_no_from'" | grep -q test_openai_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_openai_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test_openai_no_from.*model_name='openai\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$OPENAI_API_KEY" ] && [ "$OPENAI_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_openai_remote WHERE knn(embedding, 3, 'machine learning and artificial intelligence')\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
- *************************** 2. row ***************************
- id: %{NUMBER}
- knn_dist(): #!/[0-9]+\.[0-9]+/!#
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_openai_remote WHERE knn(embedding, 5, 'technology and AI') AND id > 0"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
API_KEY_VAL="${OPENAI_API_KEY}"; cat > /etc/manticoresearch/manticore.conf << CONFEOF
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_openai_plain {
type = rt
path = /var/lib/manticore/test_openai_plain
rt_field = title
rt_field = content
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","hnsw_m":16,"hnsw_ef_construction":200,"model_name":"openai/text-embedding-ada-002","from":"title,content","api_key":"${API_KEY_VAL}"}]}
}
CONFEOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:47:14.011 2026] [69] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------------------+------+
- | test_openai_plain | rt |
- +-------------------+------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_openai_plain (id, title, content) VALUES(1, 'bread', 'food item'), (2, 'cat', 'animal pet')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count FROM test_openai_plain"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count |
- +-------+
- | 2 |
- +-------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title FROM test_openai_plain WHERE knn(embedding, 2, 'dog')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- title: cat
- *************************** 2. row ***************************
- id: 1
- title: bread
––– input –––
cat > /etc/manticoresearch/manticore.conf << 'EOF'
searchd {
listen = 127.0.0.1:9306:mysql41
listen = 127.0.0.1:9308:http
log = /var/log/manticore/searchd.log
pid_file = /var/run/manticore/searchd.pid
}
table test_openai_no_key {
type = rt
path = /var/lib/manticore/test_openai_no_key
rt_field = title
rt_attr_float_vector = embedding
knn = {"attrs":[{"name":"embedding","type":"hnsw","hnsw_similarity":"L2","model_name":"openai/text-embedding-ada-002","from":"title"}]}
}
EOF
––– output –––
OK
––– input –––
searchd --stopwait --quiet
––– output –––
+ [Sun Mar 15 09:47:24.664 2026] [85] FATAL: stop: pid file '/var/run/manticore/searchd.pid' does not exist or is not readable
––– input –––
searchd 2>&1|grep WARNING
––– output –––
- WARNING: table 'test_openai_no_key': prealloc: Invalid API key for remote model - NOT SERVING |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mcl/auto-embeddings-hnsw-configs.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:18.643 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:18.644 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:18.644 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_l2 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_cosine (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_ip (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='ip'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for table in test_l2 test_cosine test_ip; do
mysql -h0 -P9306 -e "INSERT INTO $table (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning'),
(3, 'cooking recipes')" 2>/dev/null
done
echo "Data inserted into all tables"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_l2; OPTIMIZE TABLE test_l2 OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_cosine; OPTIMIZE TABLE test_cosine OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_ip; OPTIMIZE TABLE test_ip OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_l2 WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_cosine WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
mysql -h0 -P9306 -E -e "SELECT id FROM test_ip WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- *************************** 2. row ***************************
- id: 2
- *************************** 3. row ***************************
- id: 3
––– input –––
echo "L2 (Euclidean) distances:"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_l2 WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
L2 (Euclidean) distances:
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.4910#!/[0-9]{2,4}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.6170#!/[0-9]{2,5}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 1.42384#!/[0-9]{2,4}/!#
––– input –––
echo "Cosine similarity distances (smaller = more similar):"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_cosine WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
Cosine similarity distances (smaller = more similar):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.245522#!/[0-9]{1,3}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.308500#!/[0-9]{1,3}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 0.71192#!/[0-9]{0,3}/!#
––– input –––
echo "Inner product distances (smaller = more similar):"
mysql -h0 -P9306 -E -e "SELECT id, content, KNN_DIST() as distance FROM test_ip WHERE KNN(vec, 3, 'neural networks') ORDER BY distance"
––– output –––
Inner product distances (smaller = more similar):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 2
- content: deep learning
- distance: 0.245522#!/[0-9]{1,3}/!#
- *************************** 2. row ***************************
- id: 1
- content: machine learning
- distance: 0.308500#!/[0-9]{1,3}/!#
- *************************** 3. row ***************************
- id: 3
- content: cooking recipes
- distance: 0.71192#!/[0-9]{0,3}/!#
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_m4 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='4'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_m32 (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='32'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_hnsw_ef (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
HNSW_M='16'
HNSW_EF_CONSTRUCTION='500'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for table in test_hnsw_m4 test_hnsw_m32 test_hnsw_ef; do
mysql -h0 -P9306 -e "INSERT INTO $table (id, content) VALUES (1, 'test document')" 2>/dev/null
done
echo "HNSW configurations test completed"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_m4"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_m32"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
mysql -h0 -P9306 -E -e "SELECT COUNT(*) FROM test_hnsw_ef"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 1
––– input –––
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO test_hnsw_m4 (content) VALUES ('document number $i with various content')" 2>/dev/null
mysql -h0 -P9306 -e "INSERT INTO test_hnsw_m32 (content) VALUES ('document number $i with various content')" 2>/dev/null
done
echo "Additional documents inserted for performance comparison"
––– output –––
OK
––– input –––
echo "Search with M=4 (faster, less connections):"
mysql -h0 -P9306 -E -e "SELECT id FROM test_hnsw_m4 WHERE KNN(vec, 3, 'document content') LIMIT 3"
––– output –––
Search with M=4 (faster, less connections):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
––– input –––
echo "Search with M=32 (slower, more connections, potentially more accurate):"
mysql -h0 -P9306 -E -e "SELECT id FROM test_hnsw_m32 WHERE KNN(vec, 3, 'document content') LIMIT 3"
––– output –––
Search with M=32 (slower, more connections, potentially more accurate):
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- *************************** 2. row ***************************
- id: %{NUMBER}
- *************************** 3. row ***************************
- id: %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_metric (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='invalid_metric'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P03: Unknown knn similarity 'INVALID_METRIC' near ''invalid_metric'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
- FROM='content'
- ) engine='columnar''test/clt-tests/mcl/auto-embeddings-from-vector-check.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_title1 (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_title2 (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title1 (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title2 (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count_table1 FROM test_from_title1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count_table1 |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as count_table2 FROM test_from_title2"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count_table2 |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "title1_vector_md5: " $1}'
––– output –––
- title1_vector_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ title1_vector_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "title2_vector_md5: " $1}'
––– output –––
- title2_vector_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ title2_vector_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_title1 (id, title1, title2) VALUES(2, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=2" | grep -v embedding_vector | md5sum | awk '{print "consistent_md5: " $1}'
––– output –––
- consistent_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ consistent_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
MD5_TITLE1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_TITLE2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "title1_md5: $MD5_TITLE1"; echo "title2_md5: $MD5_TITLE2"; if [ "$MD5_TITLE1" != "$MD5_TITLE2" ]; then echo "SUCCESS: FROM clause produces different vectors"; else echo "FAIL: FROM clause produces same vectors"; fi
––– output –––
- title1_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- title2_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: FROM clause produces different vectors
+ title1_md5: d41d8cd98f00b204e9800998ecf8427e
+ title2_md5: d41d8cd98f00b204e9800998ecf8427e
+ FAIL: FROM clause produces same vectors
––– input –––
MD5_SAME1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_SAME2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=2" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "same_input_md5_1: $MD5_SAME1"; echo "same_input_md5_2: $MD5_SAME2"; if [ "$MD5_SAME1" = "$MD5_SAME2" ]; then echo "SUCCESS: Same input produces same vector"; else echo "FAIL: Same input produces different vectors"; fi
––– output –––
- same_input_md5_1: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- same_input_md5_2: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same input produces same vector
+ same_input_md5_1: d41d8cd98f00b204e9800998ecf8427e
+ same_input_md5_2: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same input produces same vector
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'invalid-model-name' FROM = 'title1') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_invalid': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_field (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from_specified (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from_specified': 'from' setting empty for KNN attribute 'embedding_vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_set_to_empty (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = '') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_multi_from (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1, title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_multi_from (id, title1, title2) VALUES(1, 'deep learning neural networks', 'computer vision algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_multi_from WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print "multi_field_md5: " $1}'
––– output –––
- multi_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
––– input –––
MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_multi_from WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_title1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Multi-field FROM produces different vector"; else echo "INFO: Multi-field vs single-field comparison"; fi
––– output –––
- multi_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/SUCCESS: Multi-field FROM produces different vector|INFO: Multi-field vs single-field comparison/!#
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: Multi-field vs single-field comparison
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from (title1 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2') "
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from': 'from' setting empty for KNN attribute 'embedding_vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_no_from (id, title1) VALUES(1, 'test title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t1 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t2 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title2') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_t3 (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title3') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_from_empty_all (title1 TEXT, title2 TEXT, title3 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = '') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t1 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t2 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_t3 (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_from_empty_all (id, title1, title2, title3) VALUES(1, 'neural ranking transformers', 'fresh orange citrus', 'race car tire pressure')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
MD5_T1=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t1 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_T2=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t2 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_T3=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_t3 WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); MD5_ALL=$(mysql -h0 -P9306 -e "SELECT embedding_vector FROM test_from_empty_all WHERE id=1" | grep -v embedding_vector | md5sum | awk '{print $1}'); echo "md5_t1: $MD5_T1"; echo "md5_t2: $MD5_T2"; echo "md5_t3: $MD5_T3"; echo "md5_all: $MD5_ALL"; UCOUNT=$(printf "%s\n%s\n%s\n%s\n" "$MD5_T1" "$MD5_T2" "$MD5_T3" "$MD5_ALL" | sort -u | wc -l); if [ "$UCOUNT" -eq 4 ]; then echo "SUCCESS: all FROM variants produce different vectors"; else echo "FAIL: expected 4 different vectors, got $UCOUNT"; fi
––– output –––
- md5_t1: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_t2: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_t3: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- md5_all: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: all FROM variants produce different vectors
+ md5_t1: d41d8cd98f00b204e9800998ecf8427e
+ md5_t2: d41d8cd98f00b204e9800998ecf8427e
+ md5_t3: d41d8cd98f00b204e9800998ecf8427e
+ md5_all: d41d8cd98f00b204e9800998ecf8427e
+ FAIL: expected 4 different vectors, got 1test/clt-tests/mcl/auto-embeddings-endpoints.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE emb_test (
id BIGINT,
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO emb_test (id, title, content) VALUES
(1, 'machine learning', 'neural networks and deep learning'),
(2, 'computer vision', 'image recognition and processing'),
(3, 'natural language', 'text analysis and understanding')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK emb_test; OPTIMIZE TABLE emb_test OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM emb_test WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
curl -s "http://localhost:9308/cli?select%20id,%20title%20from%20emb_test%20where%20knn(vec,%202,%20'artificial%20intelligence')" | grep -v 'rows in set'
––– output –––
- +----+------------------+
- | id | title |
- +----+------------------+
- | 1 | machine learning |
- | 2 | computer vision |
- | 3 | natural language |
- +----+------------------+
––– input –––
curl -s "http://localhost:9308/cli_json?select%20id,%20title,%20@knn_dist%20from%20emb_test%20where%20knn(vec,%201,%20'learning')" | jq -r '.[0].data[0] | "ID: \(.id)\nTitle: \(.title)\nDistance: \(.["@knn_dist"] | tostring)"'
––– output –––
- ID: 1
- Title: machine learning
- Distance: #!/1\.082[0-9]*/!#
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select count(*) from emb_test where knn(vec, 2, 'neural networks')" | jq -r '.[0].data[0]."count(*)"'
––– output –––
- 3
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"emb_test","id":10,"doc":{"title":"quantum computing","content":"quantum algorithms"}}' | jq -r '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"index":"emb_test","knn":{"field":"vec","query":"quantum","k":1}}' | jq -r '.hits.hits[0]._source.title'
––– output –––
- quantum computing
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"index":"emb_test","knn":{"field":"vec","query_text":"quantum","k":1}}'
––– output –––
- {"error":""}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE chunk_test (
id BIGINT,
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO chunk_test (id, title) VALUES
(1, 'machine learning'),
(2, 'deep learning'),
(3, 'reinforcement learning')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM chunk_test WHERE KNN(vec, 1, 'learning')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK chunk_test; OPTIMIZE TABLE chunk_test OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM chunk_test WHERE KNN(vec, 1, 'learning')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+test/clt-tests/mcl/auto-embeddings-json-api.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:43.119 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:43.119 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:43.120 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_json_columnar (
title TEXT,
content TEXT,
embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_json_columnar" | grep -o "model_name='sentence-transformers/all-MiniLM-L6-v2'"
––– output –––
- model_name='sentence-transformers/all-MiniLM-L6-v2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_columnar","id":1,"doc":{"title":"machine learning","content":"neural networks"}}' | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_json_columnar WHERE KNN(embedding, 1, 'machine learning neural networks')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s -X POST http://localhost:9308/bulk -H "Content-Type: application/x-ndjson" -d '
{"insert":{"index":"test_json_columnar","id":2,"doc":{"title":"computer vision","content":"image recognition"}}}
{"insert":{"index":"test_json_columnar","id":3,"doc":{"title":"NLP","content":"text processing"}}}
' | jq '{created: .items[0].bulk.created}'
––– output –––
- {
- "created": 2
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_columnar WHERE id IN (2,3)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"index":"test_json_columnar","id":1,"doc":{"title":"updated ML","content":"updated networks"}}' | jq -r '.result'
––– output –––
- updated
––– input –––
mysql -h0 -P9306 -e "SELECT title FROM test_json_columnar WHERE id=1 AND KNN(embedding, 1, 'updated ML networks')"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title |
- +------------+
- | updated ML |
- +------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_json_columnar (id, title, content) VALUES (100, 'test', 'data')";
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_columnar","id":101,"doc":{"title":"test","content":"data"}}' > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_columnar WHERE id=100" > /tmp/v1.txt
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_columnar WHERE id=101" > /tmp/v2.txt
diff -q /tmp/v1.txt /tmp/v2.txt > /dev/null && echo "Vectors identical" || echo "Vectors differ"
––– output –––
- Vectors identical
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Vectors identical
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_columnar"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 5 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_json_columnar; OPTIMIZE TABLE test_json_columnar OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.01']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"test_json_columnar\",\"knn\":{\"field\":\"embedding\",\"query_vector\":[$VECTOR],\"k\":2}}" | jq -r '.hits.total // "0"'
––– output –––
- 5
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE no_auto_embed (title TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='384' HNSW_SIMILARITY='l2') engine='columnar'"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.5']*384))")
curl -s -X POST http://localhost:9308/insert -d "{\"index\":\"no_auto_embed\",\"id\":1,\"doc\":{\"title\":\"test\",\"vec\":[$VECTOR]}}" | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
QUERY_VEC=$(python3 -c "print(','.join(['0.5']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"no_auto_embed\",\"knn\":{\"field\":\"vec\",\"query_vector\":[$QUERY_VEC],\"k\":1}}" | jq -r '.hits.total // "0"'
––– output –––
- 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_json_rowwise (
title TEXT,
content TEXT,
embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_json_rowwise" | grep -o "model_name='sentence-transformers/all-MiniLM-L6-v2'"
––– output –––
- model_name='sentence-transformers/all-MiniLM-L6-v2'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_rowwise","id":1,"doc":{"title":"machine learning","content":"neural networks"}}' | jq -r 'if ._id then ._id else "inserted" end'
––– output –––
- inserted
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_json_rowwise WHERE KNN(embedding, 1, 'machine learning neural networks')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s -X POST http://localhost:9308/bulk -H "Content-Type: application/x-ndjson" -d '
{"insert":{"index":"test_json_rowwise","id":2,"doc":{"title":"computer vision","content":"image recognition"}}}
{"insert":{"index":"test_json_rowwise","id":3,"doc":{"title":"NLP","content":"text processing"}}}
' | jq '{created: .items[0].bulk.created}'
––– output –––
- {
- "created": 2
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_rowwise WHERE id IN (2,3)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"index":"test_json_rowwise","id":1,"doc":{"title":"updated ML","content":"updated networks"}}' | jq -r '.result'
––– output –––
- updated
––– input –––
mysql -h0 -P9306 -e "SELECT title FROM test_json_rowwise WHERE id=1 AND KNN(embedding, 1, 'updated ML networks')"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title |
- +------------+
- | updated ML |
- +------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_json_rowwise (id, title, content) VALUES (100, 'test', 'data')";
curl -s -X POST http://localhost:9308/insert -d '{"index":"test_json_rowwise","id":101,"doc":{"title":"test","content":"data"}}' > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_rowwise WHERE id=100" > /tmp/v1.txt
mysql -h0 -P9306 --batch --skip-column-names -e "SELECT embedding FROM test_json_rowwise WHERE id=101" > /tmp/v2.txt
diff -q /tmp/v1.txt /tmp/v2.txt > /dev/null && echo "Vectors identical" || echo "Vectors differ"
––– output –––
- Vectors identical
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Vectors identical
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_json_rowwise"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 5 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_json_rowwise; OPTIMIZE TABLE test_json_rowwise OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
VECTOR=$(python3 -c "print(','.join(['0.01']*384))")
curl -s -X POST http://localhost:9308/search -d "{\"index\":\"test_json_rowwise\",\"knn\":{\"field\":\"embedding\",\"query_vector\":[$VECTOR],\"k\":2}}" | jq -r '.hits.total // "0"'
––– output –––
- 5test/clt-tests/mcl/auto-embeddings-edge-cases.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty (
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (1, 'Content without title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title) VALUES (2, 'Title without content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title, content) VALUES (4, '', 'Non-empty content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, title, content) VALUES (5, '', '')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_unicode (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (1, '🔥 Machine Learning is awesome! 🚀💻')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (2, '机器学习和人工智能的未来')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (3, 'التعلم الآلي والذكاء الاصطناعي')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (4, 'English текст 日本語 mixed المختلط')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (5, '@#$%^&*()_+-=[]{}|;:<>?,./~\`')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_unicode WHERE KNN(vec, 2, '机器学习 🚀')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 2 |
- | 3 |
- | 4 |
- | 1 |
- | 5 |
- +------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (100, 'Text with SQL: DROP TABLE test; SELECT * FROM users;')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT content_text FROM test_unicode WHERE id=100"
––– output –––
- +------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | content_text |
- +------------------------------------------------------+
- | Text with SQL: DROP TABLE test; SELECT * FROM users; |
- +------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (101, 'Line 1
Line 2
Tabbed line
Line 4')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_unicode (id, content_text) VALUES (102, '<html><body><h1>Title</h1><script>alert(1)</script></body></html>')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
HUGE_TEXT=$(python3 -c "print('neural network ' * 1000)")
mysql -h0 -P9306 -e "CREATE TABLE test_huge (
id BIGINT,
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_huge (id, content_text) VALUES (1, '$HUGE_TEXT')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_huge WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 1 | 1.#!/[0-9]+(\.[0-9]+)?/!# |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_huge WHERE KNN(vec, 1, 'neural network')"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
for i in 1 2 3; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title) VALUES ($((1000+i)), 'Concurrent insert $i')" 2>&1 &
done
wait
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_concurrent WHERE id >= 1001 AND id <= 1003"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 3 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_auto_dims (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_auto_dims"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_auto_dims
- Create Table: CREATE TABLE test_auto_dims (
- id bigint,
- content_text text,
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content_text'
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_rapid (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content_text'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in $(seq 1 20); do
mysql -h0 -P9306 -e "REPLACE INTO test_rapid (id, content_text) VALUES (1, 'Iteration $i')" 2>/dev/null
done
mysql -h0 -P9306 -e "SELECT content_text FROM test_rapid WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | content_text |
- +--------------+
- | Iteration 20 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_row (
title TEXT,
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty_row (id, content) VALUES (1, 'Content without title')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_empty_row WHERE KNN(vec, 1, 'test query')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_compare_row (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_compare_col (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_compare_row (id, title) VALUES (1, 'Machine learning algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_compare_col (id, title) VALUES (1, 'Machine learning algorithms')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_compare_row WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_compare_col WHERE KNN(vec, 1, 'machine learning')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_scale_columnar (
id BIGINT,
title TEXT,
description TEXT,
category STRING ATTRIBUTE,
age INT,
salary FLOAT,
discount FLOAT,
is_active BOOL,
last_login TIMESTAMP,
product_codes MULTI,
large_values MULTI64,
additional_info JSON,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, description'
) engine='columnar'" --load="INSERT INTO test_scale_columnar (id, title, description, category, age, salary, discount, is_active, last_login, product_codes, large_values, additional_info) VALUES (<increment>, 'Document title <increment>', 'Document description <increment>', 'cat_<increment>', <int/18/65>, <float/1000.0/100000.0>, <float/0.0/50.0>, <int/0/1>, <int/1609459200/1704067200>, (<array/1/5/100/999>), (<array/1/3/1000000/9999999>), '{\"rating\":<int/1/5>,\"verified\":<int/0/1>}')" --batch-size=500 --threads=2 --total=5000
––– output –––
- {
+ Process 1 failed: Connection refused
- "threads": %{NUMBER},
+ Process 1 failed early, terminating all processes...
- "batch_size": %{NUMBER},
- "time": "%{NUMBER}:%{NUMBER}",
- "total_operations": 5000,
- "operations_per_second": %{NUMBER},
- "qps": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p99": %{NUMBER},
- "p95": %{NUMBER},
- "p5": %{NUMBER},
- "p1": %{NUMBER}
- },
- "latency": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p50": %{NUMBER},
- "p95": %{NUMBER},
- "p99": %{NUMBER}
- }
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_scale_columnar"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 5000 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "DESCRIBE test_scale_columnar;"
––– output –––
- +-----------------+--------------+-------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-----------------+--------------+-------------------------+
- | id | bigint | columnar fast_fetch |
- | title | text | indexed stored |
- | description | text | indexed stored |
- | category | string | columnar fast_fetch |
- | age | uint | columnar fast_fetch |
- | salary | float | columnar fast_fetch |
- | discount | float | columnar fast_fetch |
- | is_active | bool | columnar fast_fetch |
- | last_login | timestamp | columnar fast_fetch |
- | product_codes | mva | columnar fast_fetch |
- | large_values | mva64 | columnar fast_fetch |
- | additional_info | json | |
- | vec | float_vector | columnar knn fast_fetch |
- +-----------------+--------------+-------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_scale_columnar ORDER BY id ASC LIMIT 100" > /tmp/test_scale_columnar.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_scale_columnar WHERE KNN(vec, 5, 'Document title 100') LIMIT 5\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 10012
- title: Document title 10011
- category: cat_10009
- knn_dist(): 0.28152#!/[0-9]{3}/!#
- *************************** 2. row ***************************
- id: 10020
- title: Document title 10019
- category: cat_10017
- knn_dist(): 0.28869#!/[0-9]{3}/!#
- *************************** 3. row ***************************
- id: 10052
- title: Document title 10051
- category: cat_10049
- knn_dist(): 0.31627#!/[0-9]{3}/!#
- *************************** 4. row ***************************
- id: 10072
- title: Document title 10071
- category: cat_10069
- knn_dist(): 0.33028#!/[0-9]{3}/!#
- *************************** 5. row ***************************
- id: 10044
- title: Document title 10043
- category: cat_10041
- knn_dist(): 0.33115#!/[0-9]{3}/!#
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_scale_rowwise (
id BIGINT,
title TEXT,
description TEXT,
category STRING ATTRIBUTE,
age INT,
salary FLOAT,
discount FLOAT,
is_active BOOL,
last_login TIMESTAMP,
product_codes MULTI,
large_values MULTI64,
additional_info JSON,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, description'
) engine='rowwise'" --load="INSERT INTO test_scale_rowwise (id, title, description, category, age, salary, discount, is_active, last_login, product_codes, large_values, additional_info) VALUES (<increment>, 'Document title <increment>', 'Document description <increment>', 'cat_<increment>', <int/18/65>, <float/1000.0/100000.0>, <float/0.0/50.0>, <int/0/1>, <int/1609459200/1704067200>, (<array/1/5/100/999>), (<array/1/3/1000000/9999999>), '{\"rating\":<int/1/5>,\"verified\":<int/0/1>}')" --batch-size=500 --threads=2 --total=5000
––– output –––
- {
+ Process 1 failed: Connection refused
- "threads": %{NUMBER},
+ Process 1 failed early, terminating all processes...
- "batch_size": %{NUMBER},
- "time": "%{NUMBER}:%{NUMBER}",
- "total_operations": 5000,
- "operations_per_second": %{NUMBER},
- "qps": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p99": %{NUMBER},
- "p95": %{NUMBER},
- "p5": %{NUMBER},
- "p1": %{NUMBER}
- },
- "latency": {
- "avg": #!/[0-9]+(\.[0-9]+)?/!#,
- "p50": %{NUMBER},
- "p95": %{NUMBER},
- "p99": %{NUMBER}
- }
- }
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_scale_rowwise"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 5000 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "DESCRIBE test_scale_rowwise;"
––– output –––
- +-----------------+--------------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-----------------+--------------+----------------+
- | id | bigint | |
- | title | text | indexed stored |
- | description | 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 | |
- | vec | float_vector | knn |
- +-----------------+--------------+----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_scale_rowwise ORDER BY id ASC LIMIT 100" > /tmp/test_scale_rowwise.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_scale_rowwise WHERE KNN(vec, 5, 'Document title 100') LIMIT 5\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 10012
- title: Document title 10011
- category: cat_10009
- knn_dist(): 0.28152#!/[0-9]{3}/!#
- *************************** 2. row ***************************
- id: 10020
- title: Document title 10019
- category: cat_10017
- knn_dist(): 0.28869#!/[0-9]{3}/!#
- *************************** 3. row ***************************
- id: 10052
- title: Document title 10051
- category: cat_10049
- knn_dist(): 0.31627#!/[0-9]{3}/!#
- *************************** 4. row ***************************
- id: 10072
- title: Document title 10071
- category: cat_10069
- knn_dist(): 0.33028#!/[0-9]{3}/!#
- *************************** 5. row ***************************
- id: 10044
- title: Document title 10043
- category: cat_10041
- knn_dist(): 0.33115#!/[0-9]{3}/!#
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_batch_perf (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
START_TIME=$(date +%s)
mysql -h0 -P9306 -e "INSERT INTO test_batch_perf (id, content) VALUES
(1, 'First text'), (2, 'Second text'), (3, 'Third text'),
(4, 'Fourth text'), (5, 'Fifth text')"
END_TIME=$(date +%s)
echo "Batch insert time: $((END_TIME - START_TIME)) seconds"
––– output –––
- Batch insert time: %{NUMBER} seconds
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Batch insert time: 0 seconds
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE perf_test_row (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE perf_test_col (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
START_TIME=$(date +%s%N)
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO perf_test_row (id, content) VALUES ($i, 'Test content $i')" 2>/dev/null
done
END_TIME=$(date +%s%N)
echo "Row-wise 10 inserts: $(( (END_TIME - START_TIME) / 1000000 )) ms"
––– output –––
OK
––– input –––
START_TIME=$(date +%s%N)
for i in {1..10}; do
mysql -h0 -P9306 -e "INSERT INTO perf_test_col (id, content) VALUES ($i, 'Test content $i')" 2>/dev/null
done
END_TIME=$(date +%s%N)
echo "Columnar 10 inserts: $(( (END_TIME - START_TIME) / 1000000 )) ms"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_search (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'";
mysql -h0 -P9306 -e "SELECT id FROM test_empty_search WHERE KNN(vec, 5, 'search query')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1test/clt-tests/mcl/auto-embeddings-duplicate-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:11.956 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:11.956 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:11.957 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_row_wise (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_row_wise (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_row_wise (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"
––– output –––
- ERROR 1064 (42000) at line 1: duplicate id '1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_columnar (title1 TEXT, title2 TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'sentence-transformers/all-MiniLM-L6-v2' FROM = 'title1') engine = 'columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_columnar (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_columnar (id, title1, title2) VALUES(1, 'machine learning artificial intelligence', 'banana fruit sweet yellow')"
––– output –––
- ERROR 1064 (42000) at line 1: duplicate id '1'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mcl/auto-embeddings-error-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:52.538 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:52.538 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:52.539 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_dims (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' KNN_DIMS='384'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)" 2>&1
# Check if table was actually created
mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_dims'" | grep -q "test_dims" && echo "Table created" || echo "Table not created"
––– output –––
- ERROR 1064 (42000) at line 1: P03: knn_dims can't be used together with model_name near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table not created
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Table not created
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_auto_dims (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_auto_dims (id, title) VALUES (1, 'Test document')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_model (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
FROM='title'
)"
––– output –––
- ERROR 1064 (42000) at line 1: P03: knn_dims and hnsw_similarity are required if knn_type='hnsw' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_from (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_from': 'from' setting empty for KNN attribute 'vec'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty_from (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM=''
)"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bad_model (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='non-existent-model/invalid-name'
FROM='title'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_bad_model': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_prefix (
content_text TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='all-MiniLM-L6-v2'
FROM='content_text'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_no_prefix': prealloc: Failed to download model configuration
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bad_from (
title TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='non_existent_field'
)"
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_bad_from': prealloc: embedding source 'non_existent_field' not found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_circular (
title TEXT,
vec1 FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='vec1'
)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_circular': prealloc: embedding source attribute 'vec1' is not a string
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_empty (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (1, '')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_empty (id, content) VALUES (2, NULL)" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected null near 'NULL)'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_empty"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_rowwise (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_rowwise (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_rowwise; OPTIMIZE TABLE test_rowwise OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_rowwise WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_vec_columnar (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' engine='columnar'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_vec_columnar (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vec_columnar; OPTIMIZE TABLE test_vec_columnar OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vec_columnar WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_full_columnar (
content TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_full_columnar (id, content) VALUES
(1, 'machine learning'),
(2, 'deep learning')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_full_columnar; OPTIMIZE TABLE test_full_columnar OPTION sync=1, cutoff=1"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_full_columnar WHERE KNN(vec, 1, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
echo "Row-wise (default):"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_rowwise\G" | grep -E "vec.*float_vector"
––– output –––
Row-wise (default):
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Vec columnar only:"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_vec_columnar\G" | grep -E "vec.*float_vector"
––– output –––
Vec columnar only:
- vec float_vector engine='columnar' knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Full columnar:"
mysql -h0 -P9306 -e "SHOW CREATE TABLE test_full_columnar\G" | grep -E "(vec.*float_vector|engine='columnar')"
––– output –––
Full columnar:
- vec float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='content'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_auto_dims WHERE KNN(wrong_field, 1, 'test')" 2>&1 | grep -o "wrong_field.*not found"
––– output –––
- wrong_field' not foundtest/clt-tests/mcl/auto-embeddings-knn-select-scenarios.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_knn_select (id BIGINT, title TEXT, content TEXT, category string attribute, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content') engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_knn_select"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_knn_select
- Create Table: CREATE TABLE test_knn_select (
- id bigint,
- title text,
- content text,
- category string attribute,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='sentence-transformers/all-MiniLM-L6-v2' FROM='title, content'
- ) engine='columnar'
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_knn_select (id, title, content, category) VALUES (1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'technology'), (2, 'cooking recipes', 'delicious pasta and italian cuisine', 'food'), (3, 'travel destinations', 'beautiful beaches and mountain hiking', 'travel'), (4, 'artificial intelligence', 'machine learning and deep learning models', 'technology'), (5, 'healthy eating', 'nutritious meals and balanced diet', 'food')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as total_records FROM test_knn_select"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total_records |
- +---------------+
- | 5 |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3, 0.4,0.2, 0.3))"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 1 | machine learning algorithms | #!/141\.302[0-9]*/!# |
- | 4 | artificial intelligence | #!/141\.419[0-9]*/!# |
- | 2 | cooking recipes | #!/141\.779[0-9]*/!# |
- | 3 | travel destinations | #!/142\.266[0-9]*/!# |
- | 5 | healthy eating | #!/142\.354[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning artificial intelligence')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 4 | artificial intelligence | #!/0\.590[0-9]*/!# |
- | 1 | machine learning algorithms | #!/0\.601[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.779[0-9]*/!# |
- | 3 | travel destinations | #!/1\.940[0-9]*/!# |
- | 5 | healthy eating | #!/1\.976[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, '')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 2 | cooking recipes | #!/1\.885[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.922[0-9]*/!# |
- | 3 | travel destinations | #!/1\.935[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.947[0-9]*/!# |
- | 5 | healthy eating | #!/1\.977[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, 'food cooking recipes')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 2 | cooking recipes | #!/0\.807[0-9]*/!# |
- | 5 | healthy eating | #!/1\.310[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.739[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.747[0-9]*/!# |
- | 3 | travel destinations | #!/1\.831[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 2, 1)"
––– output –––
- +------+-------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-------------------------+------------+
- | 4 | artificial intelligence | #!/0\.225[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.762[0-9]*/!# |
- | 3 | travel destinations | #!/1\.838[0-9]*/!# |
- | 5 | healthy eating | #!/1\.974[0-9]*/!# |
- +------+-------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, category, knn_dist() FROM test_knn_select WHERE knn(embedding, 5, 'technology computers') AND category = 'technology'"
––– output –––
- +------+-----------------------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | category | knn_dist() |
- +------+-----------------------------+------------+------------+
- | 4 | artificial intelligence | technology | #!/1\.328[0-9]*/!# |
- | 1 | machine learning algorithms | technology | #!/1\.357[0-9]*/!# |
- +------+-----------------------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'travel vacation destinations', {ef=100, rescore=1, oversampling=2.0})"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 3 | travel destinations | #!/0\.595[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.772[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.796[0-9]*/!# |
- | 5 | healthy eating | #!/1\.869[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.875[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title FROM test_knn_select WHERE knn(embedding, 3, 'search query with special chars @#$%^&*()')"
––– output –––
- +------+-----------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title |
- +------+-----------------------------+
- | 4 | artificial intelligence |
- | 3 | travel destinations |
- | 1 | machine learning algorithms |
- | 5 | healthy eating |
- | 2 | cooking recipes |
- +------+-----------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'artificial intelligence') AND MATCH('machine')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 4 | artificial intelligence | #!/0\.846[0-9]*/!# |
- | 1 | machine learning algorithms | #!/0\.908[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, title, knn_dist() FROM test_knn_select WHERE knn(embedding, 5, 'healthy nutrition food')"
––– output –––
- +------+-----------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | knn_dist() |
- +------+-----------------------------+------------+
- | 5 | healthy eating | #!/0\.472[0-9]*/!# |
- | 2 | cooking recipes | #!/1\.500[0-9]*/!# |
- | 3 | travel destinations | #!/1\.803[0-9]*/!# |
- | 1 | machine learning algorithms | #!/1\.977[0-9]*/!# |
- | 4 | artificial intelligence | #!/1\.989[0-9]*/!# |
- +------+-----------------------------+------------+
––– input –––
QUERY1_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning')" | md5sum | awk '{print $1}'); QUERY2_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'machine learning')" | md5sum | awk '{print $1}'); echo "query1_md5: $QUERY1_MD5"; echo "query2_md5: $QUERY2_MD5"; if [ "$QUERY1_MD5" = "$QUERY2_MD5" ]; then echo "SUCCESS: Same text query produces consistent results"; else echo "FAIL: Same text query produces different results"; fi
––– output –––
- query1_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- query2_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same text query produces consistent results
+ query1_md5: d41d8cd98f00b204e9800998ecf8427e
+ query2_md5: d41d8cd98f00b204e9800998ecf8427e
+ SUCCESS: Same text query produces consistent results
––– input –––
TECH_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'technology computers')" | md5sum | awk '{print $1}'); FOOD_MD5=$(mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM test_knn_select WHERE knn(embedding, 3, 'food cooking')" | md5sum | awk '{print $1}'); echo "tech_query_md5: $TECH_MD5"; echo "food_query_md5: $FOOD_MD5"; if [ "$TECH_MD5" != "$FOOD_MD5" ]; then echo "SUCCESS: Different text queries produce different results"; else echo "INFO: Query comparison result"; fi
––– output –––
- tech_query_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- food_query_md5: #!/[a-f0-9]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/SUCCESS: Different text queries produce different results|INFO: Query comparison result/!#
+ tech_query_md5: d41d8cd98f00b204e9800998ecf8427e
+ food_query_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: Query comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_no_auto (id BIGINT, title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='384' HNSW_SIMILARITY='l2') engine='columnar'"; mysql -h0 -P9306 -e "INSERT INTO test_no_auto (id, title, embedding) VALUES (1, 'test', (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4))"; mysql -h0 -P9306 -e "SELECT id, title FROM test_no_auto WHERE knn(embedding, 2, 'test query')"
––– output –––
- #!/.*ERROR.*(model|embedding|auto).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mcl/auto-embeddings-jina-remote.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
cosine_similarity() {
local file1="$1" file2="$2"
awk '
NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
{
dot += a[FNR]*$1
sumb2 += $1*$1
}
END {
print dot / (sqrt(suma2) * sqrt(sumb2))
}' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
- #!/.*ERROR.*(model.*not.*found|invalid.*model|model.*does.*not.*exist|configuration).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v2-base-en' FROM = 'title') " 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: error adding table 'test_valid_model_no_api_key': prealloc: Invalid API key for remote model
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title, content' API_KEY='${JINA_API_KEY}') "; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_jina_remote"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: test_jina_remote
- Create Table: CREATE TABLE test_jina_remote (
- id bigint,
- title text,
- content text,
- description text,
- embedding float_vector knn_type='hnsw' hnsw_similarity='L2' model_name='jina/jina-embeddings-v4' FROM='title, content'
- )
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_jina_remote WHERE id=1"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | record_count |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"
mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt
mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=2" | \
grep -v embedding | \
sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
grep -E '^[0-9]+(\.[0-9]+)?$' | \
awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt
SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)
echo "Cosine similarity: $SIMILARITY"
RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
if (sim > 0.99)
print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
else
print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')
echo "$RESULT"
rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title' API_KEY='${JINA_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_jina_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
- multi_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- single_field_md5: #!/[0-9a-f]{32}/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- SUCCESS: Different FROM specifications produce different vectors
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ multi_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ single_field_md5: d41d8cd98f00b204e9800998ecf8427e
+ INFO: FROM field comparison result
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
- #!/.*ERROR.*(field|column|nonexistent).*/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "INSERT INTO test_jina_no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
- #!/(insert_result: (0|ERROR.*dimension.*mismatch.*)|insert_result: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ insert_result: skipped (table not created)
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_jina_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
- #!/(.*CREATE TABLE test_jina_no_from.*model_name='jina\/text-embedding-ada-002'.*engine='columnar'.*|table_structure: skipped \(table not created\))/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ table_structure: skipped (table not created)
––– input –––
if [ -n "$JINA_API_KEY" ] && [ "$JINA_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/show-version-trailing-semicolon.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:18.013 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:18.013 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:18.014 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT); INSERT INTO t VALUES (1, 'example'), (2, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/cli?show%20version" | awk '!/row.*in set/'|grep -v "\-\-\-"|grep -v Component; echo
––– output –––
- | Daemon | %{VERSION} #!/\s*/!#|
- | Columnar | columnar %{VERSION} #!/\s*/!#|
- | Secondary | secondary %{VERSION} #!/\s*/!#|
- | Knn | knn %{VERSION} #!/\s*/!#|
- | Embeddings | embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)\s*/!#|
- | Buddy | buddy %{VERSION} #!/\s*/!#|
––– input –––
curl -s "http://localhost:9308/cli_json" -d "show version"; echo
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw" -d "show version"; echo
––– output –––
- [{"total":%{NUMBER},"error":"","warning":"","columns":[{"Component":{"type":"string"}},{"Version":{"type":"string"}}],"data":[{"Component":"Daemon","Version":"%{VERSION}"},{"Component":"Columnar","Version":"columnar %{VERSION}"},{"Component":"Secondary","Version":"secondary %{VERSION}"},{"Component":"Knn","Version":"knn %{VERSION}"},{"Component":"Embeddings","Version":"embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"},{"Component":"Buddy","Version":"buddy %{VERSION}"}]}]test/clt-tests/http-interface/test-distributed-inserts.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test2;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test2 (
id BIGINT,
model TEXT,
storage_capacity INTEGER,
color STRING,
release_year INTEGER,
price FLOAT,
discounted_price FLOAT,
sold BOOL,
date_added TIMESTAMP,
product_codes MULTI,
values MULTI64,
additional_info JSON,
vector FLOAT_VECTOR
knn_type='hnsw'
knn_dims='4'
hnsw_similarity='l2'
) shards='3' rf='1';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables;"
––– output –––
- +-------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+-------------+
- | test2 | distributed |
- +-------+-------------+
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test2;"
––– output –––
- +------------------+--------------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | storage_capacity | uint | |
- | color | string | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | bool | |
- | date_added | timestamp | |
- | product_codes | mva | |
- | values | mva64 | |
- | additional_info | json | |
- | vector | float_vector | knn |
- +------------------+--------------+----------------+
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 1,
"doc": {
"model": "iPhone 13 Pro",
"storage_capacity": 256,
"color": "silver",
"release_year": 2021,
"price": 1099.99,
"discounted_price": 989.99,
"sold": 1,
"date_added": 1591362342000,
"product_codes": [1,2,3],
"values": [523456764345678976,98765409877866654098,1109876543450987650987],
"additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Ceramic Shield front cover"]},
"vector": [0.773448,0.312478,0.137971,0.459821]
}
}' | jq '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 2,
"doc": {
"model": "Galaxy S21 Ultra",
"storage_capacity": 128,
"color": "black",
"release_year": 2021,
"price": 1199.99,
"discounted_price": 1099.99,
"sold": 1,
"date_added": 1609459200000,
"product_codes": [4,5,6],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["Dynamic AMOLED 2X", "Exynos 2100", "108MP camera"]},
"vector": [0.5,0.4,0.3,0.2]
}
}' | jq '.created'
––– output –––
- true
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 3,
"doc": {
"model": "Pixel 6",
"storage_capacity": 128,
"color": "white",
"release_year": 2021,
"price": 599.99,
"discounted_price": 549.99,
"sold": false,
"date_added": 1630454400000,
"product_codes": [7,8,9],
"values": [987654321987654321,123456789123456789],
"additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]},
"vector": [0.8,0.6,0.4,0.2]
}
}' | jq '.created'
––– output –––
- true
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
- | 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{
"table": "test2",
"id": 1,
"doc": {
"model": "Updated Model",
"storage_capacity": 512,
"color": "black",
"release_year": 2022,
"price": 1399.99,
"discounted_price": 1299.99,
"sold": false,
"date_added": 1630454400000,
"product_codes": [10,11,12],
"values": [987654321987654321,123456789123456789],
"additional_info": {"features": ["New feature 1","New feature 2"]},
"vector": [0.7,0.8,0.9,1.0]
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/update -d '{
"table": "test2",
"id": 2,
"doc": {
"price": 1099.99,
"discounted_price": 999.99
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/update -d '{
"table": "test2",
"id": 2,
"doc": {
"price": 1099.99,
"discounted_price": 999.99
}
}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{
"table": "test2",
"id": 3
}' | jq '.result'
––– output –––
- "deleted"
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{
"table": "test2",
"id": 3
}' | jq '.result'
––– output –––
- "not found"
––– input –––
bulk_insert=$(mktemp); echo -e '{ "index": { "_index": "test2", "_id": 4 } }\n{ "id": 4, "model": "iPhone 14", "storage_capacity": 256, "color": "black", "release_year": 2022, "price": 999.99, "discounted_price": 899.99, "sold": 1, "date_added": 1661990400, "product_codes": [19, 20, 21], "values": [1234567890123456789, 9876543210987654321], "additional_info": { "features": ["A16 Bionic", "Dynamic Island"] }, "vector": [0.1, 0.2, 0.3, 0.4] }\n{ "index": { "_index": "test2", "_id": 5 } }\n{ "id": 5, "model": "Pixel 7", "storage_capacity": 128, "color": "white", "release_year": 2022, "price": 699.99, "discounted_price": 649.99, "sold": 0, "date_added": 1661990400, "product_codes": [16, 17, 18], "values": [223344556677889900, 998877665544332211], "additional_info": { "features": ["Tensor G2", "120Hz display"] }, "vector": [0.4, 0.5, 0.6, 0.7] }' > "$bulk_insert"
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_insert" http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": 4
- }
- {
- "index": "created",
- "id": 5
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_insert=$(mktemp); echo -e '{"index":{"_index":"test2","_id":6}}\n{"id":6,"model":"OnePlus 10","storage_capacity":256,"color":"blue","release_year":2022,"price":899.99,"discounted_price":849.99,"sold":0,"date_added":1661990400,"product_codes":[22,23,24],"values":[111222333444555666,777888999000111222],"additional_info":{"features":["Snapdragon 8","OxygenOS"]},"vector":[0.2,0.3,0.4,0.5]}\n{"index":{"_index":"test2","_id":7}}\n{"id":7,"model":"Xiaomi 12","storage_capacity":128,"color":"gray","release_year":2022,"price":799.99,"discounted_price":749.99,"sold":1,"date_added":1661990400,"product_codes":[25,26,27],"values":[333444555666777888,999000111222333444],"additional_info":{"features":["MIUI 13","5G"]},"vector":[0.3,0.4,0.5,0.6]}' > "$bulk_insert"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_insert" http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": 6
- }
- {
- "index": "created",
- "id": 7
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 899.989990 | 849.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 799.989990 | 749.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_update=$(mktemp); echo -e '{"update":{"_index":"test2","_id":6}}\n{"doc":{"price": 799.99, "discounted_price": 749.99}}\n{"update":{"_index":"test2","_id":7}}\n{"doc":{"price": 699.99, "discounted_price": 649.99}}' > "$bulk_update"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_update" http://localhost:9308/_bulk | jq '.items[] | {update: .update.result, id: .update._id}'
––– output –––
- {
- "update": "updated",
- "id": "6"
- }
- {
- "update": "updated",
- "id": "7"
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1099.989990 | 999.989990 | 1 | 3141431296 | 4,5,6 | 1234567890123456789 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 799.989990 | 749.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 699.989990 | 649.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+-----------------------------------------------------------------+-------------------------------------+
––– input –––
bulk_delete=$(mktemp); echo -e '{"delete":{"_index":"test2","_id":2}}\n{"delete":{"_index":"test2","_id":3}}' > "$bulk_delete"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_delete" http://localhost:9308/_bulk | jq '.items[] | {delete: .delete.result, id: .delete._id}'
––– output –––
- {
- "delete": "deleted",
- "id": "2"
- }
- {
- "delete": "deleted",
- "id": "3"
- }
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 order by id asc;"
––– output –––
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
- | 1 | Updated Model | 512 | black | 2022 | 1399.989990 | 1299.989990 | 0 | 2661794816 | 10,11,12 | 123456789123456789,987654321987654321 | {"features":["New feature 1","New feature 2"]} | 0.700000,0.800000,0.900000,1.000000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- | 6 | OnePlus 10 | 256 | blue | 2022 | 799.989990 | 749.989990 | 0 | 1661990400 | 22,23,24 | 111222333444555666,777888999000111222 | {"features":["Snapdragon 8","OxygenOS"]} | 0.200000,0.300000,0.400000,0.500000 |
- | 7 | Xiaomi 12 | 128 | gray | 2022 | 699.989990 | 649.989990 | 1 | 1661990400 | 25,26,27 | 333444555666777888,999000111222333444 | {"features":["MIUI 13","5G"]} | 0.300000,0.400000,0.500000,0.600000 |
- +------+---------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+---------------------------------------+------------------------------------------------+-------------------------------------+
––– input –––
bulk_ops=$(mktemp); echo -e '{"delete":{"_index":"test2","_id":1}}\n{"index":{"_index":"test2","_id":2}}\n{"model":"C","storage_capacity":256,"color":"black","release_year":2023,"price":799.99,"discounted_price":749.99,"sold":0,"date_added":1672531200,"product_codes":[10,11,12],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["Feature A","Feature B"]},"vector":[0.5,0.6,0.7,0.8]}\n{"index":{"_index":"test2","_id":17}}\n{"model":"Updated B","storage_capacity":128,"color":"blue","release_year":2024,"price":899.99,"discounted_price":849.99,"sold":1,"date_added":1672531200,"product_codes":[40,41,42],"values":[222222222222222222,333333333333333333],"additional_info":{"features":["Feature X","Feature Y"]},"vector":[0.1,0.2,0.3,0.4]}\n{"update":{"_index":"test2","_id":6}}\n{"doc":{"price":749.99,"discounted_price":699.99}}' > "$bulk_ops"; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @"$bulk_ops" http://localhost:9308/_bulk | jq -c '.items[] | {operation: (to_entries | .[0].key), result: (.[].result?), id: (.[]._id?), status: (.[].status?), error: (.[].error?)}'
––– output –––
- {"operation":"delete","result":"deleted","id":1,"status":201,"error":null}
- {"operation":"index","result":"created","id":2,"status":201,"error":null}
- {"operation":"index","result":"created","id":17,"status":201,"error":null}
- {"operation":"update","result":"updated","id":6,"status":201,"error":null}
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 WHERE id = 4;"
––– output –––
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test2 WHERE id BETWEEN 11 AND 20;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": 4,
"doc": {
"model": "Updated iPhone 14",
"storage_capacity": 512,
"color": "black",
"release_year": 2022,
"price": 1299.99,
"discounted_price": 1199.99,
"sold": 1,
"date_added": 1661990400,
"product_codes": [19,20,21],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["A16 Bionic","Dynamic Island","Improved camera"]},
"vector": [0.1,0.2,0.3,0.4]
}
}' | jq -e '.error' && echo "Duplicate ID test passed!" || echo "Duplicate ID test failed!"
––– output –––
- {
+ Duplicate ID test failed!
- "type": "action_request_validation_exception",
- "reason": "duplicate id '4'",
- "table": "system.test2_s2",
- "index": "test2"
- }
- Duplicate ID test passed!
––– input –––
(for i in {1..10}; do curl -s -X POST http://localhost:9308/insert -d '{
"table": "test2",
"id": '$((10 + i))',
"doc": {
"model": "Device '$i'",
"storage_capacity": 64,
"color": "black",
"release_year": 2023,
"price": 499.99,
"discounted_price": 449.99,
"sold": "0",
"date_added": 1672531200,
"product_codes": [1,2,3],
"values": [1234567890123456789,9876543210987654321],
"additional_info": {"features": ["Feature 1","Feature 2"]},
"vector": [0.1,0.2,0.3,0.4]
}
}' & done; wait) | jq -s 'map(select(.created == true)) | length == 10' > /dev/null && echo "Parallel insert test passed!" || echo "Parallel insert test failed!"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test2 WHERE id BETWEEN 11 AND 20;"
––– output –––
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+
- | 12 | Device 2 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 13 | Device 3 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 14 | Device 4 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 15 | Device 5 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 16 | Device 6 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 17 | Device 7 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 18 | Device 8 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 19 | Device 9 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 20 | Device 10 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 11 | Device 1 | 64 | black | 2023 | 499.989990 | 449.989990 | 0 | 1672531200 | 1,2,3 | 1234567890123456789 | {"features":["Feature 1","Feature 2"]} | 0.100000,0.200000,0.300000,0.400000 |
- +------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------+----------------------------------------+-------------------------------------+test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:49.510 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:49.510 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:49.511 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE fuzzy_test (id INT, content TEXT, title TEXT) min_infix_len='2'; INSERT INTO fuzzy_test VALUES (1, 'example text', 'example'), (2, 'test data', 'testing'), (3, 'hello world', 'greeting');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text","title":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('testin') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"content":"test data","title":"testing"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('helo') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"content":"hello world","title":"greeting"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select id, content from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select count(*) from fuzzy_test where match('exmaple') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_score":%{NUMBER},"_source":{"count(*)":1}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('test') option fuzzy=0"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"content":"test data","title":"testing"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('example') option fuzzy=1, layouts=''"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"content":"example text","title":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from fuzzy_test where match('wrld') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"content":"hello world","title":"greeting"}}]}}
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS multi_word; CREATE TABLE multi_word (id INT, msg TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO multi_word VALUES (1, 'quick brown fox'), (2, 'slow red dog'), (3, 'fast blue cat');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from multi_word where match('quik bron') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"msg":"quick brown fox"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from multi_word where match('fst blu') option fuzzy=1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":3,"_score":%{NUMBER},"_source":{"msg":"fast blue cat"}}]}}test/clt-tests/http-interface/test-content-type-header-daemon-only.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_ct; CREATE TABLE test_ct (title TEXT, year INT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_ct VALUES (1, 'Test Document', 2024);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS pq_test; CREATE TABLE pq_test (title TEXT, year INT) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo '{"index":{"_index":"test_ct","_id":2}}
{"title":"Bulk Document","year":2024}' > /tmp/bulk_test.ndjson
––– output –––
OK
––– input –––
curl -i -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM test_ct LIMIT 1" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SELECT%20*%20FROM%20test_ct%20LIMIT%201" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/cli_json" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/search" -d '{"index":"test_ct","query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/insert" -d '{"index":"test_ct","id":100,"doc":{"title":"Insert Test","year":2024}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/replace" -d '{"index":"test_ct","id":100,"doc":{"title":"Replace Test","year":2025}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/update" -d '{"index":"test_ct","id":100,"doc":{"year":2026}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/delete" -d '{"index":"test_ct","id":100}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/index.html" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/html; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/pq/pq_test/doc" -d '{"query":{"match":{"title":"test"}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/pq/pq_test/search" -d '{"query":{"percolate":{"document":{"title":"test document"}}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8test/clt-tests/http-interface/test-inserts.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', (1,2,3), (523456764345678976, 98765409877866654098, 1109876543450987650987), '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (0.773448, 0.312478, 0.137971, 0.459821));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
- true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | test1 | rt |
- +-------+------+
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 1 | iPhone 13 Pro | 256 | silver | 2021 | 1099.989990 | 989.989990 | 1 | 2224442480 | 1,2,3 | 523456764345678976,9223372036854775807 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
- "updated"
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 1 | iPhone 13 Pro Max | 512 | gold | 2021 | 1299.989990 | 1199.989990 | 1 | 2224442480 | 7,8,9 | 1234567890123456789 | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
- {
- "index": "created",
- "id": "4"
- }
- {
- "index": "created",
- "id": "5"
- }
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 1 | iPhone 13 Pro Max | 512 | gold | 2021 | 1299.989990 | 1199.989990 | 1 | 2224442480 | 7,8,9 | 1234567890123456789 | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
- "deleted"
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | model | storage_capacity | color | release_year | price | discounted_price | sold | date_added | product_codes | values | additional_info | vector |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | 2 | Galaxy S21 Ultra | 128 | black | 2021 | 1199.989990 | 1099.989990 | 0 | 3141431296 | 4,5,6 | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]} | 0.500000,0.400000,0.300000,0.200000 |
- | 4 | iPhone 14 | 256 | black | 2022 | 999.989990 | 899.989990 | 1 | 1661990400 | 19,20,21 | 1234567890123456789 | {"features":["A16 Bionic","Dynamic Island"]} | 0.100000,0.200000,0.300000,0.400000 |
- | 3 | Pixel 6 | 128 | white | 2021 | 599.989990 | 549.989990 | 0 | 2661794816 | 7,8,9 | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- | 5 | Pixel 7 | 128 | white | 2022 | 699.989990 | 649.989990 | 0 | 1661990400 | 16,17,18 | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]} | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1test/clt-tests/http-interface/sql-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:29.020 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:29.020 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:29.021 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t limit 1"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"value":"example","value_attr":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('test')"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"eq","hits":[{"_id":2,"_score":%{NUMBER},"_source":{"value":"test","value_attr":"test"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select count(*) from t"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_score":%{NUMBER},"_source":{"count(*)":2}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from t where match('exmaple') option fuzzy=1"
––– output –––
- {"took":0,"timed_out":false,"hits":{"total":1,"total_relation":"eq","hits":[{"_id":1,"_score":%{NUMBER},"_source":{"value":"example","value_attr":"example"}}]}}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "create table t_copy like t"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "insert into t values (3, 'new', 'new')"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s "http://localhost:9308/sql?query=select%20count(*)%20from%20t"
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"gte","hits":[{"_score":1,"_source":{"count(*)":2}}]}}test/clt-tests/http-interface/test-content-type-header-with-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:17.636 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:17.636 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:17.637 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_ct; CREATE TABLE test_ct (title TEXT, year INT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_ct VALUES (1, 'Test Document', 2024);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo '{"index":{"_index":"test_ct","_id":2}}
{"title":"Bulk Document","year":2024}' > /tmp/bulk_test.ndjson
––– output –––
OK
––– input –––
curl -i -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM test_ct LIMIT 1" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SHOW VERSION" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SHOW TABLES" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "CREATE TABLE test_ct2 LIKE test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/sql?mode=raw" -d "DROP TABLE IF EXISTS test_ct2" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/sql?mode=raw&query=SELECT%20COUNT(*)%20FROM%20test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SHOW%20VERSION" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli?SELECT%20*%20FROM%20test_ct%20LIMIT%201" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/cli_json?SHOW%20TABLES" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/cli_json" -d "SELECT * FROM test_ct" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/search" -d '{"index":"test_ct","query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/insert" -d '{"index":"test_ct","id":100,"doc":{"title":"Insert Test","year":2024}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/replace" -d '{"index":"test_ct","id":100,"doc":{"title":"Replace Test","year":2025}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/update" -d '{"index":"test_ct","id":100,"doc":{"year":2026}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/delete" -d '{"index":"test_ct","id":100}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_bulk" -H "Content-Type: application/x-ndjson" --data-binary @/tmp/bulk_test.ndjson 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/autocomplete" -d '{"table":"test_ct","query":"te"}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/metrics" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/plain; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/_search" -d '{"query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s -X POST "http://localhost:9308/test_ct/_search" -d '{"query":{"match_all":{}}}' 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/_cat/indices" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/_nodes" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/index.html" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: text/html; charset=UTF-8
––– input –––
curl -i -s "http://localhost:9308/" 2>&1 | grep -i "Content-Type:"
––– output –––
- Content-Type: application/json; charset=UTF-8test/clt-tests/http-interface/sql-mode-raw-endpoint.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:40.397 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:40.397 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:40.398 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t (id INT, value TEXT, value_attr STRING) min_infix_len = '3' min_prefix_len = '3'; INSERT INTO t VALUES (1, 'example', 'example'), (2, 'test', 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show version" | jq '.[0].data'
––– output –––
- [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings %{VERSION}"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show buddy plugins" | jq '.[0].data | .[0:3] | .[] | {Plugin, Type, Info}'
––– output –––
- {
- "Plugin": "empty-string",
- "Type": "core",
- "Info": "Handles empty queries, which can occur when trimming comments or dealing with specific SQL protocol instructions in comments that are not supported"
- }
- {
- "Plugin": "backup",
- "Type": "core",
- "Info": "BACKUP sql statement"
- }
- {
- "Plugin": "emulate-elastic",
- "Type": "core",
- "Info": "Emulates some Elastic queries and generates responses as if they were made by ES"
- }
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t where match('exmaple') option fuzzy=1" | jq '.[0].data'
––– output –––
- [
- {
- "id": 1,
- "value": "example",
- "value_attr": "example"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show fields from t" | jq '.[0].data'
––– output –––
- [
- {
- "Field": "id",
- "Type": "bigint",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- },
- {
- "Field": "value",
- "Type": "text",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- },
- {
- "Field": "value_attr",
- "Type": "string",
- "Null": "NO",
- "Key": "",
- "Default": "",
- "Extra": ""
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "create table t_copy like t" | jq '.[0] | {total, error, warning}'
––– output –––
- {
- "total": 0,
- "error": "",
- "warning": ""
- }
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "show full tables" | jq '.[0].data'
––– output –––
- [
- {
- "Tables_in_Manticore": "t",
- "Table_type": "BASE TABLE"
- },
- {
- "Tables_in_Manticore": "t_copy",
- "Table_type": "BASE TABLE"
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "select * from t limit 1" | jq '.[0].data'
––– output –––
- [
- {
- "id": 1,
- "value": "example",
- "value_attr": "example"
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=select%20count(*)%20from%20t" | jq '.[0].data'
––– output –––
- [
- {
- "count(*)": 2
- }
- ]test/clt-tests/http-interface/test-concurrent-requests-to-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:54.442 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:54.442 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:54.443 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s localhost:9308/cli -d 'debug sleep 30' &
––– output –––
OK
––– input –––
curl -s localhost:9308/cli -d 'show queries' | grep -q debug && echo "Success" || echo "Failure"
––– output –––
- Success
+ Failure |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/mysql/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-only-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-only-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/mcl-id-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/mcl-only-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-id-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/mcl-id-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/mysql/no-mcl-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI: test/clt-tests/replication/test-replication-with-mysqldump.rec––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=3
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export CLUSTER_NAME=c
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo 'the, and, of' > /tmp/stopwords.txt
––– output –––
OK
––– input –––
echo 'cat => feline' > /tmp/exceptions.txt
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE tbl1 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='columnar' morphology='stem_en' stopwords='/tmp/stopwords.txt' exceptions='/tmp/exceptions.txt' rt_mem_limit='256M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "INSERT INTO tbl1 VALUES (1, 'The cat runs', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'test', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"
––– output –––
OK
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
OK
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
OK
––– input –––
echo '=> faster' > /tmp/wordforms.txt
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "CREATE TABLE tbl2 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' morphology='stem_ru' wordforms='/tmp/wordforms.txt' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (1, 'Текст на русском', 84, 2.71, '{\"ключ\":\"значение\"}', (4,5,6), 'строка', 0, '2023-11-15 08:30:00', (987654321098765432, 123456789012345678), (0.4, 0.3, 0.2, 0.1));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "INSERT INTO tbl2 VALUES (2, 'Прыжок', 19, 1.62, '{\"движение\":\"прыжок\",\"число\":3}', (7,8,9), 'пример', 1, '2024-06-10 15:45:00', (345678901234567890, 567890123456789012), (0.8, 0.7, 0.6, 0.5));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "CREATE TABLE tbl3 (id BIGINT, f TEXT, a INT, b FLOAT, j JSON, m MULTI, s STRING, e BOOL, d TIMESTAMP, v MULTI64, fv FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='4' HNSW_SIMILARITY='l2') ENGINE='rowwise' rt_mem_limit='512M';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "SHOW TABLE tbl3 SETTINGS\G;"
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "INSERT INTO tbl3 (id, f, a, b, j, m, s, e, d, v, fv) VALUES (1, 'Plain example', 42, 3.14, '{\"key\":\"value\"}', (1,2,3), 'plain_string', 1, '2024-12-16 12:00:00', (123456789012345678, 987654321098765432), (0.1, 0.2, 0.3, 0.4));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P3306 -e "ALTER CLUSTER c ADD tbl3;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysqldump --skip-lock-tables -etc --column-statistics=0 --replace -u cluster -h0 -P1306 --skip-comments manticore c:tbl1 | mysql -h0 -P1306; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
for port in 1306 2306 3306; do mysql -h0 -P$port -e "SET GLOBAL cluster_user = 'new_username';"; done
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "DELETE FROM c:tbl2 WHERE id = 2;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysqldump -etc --skip-lock-tables --column-statistics=0 --replace --net-buffer-length=16M -u new_username -h0 -P2306 --skip-comments manticore c:tbl1 c:tbl2 c:tbl3 | mysql -h0 -P3306; echo $?
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c DROP tbl1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– input –––
echo 'new, stop, words' > /tmp/new_stopwords.txt; echo $?
––– output –––
OK
––– input –––
echo 'dog => canine' > /tmp/new_exceptions.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER TABLE tbl1 stopwords='/tmp/new_stopwords.txt' exceptions='/tmp/new_exceptions.txt';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "SHOW TABLE tbl1 SETTINGS\G;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P1306 -e "ALTER CLUSTER c ADD tbl1;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE c:tbl1 SETTINGS\G;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c DROP tbl2;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW STATUS LIKE 'cluster_c_indexes';"
––– output –––
OK
––– input –––
ls /usr/share/manticore/ru.pak
––– output –––
- /usr/share/manticore/ru.pak
+ ls: cannot access '/usr/share/manticore/ru.pak': No such file or directory
––– input –––
mysql -h0 -P2306 -e "ALTER TABLE tbl2 morphology='lemmatize_ru';"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: 'tbl2' failed to create dictionary, error 'failed to open /usr/share/manticore//ru.pak: No such file or directory'
+ 1
––– input –––
mysql -h0 -P2306 -e "SHOW TABLE tbl2 SETTINGS\G;"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: engine = rowwise
- morphology = lemmatize_ru
+ morphology = stem_ru
wordforms = /var/log/manticore-2/tbl2/wordforms_chunk0_0.txt
rt_mem_limit = 536870912
––– input –––
mysqldump -etc --column-statistics=0 --replace -u new_username -h0 -P2306 --skip-comments manticore tbl2 | mysql -P2306 -h0; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "ALTER CLUSTER c ADD tbl2;"; echo $?
––– output –––
OK
––– 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 –––
OK
––– 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:
- +------+----------------------------------+-----------------------------------------+
+ Data from c:tbl2 on port 2306:
- | id | f | highlight() |
+ Data from c:tbl2 on port 3306:
- +------+----------------------------------+-----------------------------------------+
- | 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 –––
OK
––– input –––
rm -f /tmp/stopwords.txt /tmp/exceptions.txt /tmp/wordforms.txt /var/lib/manticore/tbl3.conf dump.sql
––– output –––
OK |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/performance/test-optimisation-and-update.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install -y bc > /dev/null; echo $?
––– output –––
OK
––– input –––
chmod +x ./test/clt-tests/scripts/load_names_attr.php > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 1 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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'
+ Timeout or failed!
- precached 1 tables in #!/[0-9]{1}.[0-9]{3}/!# sec
+ Manticore 0.0.0 6b2af575f@26031509 (columnar 12.1.1 d84509a@26031305) (secondary 12.1.1 d84509a@26031305) (knn 12.1.1 d84509a@26031305) (embeddings 1.1.1)
- Buddy started!
+ Copyright (c) 2001-2016, Andrew Aksyonoff
+ Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
+ Copyright (c) 2017-2026, Manticore Software LTD (https://manticoresearch.com)
+ [Sun Mar 15 09:47:33.775 2026] [255] using config file '/etc/manticoresearch/manticore.conf' (269 chars)...
+ FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ 47:33.778 2026] [261] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:33.779 2026] [260] watchdog: main process 261 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | name | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ real 0m0.005s
+ user 0m0.002s
+ sys 0m0.003s
+ Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 found
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OKtest/clt-tests/replication/test-lock-tables-replicated.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DELETE CLUSTER test_cluster;" 2>&1 || echo "Cluster doesn't exist yet"
––– output –––
- ERROR 1064 (42000) at line 1: unknown cluster 'test_cluster'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
Cluster doesn't exist yet
––– input –––
mysql -h0 -P9306 -e "CREATE CLUSTER test_cluster;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS repl_table; CREATE TABLE repl_table (id BIGINT, data TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER CLUSTER test_cluster ADD repl_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_cluster:repl_table (id, data) VALUES (1, 'replicated_data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_cluster:repl_table;"
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | data |
- +------+-----------------+
- | 1 | replicated_data |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_cluster:repl_table READ;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: Table test_cluster:repl_table absent, or not suitable for lock
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;" 2>&1
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
which mysqldump
––– output –––
OK
––– input –––
mysqldump -h0 -P9306 -ucluster --no-tablespaces -t manticore test_cluster:repl_table 2>&1 | grep "Got error"
––– output –––
- mysqldump: Got error: 1064: Table test_cluster:repl_table absent, or not suitable for lock when doing LOCK TABLES
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
mysqldump -h0 -P9306 -ucluster --no-tablespaces --skip-lock-tables -t --compact manticore test_cluster:repl_table 2>&1 | grep "INSERT INTO"
––– output –––
- INSERT INTO `test_cluster:repl_table` VALUES ('1','replicated_data');
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS regular_table; CREATE TABLE regular_table (id BIGINT, data TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO regular_table VALUES (1, 'regular_data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES regular_table READ;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM regular_table;"
––– output –––
- +------+--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | data |
- +------+--------------+
- | 1 | regular_data |
- +------+--------------+
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysqldump -h0 -P9306 --no-tablespaces --compact manticore regular_table 2>&1 | grep -E "INSERT" | head -1
––– output –––
- INSERT INTO `regular_table` VALUES ('1','regular_data');
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES regular_table READ; SHOW LOCKS; UNLOCK TABLES;"
––– output –––
- +------+---------------+-----------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Type | Name | Lock Type | Additional Info |
- +------+---------------+-----------+-----------------+
- | rt | regular_table | read | Count: 1 |
- +------+---------------+-----------+-----------------+
––– input –––
mysql -h0 -P9306 -e "ALTER CLUSTER test_cluster DROP repl_table;" 2>&1 || echo "Already removed"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ Already removed
––– input –––
mysql -h0 -P9306 -e "DELETE CLUSTER test_cluster;" 2>&1
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS repl_table; DROP TABLE IF EXISTS regular_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/performance/test-json-disk_chunks.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
chmod +x ./test/clt-tests/scripts/generate-records-json.sh
––– output –––
OK
––– input –––
./test/clt-tests/scripts/generate-records-json.sh 1000 4 | mysql -h0 -P9306; echo $?;
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
for i in {1..5}; do mysql -h0 -P9306 -e 'SELECT id, ANY(x>100 OR x < 10 FOR x IN j.a) ja, j.b FROM t GROUP BY j.b,j.c LIMIT 1 option threads=4' > /dev/null 2>&1; echo $?; done
––– output –––
- 0
+ 1
- 0
+ 1
- 0
+ 1
- 0
+ 1
- 0
+ 1test/clt-tests/replication/test-cluster-creation-without-replication.rec––– input –––
sed -i -e '/listen = 127.0.0.1:9312/d' -e '/listen = 127.0.0.1:9308:http/d' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
stdbuf -oL searchd > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "create cluster c"
––– output –––
- ERROR 1064 (42000) at line 1: can not create cluster 'c': no 'listen' is found, cannot set incoming addresses, replication is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111) |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/buddy-plugins/test-facet-with-option-fuzzy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:31.511 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:31.512 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:31.512 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test; CREATE TABLE test(column1 int, column2 int, column3 text) min_infix_len = '2'; INSERT INTO test(column1, column2, column3) VALUES (123, 3333, 'text here'), (456, 22222, 'text here');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1
FACET column2;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column2 | count(*) |
- +---------+----------+
- | 3333 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, layouts=''
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET (IF(NOT INTEGER(column1), column1 > column2, column2 > 4) AND column2 <= 2 AND column2 >= 1) AS crazy_field;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +-------------+----------+
- | crazy_field | count(*) |
- +-------------+----------+
- | 0 | 2 |
- +-------------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1, layouts=''
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION layouts='', fuzzy=1
FACET column1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1 ORDER BY COUNT(*) DESC;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- | 456 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1 LIMIT 1;"
––– output –––
- +---------+---------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | column1 | column2 | column3 |
- +---------+---------+-----------+
- | 123 | 3333 | text here |
- | 456 | 22222 | text here |
- +---------+---------+-----------+
- +---------+----------+
- | column1 | count(*) |
- +---------+----------+
- | 123 | 1 |
- +---------+----------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, fix_overlap=1
FACET column1;"
––– output –––
- ERROR 1064 (42000) at line 2: unknown option 'fix_overlap'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION cutoff=1, fuzzy=1
FACET column3;"
––– output –––
- ERROR 1064 (42000) at line 2: table test: unable to group by stored field 'column3'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy-plugins/test-enable-disable-buddy-plugin.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:20.019 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:20.019 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:20.020 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES"
––– output –––
- ERROR 1064 (42000) at line 1: Plugin 'show' is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
- ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "create table test (id bigint, value text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;"
––– output –––
- ERROR 1064 (42000) at line 1: Fuzzy search requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us,ru' AS layouts);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/buddy/test-buddy-protocol-validation.rec––– input –––
export SEARCHD_FLAGS="--logdebugvv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:14.216 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:14.216 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:14.217 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE buddy_test (id INT, name STRING, content TEXT) min_infix_len = '3'; INSERT INTO buddy_test VALUES (1, 'test1', 'sample content'), (2, 'test2', 'another sample');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS" > /dev/null
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"body":"SHOW BUDDY PLUGINS".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"sql response".*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SHOW%20VERSION" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli_json.*"body":"SHOW VERSION".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SHOW%20FULL%20TABLES" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli_json.*"body":"SHOW FULL TABLES".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20buddy_test%20WHERE%20MATCH('tset')%20OPTION%20fuzzy=1" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?INSERT%20INTO%20auto_buddy_table%20(id,%20name)%20VALUES%20(1,%20'auto_test')" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Request has version 3 OK" || echo "Wrong version"
––– output –––
- Request has version 3 OK
+ Wrong version
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli?SHOW%20TABLES" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/cli.*"body":"SHOW TABLES".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] response data: .*"version":3.*"type":"json response".*"error_code":200.*/!#
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SHOW VERSION" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1
––– 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}\] \[[0-9]+\] \[BUDDY\] \[[a-z0-9\.]+\] request data: .*"version":3.*"path_query":"/sql".*"body":"SHOW VERSION".*/!#
––– input –––
grep "response data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Version 3 OK" || echo "Wrong version"
––– output –––
- Version 3 OK
+ Wrong version
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s "http://localhost:9308/cli_json?SELECT%20*%20FROM%20buddy_test;%20SHOW%20META" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid version
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "SELECT * FROM buddy_test; SHOW META" > /dev/null
––– output –––
OK
––– input –––
grep "request data:" /var/log/manticore/searchd.log | tail -1 | grep -q '"version":3' && echo "Protocol version 3 OK" || echo "Invalid version"
––– output –––
- Protocol version 3 OK
+ Invalid versiontest/clt-tests/buddy-plugins/test-fuzzy-autocomplete-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:43.046 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:43.047 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:43.047 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/name_data.txt
––– output –––
- 1995eec70e60c584bc35ff0688556b94 /tmp/name_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"EBGRNA"}}]}},"options":{"fuzzy":true}}' | jq -r '.hits.hits[]._source.username'
––– output –––
- BERNA PFEIFFER
- BERNA SAGE
- BERNA PANG
- BERNA STOLTZFUS
- BERNA HALVERSON
- BERNA PLASCENCIA
- BERNA CALLAWAY
- BERNA STONER
- BERNA MARSH
- BERNA LEI
- BERNA SOUSA
- BERNA LIAO
- BERNA TROTTER
- BERNA VALDOVINOS
- BERNA VALLE
- BERNA ELKINS
- BERNA HURD
- BERNA DUARTE
- BERNA HAUGEN
- BERNA LISTER
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"ANT"}}]}},"options":{"fuzzy":true}}' | jq -r '.hits.hits[]._source.username'
––– output –––
- SHANE GANT
- DANILLE GANT
- BLANCH GANT
- TRISTAN GANT
- NATHANAEL GANT
- JANESSA GANT
- ANDREW GANT
- KORTNEY GANT
- SABINE GANT
- IRA GANT
- SHAWNTA GANT
- TRACEY GANT
- JIM GANT
- GERRY GANT
- ELROY GANT
- ERIN GANT
- LEONARDA GANT
- JARED GANT
- RODNEY GANT
- ROCKY GANT
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"tony"}}]}},"options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 1813,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 800363,
- "_score": 1547,
- "_source": {
- "username": "TOBY BEAULIEU",
- "s": "a"
- }
- },
- {
- "_id": 807095,
- "_score": 1547,
- "_source": {
- "username": "TOBY HOFER",
- "s": "a"
- }
- },
- {
- "_id": 807096,
- "_score": 1547,
- "_source": {
- "username": "TOBY DEMPSEY",
- "s": "a"
- }
- },
- {
- "_id": 808820,
- "_score": 1547,
- "_source": {
- "username": "TOBY RAYMOND",
- "s": "a"
- }
- },
- {
- "_id": 808863,
- "_score": 1547,
- "_source": {
- "username": "TOBY BATEMAN",
- "s": "a"
- }
- },
- {
- "_id": 813761,
- "_score": 1547,
- "_source": {
- "username": "TOBY VANWINKLE",
- "s": "a"
- }
- },
- {
- "_id": 818229,
- "_score": 1547,
- "_source": {
- "username": "TOBY BROCK",
- "s": "a"
- }
- },
- {
- "_id": 825472,
- "_score": 1547,
- "_source": {
- "username": "TOBY LINDQUIST",
- "s": "a"
- }
- },
- {
- "_id": 826251,
- "_score": 1547,
- "_source": {
- "username": "TOBY KAUFFMAN",
- "s": "a"
- }
- },
- {
- "_id": 827886,
- "_score": 1547,
- "_source": {
- "username": "TOBY PITMAN",
- "s": "a"
- }
- },
- {
- "_id": 832558,
- "_score": 1547,
- "_source": {
- "username": "TOBY KELLEY",
- "s": "a"
- }
- },
- {
- "_id": 833689,
- "_score": 1547,
- "_source": {
- "username": "TOBY HANDY",
- "s": "a"
- }
- },
- {
- "_id": 834136,
- "_score": 1547,
- "_source": {
- "username": "TOBY HOPPE",
- "s": "a"
- }
- },
- {
- "_id": 836413,
- "_score": 1547,
- "_source": {
- "username": "TOBY STOVALL",
- "s": "a"
- }
- },
- {
- "_id": 839075,
- "_score": 1547,
- "_source": {
- "username": "TOBY JEROME",
- "s": "a"
- }
- },
- {
- "_id": 839512,
- "_score": 1547,
- "_source": {
- "username": "TOBY LEONARD",
- "s": "a"
- }
- },
- {
- "_id": 841923,
- "_score": 1547,
- "_source": {
- "username": "TOBY PARNELL",
- "s": "a"
- }
- },
- {
- "_id": 842450,
- "_score": 1547,
- "_source": {
- "username": "TOBY LOWE",
- "s": "a"
- }
- },
- {
- "_id": 843217,
- "_score": 1547,
- "_source": {
- "username": "TOBY ROBISON",
- "s": "a"
- }
- },
- {
- "_id": 846291,
- "_score": 1547,
- "_source": {
- "username": "TOBY BITTNER",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMITH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 1304,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 999737,
- "_score": 1,
- "_source": {
- "username": "KEITH STUMP",
- "s": "a"
- }
- },
- {
- "_id": 999039,
- "_score": 1,
- "_source": {
- "username": "KEITH JAMIESON",
- "s": "a"
- }
- },
- {
- "_id": 996439,
- "_score": 1,
- "_source": {
- "username": "KEITHA CARBAJAL",
- "s": "a"
- }
- },
- {
- "_id": 995770,
- "_score": 1,
- "_source": {
- "username": "KEITH GONZALES",
- "s": "a"
- }
- },
- {
- "_id": 990882,
- "_score": 1,
- "_source": {
- "username": "MINH SANTANA",
- "s": "a"
- }
- },
- {
- "_id": 990643,
- "_score": 1,
- "_source": {
- "username": "KEITH MENDES",
- "s": "a"
- }
- },
- {
- "_id": 989972,
- "_score": 1,
- "_source": {
- "username": "KEITHA WALTERS",
- "s": "a"
- }
- },
- {
- "_id": 989954,
- "_score": 1,
- "_source": {
- "username": "GWENN SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 989444,
- "_score": 1,
- "_source": {
- "username": "KEITH KEATON",
- "s": "a"
- }
- },
- {
- "_id": 988755,
- "_score": 1,
- "_source": {
- "username": "SHERRON SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988366,
- "_score": 1,
- "_source": {
- "username": "LAVONIA SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988254,
- "_score": 1,
- "_source": {
- "username": "MAYOLA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 987106,
- "_score": 1,
- "_source": {
- "username": "KEITH FAULK",
- "s": "a"
- }
- },
- {
- "_id": 986580,
- "_score": 1,
- "_source": {
- "username": "DARNELL SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 984012,
- "_score": 1,
- "_source": {
- "username": "KEITH CORONEL",
- "s": "a"
- }
- },
- {
- "_id": 982759,
- "_score": 1,
- "_source": {
- "username": "MORGAN KEITH",
- "s": "a"
- }
- },
- {
- "_id": 982421,
- "_score": 1,
- "_source": {
- "username": "KEITH SHIFFLETT",
- "s": "a"
- }
- },
- {
- "_id": 982223,
- "_score": 1,
- "_source": {
- "username": "TELMA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 982056,
- "_score": 1,
- "_source": {
- "username": "RENITA KEITH",
- "s": "a"
- }
- },
- {
- "_id": 981115,
- "_score": 1,
- "_source": {
- "username": "KATIE SMYTH",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/search -d '{"index":"name","query":{"bool":{"must":[{"match":{"*":"SMYTH"}}]}}, "sort":[{"id":"desc"},{"username":"asc"}], "options":{"fuzzy":true}}' | jq -M
––– output –––
- {
- "took": %{NUMBER},
- "timed_out": false,
- "hits": {
- "total": 773,
- "total_relation": "eq",
- "hits": [
- {
- "_id": 998829,
- "_score": 1,
- "_source": {
- "username": "EDYTHE VACA",
- "s": "a"
- }
- },
- {
- "_id": 998500,
- "_score": 1,
- "_source": {
- "username": "SETH PHUNG",
- "s": "a"
- }
- },
- {
- "_id": 996507,
- "_score": 1,
- "_source": {
- "username": "SETH LYMAN",
- "s": "a"
- }
- },
- {
- "_id": 995119,
- "_score": 1,
- "_source": {
- "username": "EDYTHE JOHN",
- "s": "a"
- }
- },
- {
- "_id": 993455,
- "_score": 1,
- "_source": {
- "username": "EDYTH ROSADO",
- "s": "a"
- }
- },
- {
- "_id": 992097,
- "_score": 1,
- "_source": {
- "username": "EDYTH RAGAN",
- "s": "a"
- }
- },
- {
- "_id": 989954,
- "_score": 1,
- "_source": {
- "username": "GWENN SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988823,
- "_score": 1,
- "_source": {
- "username": "SETH WHITTAKER",
- "s": "a"
- }
- },
- {
- "_id": 988755,
- "_score": 1,
- "_source": {
- "username": "SHERRON SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 988366,
- "_score": 1,
- "_source": {
- "username": "LAVONIA SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 986580,
- "_score": 1,
- "_source": {
- "username": "DARNELL SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 986231,
- "_score": 1,
- "_source": {
- "username": "EDYTH BLODGETT",
- "s": "a"
- }
- },
- {
- "_id": 985595,
- "_score": 1,
- "_source": {
- "username": "SETH BACON",
- "s": "a"
- }
- },
- {
- "_id": 982423,
- "_score": 1,
- "_source": {
- "username": "SETH CHATMAN",
- "s": "a"
- }
- },
- {
- "_id": 981115,
- "_score": 1,
- "_source": {
- "username": "KATIE SMYTH",
- "s": "a"
- }
- },
- {
- "_id": 979541,
- "_score": 1,
- "_source": {
- "username": "EDYTHE CLAYTON",
- "s": "a"
- }
- },
- {
- "_id": 979093,
- "_score": 1,
- "_source": {
- "username": "SETH BURROUGHS",
- "s": "a"
- }
- },
- {
- "_id": 978812,
- "_score": 1,
- "_source": {
- "username": "EDYTH GULLEY",
- "s": "a"
- }
- },
- {
- "_id": 975994,
- "_score": 1,
- "_source": {
- "username": "SETH PARHAM",
- "s": "a"
- }
- },
- {
- "_id": 975841,
- "_score": 1,
- "_source": {
- "username": "ALEIDA SMYTH",
- "s": "a"
- }
- }
- ]
- }
- }
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"layouts":"us,ru"}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"append":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":0}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "johnny"
- },
- {
- "query": "jon"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"prepend":1,"append":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":1,"layouts":"","append":1,"prepend":1}}' | jq -M
––– output –––
- [
- {
- "total": 10,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jordan"
- },
- {
- "query": "joseph"
- },
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joyce"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- },
- {
- "query": "major"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"jo","options":{"fuzziness":2,"layouts":"us,ru","append":1,"prepend":1,"expansion_len":2}}' | jq -M
––– output –––
- [
- {
- "total": 6,
- "error": "",
- "warning": "",
- "columns": [
- {
- "query": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "query": "jose"
- },
- {
- "query": "joe"
- },
- {
- "query": "john"
- },
- {
- "query": "joy"
- },
- {
- "query": "joey"
- },
- {
- "query": "jon"
- }
- ]
- }
- ]
––– input –––
curl -sX POST http://localhost:9308/autocomplete -d '{"table":"name","query":"gr","options":{"fuzziness":1,"layouts":"ru","append":1,"prepend":1}}' | jq -M
––– output –––
- {
- "error": "At least two languages are required in layouts"
- }test/clt-tests/buddy/test-show-version.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:58.249 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:58.249 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:58.250 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "show version\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Component: Daemon
- Version: %{VERSION}
- *************************** 2. row ***************************
- Component: Columnar
- Version: columnar %{VERSION}
- *************************** 3. row ***************************
- Component: Secondary
- Version: secondary %{VERSION}
- *************************** 4. row ***************************
- Component: Knn
- Version: knn %{VERSION}
- *************************** 5. row ***************************
- Component: Embeddings
- Version: embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#
- *************************** 6. row ***************************
- Component: Buddy
- Version: buddy %{VERSION}test/clt-tests/buddy/test-manticore-version-in-telemetry.rec––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --telemetry-period=5' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
export SEARCHD_FLAGS="--logdebugvv"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:27.437 2026] [59] watchdog: main process 60 forked ok
+ [Sun Mar 15 09:48:27.437 2026] [60] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:27.438 2026] [59] watchdog: main process 60 exited cleanly (exit code 1), shutting down
––– input –––
timeout 20 bash -c 'grep -m 1 "labels:" <(tail -f /var/log/manticore/searchd.log) | sed "s/.*labels: //" | jq -M .'
––– output –––
- {
- "collector": "buddy",
- "os_name": "Linux",
- "os_release_name": "Ubuntu",
- "os_release_version": "%{SEMVER} LTS (#!/[A-Za-z]+\s[A-Za-z]+/!#)",
- "machine_type": "x86_64",
- "machine_id": "#!/[0-9A-Za-z]+/!#",
- "dockerized": "#!/\b(?:unknown|yes)\b/!#",
- "official_docker": "#!/\b(?:no|yes)\b/!#",
- "buddy_version": "%{VERSION}",
- "manticore_version": "%{VERSION}",
- "columnar_version": "%{VERSION}",
- "secondary_version": "%{VERSION}",
- "knn_version": "%{VERSION}",
- "embeddings_version": "%{VERSION}",
- "manticore_mode": "#!/[A-Za-z]+/!#",
- "manticore_binlog_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_auto_optimize_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_query_log_format": "#!/[A-Za-z]+/!#",
- "manticore_max_allowed_packet": "%{NUMBER}",
- "manticore_pseudo_sharding_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_secondary_indexes_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_accurate_aggregation_enabled": "#!/\b(?:no|yes)\b/!#",
- "manticore_distinct_precision_threshold": "%{NUMBER}"
- }test/clt-tests/buddy/test-unserialize-error-absence-kafka-operations.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
seq 1 5 | xargs -I{} bash -c "mysql -h0 -P9306 -e 'DROP MATERIALIZED VIEW view_table;' || true; mysql -h0 -P9306 -e 'DROP SOURCE kafka;' || true; mysql -h0 -P9306 -e 'DROP TABLE kafka_test;' || true; mysql -h0 -P9306 -e \"CREATE SOURCE kafka (id bigint, term text, abbrev text, GlossDef json) type=\\\"kafka\\\" broker_list=\\\"kafka:9092\\\" topic_list=\\\"my-data\\\" consumer_group=\\\"manticore\\\" num_consumers=\\\"2\\\" batch=50; CREATE TABLE kafka_test (id bigint, name text, short_name text, received_at text, size multi); CREATE MATERIALIZED VIEW view_table TO kafka_test AS SELECT id, term as name, abbrev as short_name, UTC_TIMESTAMP() as received_at, GlossDef.size as size FROM kafka; SHOW SOURCES; SHOW TABLES; SHOW MVS;\""
––– output –––
- ERROR 1064 (42000) at line 1: DROP TABLE failed: unknown table 'kafka_test'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka_test | rt |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | view_table |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | kafka |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
- +-------+
- | name |
- +-------+
- | kafka |
- +-------+
- +------------+------+
- | Table | Type |
- +------------+------+
- | kafka_test | rt |
- +------------+------+
- +------------+
- | name |
- +------------+
- | view_table |
- +------------+
––– input –––
tail -n 1000 /var/log/manticore/searchd.log | grep -i "unserialize"
––– output –––
OKtest/clt-tests/buddy/test-log-level-buddy-sync.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:11.437 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:11.437 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:11.438 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
BUDDY_PORT=$(grep "started.*at http://127.0.0.1:" /var/log/manticore/searchd.log | tail -1 | sed 's/.*http:\/\/127.0.0.1:\([0-9]*\).*/\1/'); echo "Buddy API port: $BUDDY_PORT"
––– output –––
- Buddy API port: %{NUMBER}
+ Buddy API port:
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- info
––– input –––
curl -s -X POST -d '{"log_level":"debug"}' localhost:$BUDDY_PORT/config; echo
––– output –––
- {"log_level":"debug"}
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debug
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debug;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debug
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debugv;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debugv
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=debugvv;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- debugvv
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL log_level=info;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X GET localhost:$BUDDY_PORT/config | jq -r '.log_level'
––– output –––
- info |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mcl/auto-embeddings-backup-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:20.304 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:20.305 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:20.305 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_backup (
title TEXT,
content TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_backup (id, title, content, status) VALUES
(1, 'machine learning', 'neural networks', 1),
(2, 'deep learning', 'transformers', 1),
(3, 'computer vision', 'image processing', 2)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_backup; OPTIMIZE TABLE test_backup OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_backup WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -E -e "SELECT id, title, content, KNN_DIST() as distance FROM test_backup WHERE KNN(vec, 3, 'artificial intelligence') ORDER BY distance"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 1
- title: machine learning
- content: neural networks
- distance: 0.851733#!/[0-9]{0,5}/!#
- *************************** 2. row ***************************
- id: 3
- title: computer vision
- content: image processing
- distance: 1.13070#!/[0-9]{0,5}/!#
- *************************** 3. row ***************************
- id: 2
- title: deep learning
- content: transformers
- distance: 1.3117#!/[0-9]{0,5}/!#
––– input –––
manticore-backup --version | grep -c "Manticore Backup"
––– output –––
OK
––– input –––
mkdir -p /tmp/backup && chmod 777 /tmp/backup; echo $?
––– output –––
OK
––– input –––
manticore-backup --backup-dir=/tmp/backup --tables=test_backup 2>&1 | grep -c "Backing up table"
––– output –––
- 1
+ 0
––– input –––
ls -d /tmp/backup/backup-* | wc -l
––– output –––
- 1
+ ls: cannot access '/tmp/backup/backup-*': No such file or directory
+ 0
––– input –––
mysql -h0 -P9306 -e "FREEZE test_backup"
––– output –––
- +-----------------------------------------------------+-----------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | file | normalized |
- +-----------------------------------------------------+-----------------------------------------------------+
- | /var/lib/manticore/test_backup/test_backup.0.spc | /var/lib/manticore/test_backup/test_backup.0.spc |
- | /var/lib/manticore/test_backup/test_backup.0.spd | /var/lib/manticore/test_backup/test_backup.0.spd |
- | /var/lib/manticore/test_backup/test_backup.0.spds | /var/lib/manticore/test_backup/test_backup.0.spds |
- | /var/lib/manticore/test_backup/test_backup.0.spe | /var/lib/manticore/test_backup/test_backup.0.spe |
- | /var/lib/manticore/test_backup/test_backup.0.sph | /var/lib/manticore/test_backup/test_backup.0.sph |
- | /var/lib/manticore/test_backup/test_backup.0.sphi | /var/lib/manticore/test_backup/test_backup.0.sphi |
- | /var/lib/manticore/test_backup/test_backup.0.spi | /var/lib/manticore/test_backup/test_backup.0.spi |
- | /var/lib/manticore/test_backup/test_backup.0.spidx | /var/lib/manticore/test_backup/test_backup.0.spidx |
- | /var/lib/manticore/test_backup/test_backup.0.spknn | /var/lib/manticore/test_backup/test_backup.0.spknn |
- | /var/lib/manticore/test_backup/test_backup.0.spm | /var/lib/manticore/test_backup/test_backup.0.spm |
- | /var/lib/manticore/test_backup/test_backup.0.spp | /var/lib/manticore/test_backup/test_backup.0.spp |
- | /var/lib/manticore/test_backup/test_backup.0.spt | /var/lib/manticore/test_backup/test_backup.0.spt |
- | /var/lib/manticore/test_backup/test_backup.meta | /var/lib/manticore/test_backup/test_backup.meta |
- | /var/lib/manticore/test_backup/test_backup.settings | /var/lib/manticore/test_backup/test_backup.settings |
- +-----------------------------------------------------+-----------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_backup (id, title, content, status) VALUES (4, 'frozen insert', 'test data', 3)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "UNFREEZE test_backup"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 4 |
- +----------+
––– input –––
mysqldump -h0 -P9306 manticore test_backup > /tmp/logical_backup.sql 2>/dev/null; echo $?
––– output –––
- 0
+ 2
––– input –––
grep -c "INSERT INTO" /tmp/logical_backup.sql
––– output –––
- 1
+ 0
––– input –––
searchd --stopwait > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 1
––– input –––
rm -f /etc/manticoresearch/manticore.conf; rm -rf /var/lib/manticore/*; echo "Cleaned for restore"
––– output –––
OK
––– input –––
manticore-backup --backup-dir=/tmp/backup --restore 2>&1 | grep -c "backup-"
––– output –––
- 1
+ 0
––– input –––
BACKUP_NAME=$(manticore-backup --backup-dir=/tmp/backup --restore 2>&1 | grep backup- | awk '{print $1}' | head -1)
manticore-backup --backup-dir=/tmp/backup --restore=$BACKUP_NAME 2>&1 | grep -c "Starting to restore"
––– output –––
- 1
+ 0
––– input –––
searchd > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 1
––– input –––
echo "Waiting for searchd to start"; sleep 3
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_backup"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 3 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_backup; OPTIMIZE TABLE test_backup OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_backup WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test_backup ADD COLUMN new_field INTEGER"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DESC test_backup" | grep "new_field"
––– output –––
- | new_field | uint | columnar fast_fetch |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_copy (
title TEXT,
content TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title, content'
) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_copy (id, title, content, status) VALUES
(1, 'machine learning', 'neural networks', 1),
(2, 'deep learning', 'transformers', 1),
(3, 'computer vision', 'image processing', 2),
(4, 'frozen insert', 'test data', 3)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_copy"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 4 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_copy WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- | 4 |
- +------+
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_copy; OPTIMIZE TABLE test_copy OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_copy WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 3 |
- | 2 |
- | 4 |
- +------+test/clt-tests/expected-errors/test-system-variables-error-handling.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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:54.602 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:54.602 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:54.603 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE IF NOT EXISTS tbl (id bigint, value int); INSERT INTO tbl VALUES (1, 100), (2, 200);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT @@session.auto_increment_increment;"
––– output –––
- +------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@session.auto_increment_increment |
- +------------------------------------+
- | 1 |
- +------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client;"
––– output –––
- +------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_client |
- +------------------------+
- | utf8 |
- +------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_connection;"
––– output –––
- +----------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_connection |
- +----------------------------+
- | utf8 |
- +----------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@max_allowed_packet;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@max_allowed_packet |
- +----------------------+
- | 134217728 |
- +----------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@lower_case_table_names;"
––– output –––
- +--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@lower_case_table_names |
- +--------------------------+
- | 1 |
- +--------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@session.last_insert_id;"
––– output –––
- +--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@session.last_insert_id |
- +--------------------------+
- | 0 |
- +--------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@tx_isolation_eahhahfefhehfehf;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@tx_isolation_eahhahfefhehfehf
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@nonexistent_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@nonexistent_variable
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@random_name;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@random_name
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocomm;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@autocomm
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@character_set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@version;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@version |
- +-----------+
- | 8.0.43 |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit, @@nonexistent_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@nonexistent_variable
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client, @@tx_isolation_fake, @@max_allowed_packet;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@tx_isolation_fake
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysqldump -h0 -P9306 manticore tbl --no-data --column-statistics=0 --skip-comments --skip-opt --no-tablespaces > /tmp/dump.sql 2> >(grep -E -v "Warning: column statistics|Warning: version string returned by server is incorrect." >&2)
––– output –––
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
test -s /tmp/dump.sql && echo "Dump created successfully" || (echo "Dump is empty or failed!" && cat /tmp/dump.sql)
––– output –––
- Dump created successfully
+ Dump is empty or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE tbl;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 manticore < /tmp/dump.sql; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE tbl;"
––– output –––
- +-------+-----------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------+-----------------------------------------------+
- | tbl | CREATE TABLE tbl (
- id bigint,
- value integer
- ) |
- +-------+-----------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @user_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @nonexistent_user_var;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@123;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@123
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'SELECT @@`quoted_name`;'
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@`quoted_name`
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@very_long_variable_name_that_exceeds_normal_length_limits;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown sysvar @@very_long_variable_name_that_exceeds_normal_length_limits
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@AUTOCOMMIT;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AutoCommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
stdbuf -oL searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
echo -e "searchd {\nlisten = 9306:mysql\nlisten = 9308:http\nlog = /var/log/manticore/searchd.log\nquery_log = /var/log/manticore/query.log\npid_file = /run/manticore/searchd.pid\ndata_dir = /var/lib/manticore\nbuddy_path = \n}" > /tmp/manticore_without_buddy.conf; echo $?
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd -c /tmp/manticore_without_buddy.conf > /dev/null; if timeout 10 grep -qm1 'accepting connections' /var/log/manticore/searchd.log; then echo 'Searchd started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log; fi
––– output –––
- Searchd started!
+ Timeout or failed!
+ [Sun Mar 15 09:49:06.555 2026] [63] watchdog: main process 64 forked ok
+ [Sun Mar 15 09:49:06.555 2026] [64] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:06.556 2026] [63] watchdog: main process 64 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SELECT @@tx_isolation_eahhahfefhehfehf;"
––– output –––
- +---------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@tx_isolation_eahhahfefhehfehf |
- +---------------------------------+
- | <empty> |
- +---------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@nonexistent_variable;"
––– output –––
- +------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@nonexistent_variable |
- +------------------------+
- | <empty> |
- +------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@random_name;"
––– output –––
- +---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@random_name |
- +---------------+
- | <empty> |
- +---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocomm;"
––– output –––
- +------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocomm |
- +------------+
- | <empty> |
- +------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set |
- +-----------------+
- | <empty> |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@version;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@version |
- +-----------+
- | <empty> |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit, @@nonexistent_variable;"
––– output –––
- +--------------+------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit | @@nonexistent_variable |
- +--------------+------------------------+
- | 1 | <empty> |
- +--------------+------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@character_set_client, @@tx_isolation_fake, @@max_allowed_packet;"
––– output –––
- +------------------------+---------------------+----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@character_set_client | @@tx_isolation_fake | @@max_allowed_packet |
- +------------------------+---------------------+----------------------+
- | utf8 | <empty> | 134217728 |
- +------------------------+---------------------+----------------------+
––– input –––
mysqldump -h0 -P9306 manticore tbl --no-data --skip-comments --skip-opt --no-tablespaces > /tmp/dump.sql 2> >(grep -E -v "Warning: column statistics|Warning: version string returned by server is incorrect." >&2)
––– output –––
+ mysqldump: Got error: 2003: Can't connect to MySQL server on '0:9306' (111) when trying to connect
––– input –––
test -s /tmp/dump.sql && echo "Dump created successfully" || (echo "Dump is empty or failed!" && cat /tmp/dump.sql)
––– output –––
- Dump created successfully
+ Dump is empty or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE tbl;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 manticore < /tmp/dump.sql; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE tbl;"
––– output –––
- +-------+-----------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-------+-----------------------------------------------+
- | tbl | CREATE TABLE tbl (
- id bigint,
- value integer
- ) |
- +-------+-----------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @user_variable;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @nonexistent_user_var;"
––– output –––
- ERROR 1064 (42000) at line 1: P09: syntax error, unexpected TOK_USERVAR near ''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT @@123;"
––– output –––
- +---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@123 |
- +---------+
- | <empty> |
- +---------+
––– input –––
mysql -h0 -P9306 -e 'SELECT @@`quoted_name`;'
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@`quoted_name` |
- +-----------------+
- | <empty> |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@very_long_variable_name_that_exceeds_normal_length_limits;"
––– output –––
- +-------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@very_long_variable_name_that_exceeds_normal_length_limits |
- +-------------------------------------------------------------+
- | <empty> |
- +-------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AUTOCOMMIT;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@AutoCommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+
––– input –––
mysql -h0 -P9306 -e "SELECT @@autocommit;"
––– output –––
- +--------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | @@autocommit |
- +--------------+
- | 1 |
- +--------------+test/clt-tests/mcl/auto-embeddings-dml-test.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:48.510 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:48.510 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:48.511 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_delete ( title TEXT, embedding_vector FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title' ) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_delete (id, title) VALUES (1, 'One')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_delete WHERE id = 1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_delete"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 0 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_delete (id, title) VALUES (2,'Two'),(3,'Three'),(4,'Four'),(5,'Five')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_delete WHERE id IN (2,3,4)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_delete"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 5 |
- +------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_replace"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_replace ( title TEXT, price INTEGER, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title' ) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_replace (id, title, price) VALUES (1, 'Original', 100)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_replace (id, title, price) VALUES (1, 'Updated', 200)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT title, price FROM test_replace WHERE id = 1"
––– output –––
- +---------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | title | price |
- +---------+-------+
- | Updated | 200 |
- +---------+-------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_vector_regen"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_vector_regen ( content TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='content')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_vector_regen (id, content) VALUES (1,'AI and ML'),(2,'Deep Learning'),(3,'Cooking')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vector_regen; OPTIMIZE TABLE test_vector_regen OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vector_regen WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- | 3 |
- +------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_vector_regen (id, content) VALUES (1, 'Cooking recipes')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_vector_regen; OPTIMIZE TABLE test_vector_regen OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_vector_regen WHERE KNN(vec, 2, 'artificial intelligence')"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 2 |
- | 3 |
- | 1 |
- +------+
––– input –––
mysql -h0 -P9306 -e "TRUNCATE TABLE test_vector_regen"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_vector_regen"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 0 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_bulk"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_bulk ( content TEXT, vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='content' ) engine='rowwise'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {1..50}; do
mysql -h0 -P9306 -e "INSERT INTO test_bulk (id, content) VALUES ($i, 'Document $i')" 2>/dev/null
done
echo "Inserted 50 records"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_bulk WHERE id <= 10"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_bulk WHERE id >= 40"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_bulk"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 29 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_multi_vec"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_multi_vec ( title TEXT, description TEXT, title_vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='title', desc_vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='description' ) engine='columnar'"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_multi_vec (id, title, description) VALUES (1,'Title1','Desc1'),(2,'Title2','Desc2')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_multi_vec WHERE id=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO test_multi_vec (id, title, description) VALUES (2,'NewTitle','NewDesc')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, title FROM test_multi_vec"
––– output –––
- +------+----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title |
- +------+----------+
- | 2 | NewTitle |
- +------+----------+test/clt-tests/expected-errors/test-lock-tables-errors.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_locks; CREATE TABLE test_locks (id BIGINT, title TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES nonexistent_table READ;"
––– output –––
- ERROR 1064 (42000) at line 1: Table nonexistent_table absent, or not suitable for lock
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks INVALID_MODE;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks INVALID_MODE'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES test_locks;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'UNLOCK TABLES test_locks'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLE test_locks READ;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLE test_locks READ'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ WRITE;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks READ WRITE'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks;"
––– output –––
- ERROR 1064 (42000) at line 1: P02: syntax error, unexpected identifier near 'LOCK TABLES test_locks'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; DROP TABLE test_locks;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_locks (id BIGINT, title TEXT); INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; INSERT INTO test_locks VALUES (2, 'forbidden');"
––– output –––
- ERROR 1064 (42000) at line 1: table 'test_locks' is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (2, 'from_another_session');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table 'test_locks' is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5; mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_locks;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_locks VALUES (2, 'session_2_after_lock_released');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_locks;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DELETE FROM test_locks WHERE id = 2;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "UPDATE test_locks SET title = 'blocked' WHERE id = 1;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "DELETE FROM test_locks WHERE id = 1;" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 5
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; UPDATE test_locks SET title = 'new' WHERE id = 1;"
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; DELETE FROM test_locks WHERE id = 1;"
––– output –––
- ERROR 1064 (42000) at line 1: table test_locks: table is locked
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; debug sleep 5" > /dev/null 2>&1 & sleep 1; mysql -h0 -P9306 -e "DROP TABLE test_locks;" 2>&1 && echo "DROP succeeded from another session"
––– output –––
- DROP succeeded from another session
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
sleep 4
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_locks (id BIGINT, title TEXT); INSERT INTO test_locks VALUES (1, 'test');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS other_table; CREATE TABLE other_table (id BIGINT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks READ; SELECT * FROM other_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "LOCK TABLES test_locks WRITE; SELECT * FROM other_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 << 'EOF'
LOCK TABLES test_locks READ;
CREATE TABLE new_table (id BIGINT);
EOF
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "UNLOCK TABLES;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test_locks; DROP TABLE IF EXISTS other_table; DROP TABLE IF EXISTS new_table;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/expected-errors/test-fuzzy-search-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– 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
+ 255
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Failed to parse query
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us,ru' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: no such table 'non_existing_table'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/fulltext-search/test-name-of-fields-in-show-meta.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "drop table if exists pq;"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "create table pq(f text) type='percolate'; insert into pq(id, query) values(1, 'abc'); call pq('pq', '{\"f\": \"abc\"}'); show meta;"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- +------+
- +-----------------------+-----------+
- | Variable name | Value |
- +-----------------------+-----------+
- | total | #!/[0-9]{1}.[0-9]{3}/!# sec |
- | queries_matched | 1 |
- | queries_failed | 0 |
- | document_matched | 1 |
- | total_queries_stored | 1 |
- | term_only_queries | 1 |
- | fast_rejected_queries | 0 |
- +-----------------------+-----------+test/clt-tests/mcl/auto-embeddings-concurrent.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:36.695 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:36.696 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:36.696 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_concurrent (
title TEXT,
status INTEGER,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2'
MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2'
FROM='title'
)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {1..20}; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES ($i, 'Document $i', 0)" 2>/dev/null
done
echo "Initial insert completed"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_concurrent; OPTIMIZE TABLE test_concurrent OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
for i in {21..30}; do
mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES ($i, 'New doc $i', 1)" 2>/dev/null &
done
for i in {1..5}; do
mysql -h0 -P9306 -e "DELETE FROM test_concurrent WHERE id = $i" 2>/dev/null &
done
for i in {6..10}; do
mysql -h0 -P9306 -e "REPLACE INTO test_concurrent (id, title, status) VALUES ($i, 'Replaced doc $i', 2)" 2>/dev/null &
done
wait
mysql -h0 -P9306 -e "SELECT COUNT(*) as total FROM test_concurrent"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | total |
- +-------+
- | 25 |
- +-------+
––– input –––
rm -f /tmp/race_test.err
for i in {1..10}; do
(mysql -h0 -P9306 -e "INSERT INTO test_concurrent (id, title, status) VALUES (999, 'Race $i', $i)" 2>>/tmp/race_test.err) &
done
wait; echo $?
––– output –––
OK
––– input –––
wc -l /tmp/race_test.err | awk '{print $1 " error lines in file"}'
––– output –––
OK
––– input –––
grep -c "duplicate id" /tmp/race_test.err
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_concurrent WHERE id = 999"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
for i in {11..15}; do
mysql -h0 -P9306 -e "REPLACE INTO test_concurrent (id, title, status) VALUES ($i, 'Updated doc $i', 3)" 2>/dev/null &
done
wait
mysql -h0 -P9306 -e "FLUSH RAMCHUNK test_concurrent; OPTIMIZE TABLE test_concurrent OPTION sync=1, cutoff=1"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT id, KNN_DIST() as dist FROM test_concurrent WHERE KNN(vec, 5, 'Updated doc') LIMIT 5"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | dist |
- +------+------------+
- | 13 | #!/0\.318[0-9]*/!# |
- | 11 | #!/0\.331[0-9]*/!# |
- | 12 | #!/0\.333[0-9]*/!# |
- | 14 | #!/0\.342[0-9]*/!# |
- | 15 | #!/0\.351[0-9]*/!# |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM test_concurrent WHERE KNN(vec, 5, 'Updated doc') LIMIT 5"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 13 |
- | 11 |
- | 12 |
- | 14 |
- | 15 |
- +------+
––– input –––
for test_num in {1..3}; do
rm -f /tmp/test${test_num}.err
mysql -h0 -P9306 -e "CREATE TABLE race$test_num (title TEXT)" 2>/dev/null
for i in {1..10}; do
(stdbuf -oL mysql -h0 -P9306 -e "INSERT INTO race$test_num (id, title) VALUES (888, 'test')" 2>>/tmp/test${test_num}.err) &
done
wait
echo "Test $test_num: $(wc -l /tmp/test${test_num}.err | awk '{print $1}') lines, $(grep -c 'duplicate' /tmp/test${test_num}.err) duplicate errors"
done
––– output –––
OKtest/clt-tests/expected-errors/test-fuzzy-sql-endpoint-negative.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:04.939 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:04.939 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:04.940 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE neg_test (id INT, content TEXT) min_infix_len='2'; INSERT INTO neg_test VALUES (1, 'test data');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy='1'"
––– output –––
- {"error":"Invalid value for option 'fuzzy'"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=-1"
––– output –––
- {"error":"P01: syntax error, unexpected '-' near '-1'"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=abc"
––– output –––
- {"error":"Invalid value for option 'fuzzy'"}
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE no_infix (id INT, content TEXT);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from no_infix option fuzzy=1"
––– output –––
- {"error":"The 'fuzzy' option requires a full-text query. Use: MATCH('search query') or MATCH('search query', table_name)"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "insert into neg_test values (2, 'new data')"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "create table new_table (id int)"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "drop table neg_test"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "show tables"
––– output –––
- {"error":"only SELECT queries are supported"}
––– input –––
curl -s -X POST "http://localhost:9308/sql" -d "select * from neg_test where match('test') option fuzzy=1 layouts=''"
––– output –––
- {"error":"Invalid options in query string, make sure they are separated by commas"} |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/http-interface/test-manticore-handling-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "drop table if exists test; create table test; insert into test values(1)" > /dev/null; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -P9306 -h0 -e "show tables; select * from test;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | test | rt |
- +-------+------+
- +------+
- | id |
- +------+
- | 1 |
- +------+
––– input –––
curl -s localhost:9308/test/_search -d '{}' |jq .
––– output –––
- {
- "took": 0,
- "timed_out": false,
- "_shards": {
- "total": 1,
- "successful": 1,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": 1,
- "total_relation": "eq",
- "max_score": null,
- "hits": [
- {
- "_id": "1",
- "_score": 1,
- "_index": "test",
- "_type": "doc",
- "_version": 1,
- "_source": {}
- }
- ]
- },
- "status": 200
- }test/clt-tests/mysqldump/mysql/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/indexer/test-max-iosize.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
for n in $(seq 1 10000); do echo "$n,abc"; done > /tmp/csv
––– output –––
OK
––– input –––
echo -e 'indexer {\n max_iops = 100\n}\nsource src {\n type = csvpipe\n csvpipe_command = cat /tmp/csv\n csvpipe_field = f\n}\n\nindex idx {\n type = plain\n source = src\n path = /tmp/idx\n}' > plain_min.conf
––– output –––
OK
––– input –––
cat plain_min.conf
––– output –––
OK
––– input –––
indexer -c plain_min.conf idx|grep reads|awk '{print $2}'
––– output –––
OKtest/clt-tests/indexer/test-max-iops.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
(for n in `seq 1 100`; do echo "$n,abc"; done) > /tmp/csv
––– output –––
OK
––– input –––
echo -e 'indexer {\n max_iops = 100\n}\nsource src {\n type = csvpipe\n csvpipe_command = cat /tmp/csv\n csvpipe_field = f\n}\n\nindex idx {\n type = plain\n source = src\n path = /tmp/idx\n}' > plain_min.conf
––– output –––
OK
––– input –––
cat plain_min.conf
––– output –––
OK
––– input –––
indexer -c plain_min.conf idx|grep reads|awk '{print $2}'
––– output –––
OKtest/clt-tests/join/test-avg-select-join.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load --drop --batch-size=1000 --threads=5 --total=10000 --init="CREATE TABLE products(id bigint, name text, category multi)" --load="INSERT INTO products(id, name, category) VALUES(<increment>, '<text/2/10>', (<array/1/3/1/1000>))" --together --drop --batch-size=10000 --threads=5 --total=100000 --init="create table reviews(product_id bigint, user_id int, rating int, comment text)" --load="insert into reviews(product_id, user_id, rating, comment) values(<int/1/10000>, <int/1/1000>, <int/1/100>, '<text/20/100>')" --quiet > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "select id, count(*), avg(reviews.rating) avg_rating from products left join reviews on reviews.product_id = products.id group by id order by count(*) desc; select id, count(*) from products left join reviews on reviews.product_id = products.id group by id order by count(*) desc"
––– output –––
- +------+----------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | count(*) | avg_rating |
- +------+----------+-------------+
- | 1589 | 23 | 58.65217391 |
- | 477 | 22 | 59.81818182 |
- | 5584 | 22 | 59.63636364 |
- | 2632 | 22 | 38.54545455 |
- | 805 | 22 | 57.86363636 |
- | 4982 | 22 | 50.27272727 |
- | 2031 | 21 | 60.19047619 |
- | 6057 | 21 | 46.66666667 |
- | 5077 | 21 | 37.38095238 |
- | 214 | 21 | 63.19047619 |
- | 366 | 21 | 51.61904762 |
- | 1498 | 21 | 55.23809524 |
- | 5667 | 21 | 48.90476190 |
- | 5682 | 21 | 37.14285714 |
- | 6721 | 21 | 49.14285714 |
- | 3993 | 21 | 49.76190476 |
- | 1014 | 20 | 58.250000 |
- | 79 | 20 | 43.100000 |
- | 7158 | 20 | 62.400000 |
- | 5162 | 20 | 57.600000 |
- +------+----------+-------------+
- +------+----------+
- | id | count(*) |
- +------+----------+
- | 1589 | 23 |
- | 477 | 22 |
- | 5584 | 22 |
- | 2632 | 22 |
- | 805 | 22 |
- | 4982 | 22 |
- | 2031 | 21 |
- | 6057 | 21 |
- | 5077 | 21 |
- | 214 | 21 |
- | 366 | 21 |
- | 1498 | 21 |
- | 5667 | 21 |
- | 5682 | 21 |
- | 6721 | 21 |
- | 3993 | 21 |
- | 1014 | 20 |
- | 79 | 20 |
- | 7158 | 20 |
- | 5162 | 20 |
- +------+----------+
––– input –––
mysql -P9306 -h0 -e "SELECT COUNT(*) FROM products; SELECT COUNT(*) FROM reviews;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 10000 |
- +----------+
- +----------+
- | count(*) |
- +----------+
- | 100000 |
- +----------+test/clt-tests/kibana/test-kibana-log-to-test-script.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:53.559 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:53.559 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:53.560 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X HEAD -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.apm-agent-configuration'
––– output –––
- {"error":{"type":"index_not_found_exception","reason":"no such index [.apm-agent-configuration]","table":".apm-agent-configuration"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 602' -H 'Connection: keep-alive' -d '{"settings":{"index.auto_expand_replicas":"0-1"},"mappings":{"properties":{"@timestamp":{"type":"date"},"service":{"properties":{"name":{"type":"keyword","ignore_above":1024},"environment":{"type":"keyword","ignore_above":1024}}},"settings":{"properties":{"transaction_sample_rate":{"type":"scaled_float","scaling_factor":1000,"ignore_malformed":true,"coerce":false},"capture_body":{"type":"keyword","ignore_above":1024},"transaction_max_spans":{"type":"short"}}},"applied_by_agent":{"type":"boolean"},"agent_name":{"type":"keyword","ignore_above":1024},"etag":{"type":"keyword","ignore_above":1024}}}}' 'localhost:9308/.apm-agent-configuration'
––– output –––
- {"acknowledged":true,"index":".apm-agent-configuration","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana'
––– output –––
- {"error":{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","root_cause":[{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager'
––– output –––
- {"error":{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","root_cause":[{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana'
––– output –––
- {"error":{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","root_cause":[{"index":".kibana","index_uuid":"_na_","reason":"no such index [.kibana]","resource.id":".kibana","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager'
––– output –––
- {"error":{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","root_cause":[{"index":".kibana_task_manager","index_uuid":"_na_","reason":"no such index [.kibana_task_manager]","resource.id":".kibana_task_manager","resource.type":"index_or_alias","type":"index_not_found_exception"}],"type":"index_not_found_exception"},"status":404}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_cat/templates/kibana_index_template*?format=json'
––– output –––
- []
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1225' -H 'Connection: keep-alive' -d '{"mappings":{"dynamic":"strict","properties":{"config":{"dynamic":"true","properties":{"buildNum":{"type":"keyword"}}},"migrationVersion":{"dynamic":"true","type":"object"},"type":{"type":"keyword"},"namespace":{"type":"keyword"},"updated_at":{"type":"date"},"references":{"type":"nested","properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"id":{"type":"keyword"}}},"task":{"properties":{"taskType":{"type":"keyword"},"scheduledAt":{"type":"date"},"runAt":{"type":"date"},"startedAt":{"type":"date"},"retryAt":{"type":"date"},"schedule":{"properties":{"interval":{"type":"keyword"}}},"attempts":{"type":"integer"},"status":{"type":"keyword"},"params":{"type":"text"},"state":{"type":"text"},"user":{"type":"keyword"},"scope":{"type":"keyword"},"ownerId":{"type":"keyword"}}}},"_meta":{"migrationMappingPropertyHashes":{"config":"87aca8fdb053154f11383fce3dbf3edf","migrationVersion":"4a1746014a75ade3a714e1db5763276f","type":"2f4316de49999235636386fe51dc06c1","namespace":"2f4316de49999235636386fe51dc06c1","updated_at":"00da57df13e94e9d98437d13ace4bfe0","references":"7997cf5a56cc02bdc9c93361bde732b0","task":"235412e52d09e7165fac8a67a43ad6b4"}}},"settings":{"number_of_shards":1,"auto_expand_replicas":"0-1"}}' 'localhost:9308/.kibana_task_manager_1'
––– output –––
- {"acknowledged":true,"index":".kibana_task_manager_1","shards_acknowledged":true}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 15115' -H 'Connection: keep-alive' -d '{"mappings":{"dynamic":"strict","properties":{"config":{"dynamic":"true","properties":{"buildNum":{"type":"keyword"}}},"migrationVersion":{"dynamic":"true","type":"object"},"type":{"type":"keyword"},"namespace":{"type":"keyword"},"updated_at":{"type":"date"},"references":{"type":"nested","properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"id":{"type":"keyword"}}},"graph-workspace":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"numLinks":{"type":"integer"},"numVertices":{"type":"integer"},"title":{"type":"text"},"version":{"type":"integer"},"wsState":{"type":"text"}}},"space":{"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":2048}}},"description":{"type":"text"},"initials":{"type":"keyword"},"color":{"type":"keyword"},"disabledFeatures":{"type":"keyword"},"imageUrl":{"type":"text","index":false},"_reserved":{"type":"boolean"}}},"ml-telemetry":{"properties":{"file_data_visualizer":{"properties":{"index_creation_count":{"type":"long"}}}}},"apm-services-telemetry":{"properties":{"has_any_services":{"type":"boolean"},"services_per_agent":{"properties":{"python":{"type":"long","null_value":0},"java":{"type":"long","null_value":0},"nodejs":{"type":"long","null_value":0},"js-base":{"type":"long","null_value":0},"rum-js":{"type":"long","null_value":0},"dotnet":{"type":"long","null_value":0},"ruby":{"type":"long","null_value":0},"go":{"type":"long","null_value":0}}}}},"apm-indices":{"properties":{"apm_oss.sourcemapIndices":{"type":"keyword"},"apm_oss.errorIndices":{"type":"keyword"},"apm_oss.onboardingIndices":{"type":"keyword"},"apm_oss.spanIndices":{"type":"keyword"},"apm_oss.transactionIndices":{"type":"keyword"},"apm_oss.metricsIndices":{"type":"keyword"}}},"map":{"properties":{"description":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"},"bounds":{"type":"geo_shape"},"mapStateJSON":{"type":"text"},"layerListJSON":{"type":"text"},"uiStateJSON":{"type":"text"}}},"maps-telemetry":{"properties":{"settings":{"properties":{"showMapVisualizationTypes":{"type":"boolean"}}},"indexPatternsWithGeoFieldCount":{"type":"long"},"mapsTotalCount":{"type":"long"},"timeCaptured":{"type":"date"},"attributesPerMap":{"properties":{"dataSourcesCount":{"properties":{"min":{"type":"long"},"max":{"type":"long"},"avg":{"type":"long"}}},"layersCount":{"properties":{"min":{"type":"long"},"max":{"type":"long"},"avg":{"type":"long"}}},"layerTypesCount":{"dynamic":"true","properties":{}},"emsVectorLayersCount":{"dynamic":"true","properties":{}}}}}},"canvas-workpad":{"dynamic":false,"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword"}}},"@timestamp":{"type":"date"},"@created":{"type":"date"}}},"canvas-element":{"dynamic":false,"properties":{"name":{"type":"text","fields":{"keyword":{"type":"keyword"}}},"help":{"type":"text"},"content":{"type":"text"},"image":{"type":"text"},"@timestamp":{"type":"date"},"@created":{"type":"date"}}},"infrastructure-ui-source":{"properties":{"name":{"type":"text"},"description":{"type":"text"},"metricAlias":{"type":"keyword"},"logAlias":{"type":"keyword"},"fields":{"properties":{"container":{"type":"keyword"},"host":{"type":"keyword"},"pod":{"type":"keyword"},"tiebreaker":{"type":"keyword"},"timestamp":{"type":"keyword"}}},"logColumns":{"type":"nested","properties":{"timestampColumn":{"properties":{"id":{"type":"keyword"}}},"messageColumn":{"properties":{"id":{"type":"keyword"}}},"fieldColumn":{"properties":{"id":{"type":"keyword"},"field":{"type":"keyword"}}}}}}},"metrics-explorer-view":{"properties":{"name":{"type":"keyword"},"options":{"properties":{"metrics":{"type":"nested","properties":{"aggregation":{"type":"keyword"},"field":{"type":"keyword"},"color":{"type":"keyword"},"label":{"type":"keyword"}}},"limit":{"type":"integer"},"groupBy":{"type":"keyword"},"filterQuery":{"type":"keyword"},"aggregation":{"type":"keyword"}}},"chartOptions":{"properties":{"type":{"type":"keyword"},"yAxisMode":{"type":"keyword"},"stack":{"type":"boolean"}}},"currentTimerange":{"properties":{"from":{"type":"keyword"},"to":{"type":"keyword"},"interval":{"type":"keyword"}}}}},"inventory-view":{"properties":{"name":{"type":"keyword"},"metric":{"properties":{"type":{"type":"keyword"}}},"groupBy":{"type":"nested","properties":{"label":{"type":"keyword"},"field":{"type":"keyword"}}},"nodeType":{"type":"keyword"},"view":{"type":"keyword"},"customOptions":{"type":"nested","properties":{"text":{"type":"keyword"},"field":{"type":"keyword"}}},"boundsOverride":{"properties":{"max":{"type":"integer"},"min":{"type":"integer"}}},"autoBounds":{"type":"boolean"},"time":{"type":"integer"},"autoReload":{"type":"boolean"},"filterQuery":{"properties":{"kind":{"type":"keyword"},"expression":{"type":"keyword"}}}}},"siem-ui-timeline":{"properties":{"columns":{"properties":{"aggregatable":{"type":"boolean"},"category":{"type":"keyword"},"columnHeaderType":{"type":"keyword"},"description":{"type":"text"},"example":{"type":"text"},"indexes":{"type":"keyword"},"id":{"type":"keyword"},"name":{"type":"text"},"placeholder":{"type":"text"},"searchable":{"type":"boolean"},"type":{"type":"keyword"}}},"dataProviders":{"properties":{"id":{"type":"keyword"},"name":{"type":"text"},"enabled":{"type":"boolean"},"excluded":{"type":"boolean"},"kqlQuery":{"type":"text"},"queryMatch":{"properties":{"field":{"type":"text"},"displayField":{"type":"text"},"value":{"type":"text"},"displayValue":{"type":"text"},"operator":{"type":"text"}}},"and":{"properties":{"id":{"type":"keyword"},"name":{"type":"text"},"enabled":{"type":"boolean"},"excluded":{"type":"boolean"},"kqlQuery":{"type":"text"},"queryMatch":{"properties":{"field":{"type":"text"},"displayField":{"type":"text"},"value":{"type":"text"},"displayValue":{"type":"text"},"operator":{"type":"text"}}}}}}},"description":{"type":"text"},"eventType":{"type":"keyword"},"favorite":{"properties":{"keySearch":{"type":"text"},"fullName":{"type":"text"},"userName":{"type":"text"},"favoriteDate":{"type":"date"}}},"filters":{"properties":{"meta":{"properties":{"alias":{"type":"text"},"controlledBy":{"type":"text"},"disabled":{"type":"boolean"},"field":{"type":"text"},"formattedValue":{"type":"text"},"index":{"type":"keyword"},"key":{"type":"keyword"},"negate":{"type":"boolean"},"params":{"type":"text"},"type":{"type":"keyword"},"value":{"type":"text"}}},"exists":{"type":"text"},"match_all":{"type":"text"},"missing":{"type":"text"},"query":{"type":"text"},"range":{"type":"text"},"script":{"type":"text"}}},"kqlMode":{"type":"keyword"},"kqlQuery":{"properties":{"filterQuery":{"properties":{"kuery":{"properties":{"kind":{"type":"keyword"},"expression":{"type":"text"}}},"serializedQuery":{"type":"text"}}}}},"title":{"type":"text"},"dateRange":{"properties":{"start":{"type":"date"},"end":{"type":"date"}}},"savedQueryId":{"type":"keyword"},"sort":{"properties":{"columnId":{"type":"keyword"},"sortDirection":{"type":"keyword"}}},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-ui-timeline-note":{"properties":{"timelineId":{"type":"keyword"},"eventId":{"type":"keyword"},"note":{"type":"text"},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-ui-timeline-pinned-event":{"properties":{"timelineId":{"type":"keyword"},"eventId":{"type":"keyword"},"created":{"type":"date"},"createdBy":{"type":"text"},"updated":{"type":"date"},"updatedBy":{"type":"text"}}},"siem-detection-engine-rule-status":{"properties":{"alertId":{"type":"keyword"},"status":{"type":"keyword"},"statusDate":{"type":"date"},"lastFailureAt":{"type":"date"},"lastSuccessAt":{"type":"date"},"lastFailureMessage":{"type":"text"},"lastSuccessMessage":{"type":"text"}}},"upgrade-assistant-reindex-operation":{"dynamic":true,"properties":{"indexName":{"type":"keyword"},"status":{"type":"integer"}}},"upgrade-assistant-telemetry":{"properties":{"ui_open":{"properties":{"overview":{"type":"long","null_value":0},"cluster":{"type":"long","null_value":0},"indices":{"type":"long","null_value":0}}},"ui_reindex":{"properties":{"close":{"type":"long","null_value":0},"open":{"type":"long","null_value":0},"start":{"type":"long","null_value":0},"stop":{"type":"long","null_value":0}}},"features":{"properties":{"deprecation_logging":{"properties":{"enabled":{"type":"boolean","null_value":true}}}}}}},"file-upload-telemetry":{"properties":{"filesUploadedTotalCount":{"type":"long"}}},"lens":{"properties":{"title":{"type":"text"},"visualizationType":{"type":"keyword"},"state":{"type":"flattened"},"expression":{"index":false,"type":"keyword"}}},"lens-ui-telemetry":{"properties":{"name":{"type":"keyword"},"type":{"type":"keyword"},"date":{"type":"date"},"count":{"type":"integer"}}},"action":{"properties":{"name":{"type":"text"},"actionTypeId":{"type":"keyword"},"config":{"enabled":false,"type":"object"},"secrets":{"type":"binary"}}},"action_task_params":{"properties":{"actionId":{"type":"keyword"},"params":{"enabled":false,"type":"object"},"apiKey":{"type":"binary"}}},"alert":{"properties":{"enabled":{"type":"boolean"},"name":{"type":"text"},"tags":{"type":"keyword"},"alertTypeId":{"type":"keyword"},"schedule":{"properties":{"interval":{"type":"keyword"}}},"consumer":{"type":"keyword"},"actions":{"type":"nested","properties":{"group":{"type":"keyword"},"actionRef":{"type":"keyword"},"actionTypeId":{"type":"keyword"},"params":{"enabled":false,"type":"object"}}},"params":{"enabled":false,"type":"object"},"scheduledTaskId":{"type":"keyword"},"createdBy":{"type":"keyword"},"updatedBy":{"type":"keyword"},"createdAt":{"type":"date"},"apiKey":{"type":"binary"},"apiKeyOwner":{"type":"keyword"},"throttle":{"type":"keyword"},"muteAll":{"type":"boolean"},"mutedInstanceIds":{"type":"keyword"}}},"query":{"properties":{"title":{"type":"text"},"description":{"type":"text"},"query":{"properties":{"language":{"type":"keyword"},"query":{"type":"keyword","index":false}}},"filters":{"type":"object","enabled":false},"timefilter":{"type":"object","enabled":false}}},"index-pattern":{"properties":{"fieldFormatMap":{"type":"text"},"fields":{"type":"text"},"intervalName":{"type":"keyword"},"notExpandable":{"type":"boolean"},"sourceFilters":{"type":"text"},"timeFieldName":{"type":"keyword"},"title":{"type":"text"},"type":{"type":"keyword"},"typeMeta":{"type":"keyword"}}},"visualization":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"savedSearchRefName":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"},"visState":{"type":"text"}}},"search":{"properties":{"columns":{"type":"keyword"},"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"sort":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"dashboard":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"optionsJSON":{"type":"text"},"panelsJSON":{"type":"text"},"refreshInterval":{"properties":{"display":{"type":"keyword"},"pause":{"type":"boolean"},"section":{"type":"integer"},"value":{"type":"integer"}}},"timeFrom":{"type":"keyword"},"timeRestore":{"type":"boolean"},"timeTo":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"url":{"properties":{"accessCount":{"type":"long"},"accessDate":{"type":"date"},"createDate":{"type":"date"},"url":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":2048}}}}},"server":{"properties":{"uuid":{"type":"keyword"}}},"kql-telemetry":{"properties":{"optInCount":{"type":"long"},"optOutCount":{"type":"long"}}},"sample-data-telemetry":{"properties":{"installCount":{"type":"long"},"unInstallCount":{"type":"long"}}},"telemetry":{"properties":{"enabled":{"type":"boolean"},"sendUsageFrom":{"ignore_above":256,"type":"keyword"},"lastReported":{"type":"date"},"lastVersionChecked":{"ignore_above":256,"type":"keyword"},"userHasSeenNotice":{"type":"boolean"}}},"timelion-sheet":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"timelion_chart_height":{"type":"integer"},"timelion_columns":{"type":"integer"},"timelion_interval":{"type":"keyword"},"timelion_other_interval":{"type":"keyword"},"timelion_rows":{"type":"integer"},"timelion_sheet":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"}}},"ui-metric":{"properties":{"count":{"type":"integer"}}},"tsvb-validation-telemetry":{"properties":{"failedRequests":{"type":"long"}}}},"_meta":{"migrationMappingPropertyHashes":{"config":"87aca8fdb053154f11383fce3dbf3edf","migrationVersion":"4a1746014a75ade3a714e1db5763276f","type":"2f4316de49999235636386fe51dc06c1","namespace":"2f4316de49999235636386fe51dc06c1","updated_at":"00da57df13e94e9d98437d13ace4bfe0","references":"7997cf5a56cc02bdc9c93361bde732b0","graph-workspace":"cd7ba1330e6682e9cc00b78850874be1","space":"c5ca8acafa0beaa4d08d014a97b6bc6b","ml-telemetry":"257fd1d4b4fdbb9cb4b8a3b27da201e9","apm-services-telemetry":"07ee1939fa4302c62ddc052ec03fed90","apm-indices":"9bb9b2bf1fa636ed8619cbab5ce6a1dd","map":"23d7aa4a720d4938ccde3983f87bd58d","maps-telemetry":"268da3a48066123fc5baf35abaa55014","canvas-workpad":"b0a1706d356228dbdcb4a17e6b9eb231","canvas-element":"7390014e1091044523666d97247392fc","infrastructure-ui-source":"ddc0ecb18383f6b26101a2fadb2dab0c","metrics-explorer-view":"53c5365793677328df0ccb6138bf3cdd","inventory-view":"84b320fd67209906333ffce261128462","siem-ui-timeline":"ac8020190f5950dd3250b6499144e7fb","siem-ui-timeline-note":"8874706eedc49059d4cf0f5094559084","siem-ui-timeline-pinned-event":"20638091112f0e14f0e443d512301c29","siem-detection-engine-rule-status":"0367e4d775814b56a4bee29384f9aafe","upgrade-assistant-reindex-operation":"a53a20fe086b72c9a86da3cc12dad8a6","upgrade-assistant-telemetry":"56702cec857e0a9dacfb696655b4ff7b","file-upload-telemetry":"0ed4d3e1983d1217a30982630897092e","lens":"21c3ea0763beb1ecb0162529706b88c5","lens-ui-telemetry":"509bfa5978586998e05f9e303c07a327","action":"c0c235fba02ebd2a2412bcda79009b58","action_task_params":"a9d49f184ee89641044be0ca2950fa3a","alert":"e588043a01d3d43477e7cad7efa0f5d8","query":"11aaeb7f5f7fa5bb43f25e18ce26e7d9","index-pattern":"66eccb05066c5a89924f48a9e9736499","visualization":"52d7a13ad68a150c4525b292d23e12cc","search":"181661168bbadd1eff5902361e2a0d5c","dashboard":"d00f614b29a80360e1190193fd333bab","url":"c7f66a0df8b1b52f17c28c4adb111105","server":"ec97f1c5da1a19609a60874e5af1100c","kql-telemetry":"d12a98a6f19a2d273696597547e064ee","sample-data-telemetry":"7d3cfeb915303c9641c59681967ffeb4","telemetry":"358ffaa88ba34a97d55af0933a117de4","timelion-sheet":"9a2a2748877c7a7b582fef201ab1d4cf","ui-metric":"0d409297dc5ebe1e3a1da691c6ee32e3","tsvb-validation-telemetry":"3a37ef6c8700ae6fc97d5c7da00e9215"}}},"settings":{"number_of_shards":1,"auto_expand_replicas":"0-1"}}' 'localhost:9308/.kibana_1'
––– output –––
- {"acknowledged":true,"index":".kibana_1","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_alias/.kibana_task_manager'
––– output –––
- []
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_alias/.kibana'
––– output –––
- []
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 87' -H 'Connection: keep-alive' -d '{"actions":[{"add":{"index":".kibana_task_manager_1","alias":".kibana_task_manager"}}]}' 'localhost:9308/_aliases'
––– output –––
- {"acknowledged":"true"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 61' -H 'Connection: keep-alive' -d '{"actions":[{"add":{"index":".kibana_1","alias":".kibana"}}]}' 'localhost:9308/_aliases'
––– output –––
- {"acknowledged":"true"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_task_manager_1/_refresh'
––– output –––
- { "_shards": { "total": 1, "successful": 1, "failed": 0 } }
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana_1/_refresh'
––– output –––
- { "_shards": { "total": 1, "successful": 1, "failed": 0 } }
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X PUT -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1307' -H 'Connection: keep-alive' -d '{"index_patterns":[".management-beats"],"version":70000,"settings":{"index":{"number_of_shards":1,"auto_expand_replicas":"0-1","codec":"best_compression"}},"mappings":{"dynamic":"strict","properties":{"type":{"type":"keyword"},"configuration_block":{"properties":{"id":{"type":"keyword"},"type":{"type":"keyword"},"tag":{"type":"keyword"},"description":{"type":"text"},"config":{"type":"keyword"},"last_updated":{"type":"date"}}},"enrollment_token":{"properties":{"token":{"type":"keyword"},"expires_on":{"type":"date"}}},"tag":{"properties":{"id":{"type":"keyword"},"name":{"type":"keyword"},"color":{"type":"keyword"},"hasConfigurationBlocksTypes":{"type":"keyword"}}},"beat":{"properties":{"id":{"type":"keyword"},"status":{"properties":{"type":{"type":"keyword"},"timestamp":{"type":"date"},"event":{"properties":{"type":{"type":"keyword"},"message":{"type":"text"},"uuid":{"type":"keyword"}}}}},"active":{"type":"boolean"},"last_checkin":{"type":"date"},"enrollment_token":{"type":"keyword"},"access_token":{"type":"keyword"},"verified_on":{"type":"date"},"type":{"type":"keyword"},"version":{"type":"keyword"},"host_ip":{"type":"ip"},"host_name":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"tags":{"type":"keyword"},"metadata":{"dynamic":"true","type":"object"},"name":{"type":"keyword"}}}}}}' 'localhost:9308/_template/.management-beats'
––– output –––
- {"acknowledged":true,"index":"_template","shards_acknowledged":true}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_xpack'
––– output –––
- {"build":{"date":"2020-02-06T00:09:00.449973Z","hash":"7f634e9f44834fbc12724506cc1da681b0c3b1e3"},"features":{"analytics":{"available ":true,"enabled":true},"ccr":{"available":false,"enabled":true},"enrich":{"available":true,"enabled":true},"flattened":{"available":true,"enabled":true},"frozen_indices":{"available":true,"enabled":true},"graph":{"available":false,"enabled":true},"ilm":{"available":true,"enabled":true},"logstash":{"available":false,"enabled":true},"ml":{"available":false,"enabled":false,"native_code_info":{"build_hash":"N/A","version":"N/A"}},"monitoring":{"available":true,"enabled":true},"rollup":{"available":true,"enabled":true},"security":{"available":true,"enabled":false},"slm":{"available":true,"enabled":true},"spatial":{"available":true,"enabled":true},"sql":{"available":true,"enabled":true},"transform":{"available":true,"enabled":true},"vectors":{"available":true,"enabled":true},"voting_only":{"available":true,"enabled":true},"watcher":{"available":false,"enabled":true}},"license":{"mode":"basic","status":"active","type":"basic","uid":"f517b738-4fbd-4820-aca3-0710c1017f1a"},"tagline":"You know, for X"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 354' -H 'Connection: keep-alive' -d '{"seq_no_primary_term":true,"query":{"bool":{"filter":[{"bool":{"should":[{"bool":{"must":[{"term":{"type":"upgrade-assistant-reindex-operation"}}],"must_not":[{"exists":{"field":"namespace"}}]}}],"minimum_should_match":1}}],"must":[{"simple_query_string":{"query":"0","fields":["upgrade-assistant-reindex-operation.status"],"default_operator":"OR"}}]}}}' 'localhost:9308/.kibana/_search?size=20&from=0&rest_total_hits_as_int=true'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/.kibana/_doc/space%3Adefault'
––– output –––
- {"_id":"space:default","_index":".kibana_1","_type":"_doc","found":false}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 237' -H 'Connection: keep-alive' -d '{"space":{"name":"Default","description":"This is your default space!","color":"#00bfb3","disabledFeatures":[],"_reserved":true},"type":"space","references":[],"migrationVersion":{"space":"6.6.0"},"updated_at":"2025-04-16T12:06:54.147Z"}' 'localhost:9308/.kibana/_create/space%3Adefault?refresh=wait_for'
––– output –––
- {"_id":"space:default","_index":".kibana_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X HEAD --max-time 5 -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/'
––– output –––
OK
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_cluster/settings?include_defaults=true'
––– output –––
- {"defaults":{"action":{"auto_create_index":"true","destructive_requires_name":"false","search":{"shard_count":{"limit":9223372036854775807}}},"bootstrap":{"ctrlhandler":"true","memory_lock":"false","system_call_filter":"true"},"cache":{"recycler":{"page":{"limit":{"heap":"10%"},"type":"CONCURRENT","weight":{"bytes":1.000000,"ints":1.000000,"longs":1.000000,"objects":0.100000}}}},"ccr":{"auto_follow":{"wait_for_metadata_timeout":"60s"},"indices":{"recovery":{"chunk_size":"1mb","internal_action_timeout":"60s","max_bytes_per_sec":"40mb","max_concurrent_file_chunks":5,"recovery_activity_timeout":"60s"}},"wait_for_metadata_timeout":"60s"},"client":{"transport":{"ignore_cluster_name":"false","nodes_sampler_interval":"5s","ping_timeout":"5s","sniff":"false"},"type":"node"},"cluster":{"auto_shrink_voting_configuration":"true","blocks":{"read_only":"false","read_only_allow_delete":"false"},"election":{"back_off_time":"100ms","duration":"500ms","initial_timeout":"100ms","max_timeout":"10s","strategy":"supports_voting_only"},"fault_detection":{"follower_check":{"interval":"1000ms","retry_count":3,"timeout":"10000ms"},"leader_check":{"interval":"1000ms","retry_count":3,"timeout":"10000ms"}},"follower_lag":{"timeout":"90000ms"},"indices":{"close":{"enable":"true"},"tombstones":{"size":500}},"info":{"update":{"interval":"30s","timeout":"15s"}},"initial_master_nodes":[],"join":{"timeout":"60000ms"},"max_shards_per_node":1000,"max_voting_config_exclusions":10,"name":"docker-cluster","no_master_block":"write","nodes":{"reconnect_interval":"10s"},"persistent_tasks":{"allocation":{"enable":"all","recheck_interval":"30s"}},"publish":{"info_timeout":"10000ms","timeout":"30000ms"},"remote":{"connect":"true","connections_per_cluster":3,"initial_connect_timeout":"30s","node":{"attr":""}},"routing":{"allocation":{"allow_rebalance":"indices_all_active","awareness":{"attributes":[]},"balance":{"index":0.550000,"shard":0.450000,"threshold":1.000000},"cluster_concurrent_rebalance":2,"disk":{"include_relocations":"true","reroute_interval":"60s","threshold_enabled":"true","watermark":{"flood_stage":"95%","high":"90%","low":"85%"}},"enable":"all","node_concurrent_incoming_recoveries":2,"node_concurrent_outgoing_recoveries":2,"node_concurrent_recoveries":2,"node_initial_primaries_recoveries":4,"same_shard":{"host":"false"},"shard_state":{"reroute":{"priority":"NORMAL"}},"total_shards_per_node":-1,"type":"balanced"},"rebalance":{"enable":"all"},"use_adaptive_replica_selection":"true"},"service":{"slow_master_task_logging_threshold":"10s","slow_task_logging_threshold":"30s"}},"discovery":{"cluster_formation_warning_timeout":"10000ms","find_peers_interval":"1000ms","initial_state_timeout":"30s","request_peers_timeout":"3000ms","seed_hosts":[],"seed_providers":[],"seed_resolver":{"max_concurrent_resolvers":10,"timeout":"5s"},"type":"single-node","unconfigured_bootstrap_timeout":"3s","zen":{"bwc_ping_timeout":"3s","commit_timeout":"30s","fd":{"connect_on_network_disconnect":"false","ping_interval":"1s","ping_retries":3,"ping_timeout":"30s","register_connection_listener":"true"},"hosts_provider":[],"join_retry_attempts":3,"join_retry_delay":"100ms","join_timeout":"60000ms","master_election":{"ignore_non_master_pings":"false","wait_for_joins_timeout":"30000ms"},"max_pings_from_another_master":3,"minimum_master_nodes":-1,"no_master_block":"write","ping":{"unicast":{"concurrent_connects":10,"hosts":[],"hosts.resolve_timeout":"5s"}},"ping_timeout":"3s","publish":{"max_pending_cluster_states":25},"publish_diff":{"enable":"true"},"publish_timeout":"30s","send_leave_request":"true","unsafe_rolling_upgrades_enabled":"true"}},"enrich":{"cleanup_period":"15m","coordinator_proxy":{"max_concurrent_requests":8,"max_lookups_per_request":128,"queue_capacity":1024},"fetch_size":10000,"max_concurrent_policy_executions":50,"max_force_merge_attempts":3},"gateway":{"auto_import_dangling_indices":"true","expected_data_nodes":-1,"expected_master_nodes":-1,"expected_nodes":-1,"recover_after_data_nodes":-1,"recover_after_master_nodes":0,"recover_after_nodes":-1,"recover_after_time":"0ms","slow_write_logging_threshold":"10s","write_dangling_indices_info":"true"},"http":{"bind_host":[],"compression":"true","compression_level":3,"content_type":{"required":"true"},"cors":{"allow-credentials":"false","allow-headers":"X-Requested-With,Content-Type,Content-Length","allow-methods":"OPTIONS,HEAD,GET,POST,PUT,DELETE","allow-origin":"","enabled":"false","max-age":1728000},"detailed_errors":{"enabled":"true"},"host":[],"max_chunk_size":"8kb","max_content_length":"100mb","max_header_size":"8kb","max_initial_line_length":"4kb","max_warning_header_count":-1,"max_warning_header_size":"-1b","netty":{"max_composite_buffer_components":69905,"receive_predictor_size":"64kb","worker_count":4},"pipelining":{"max_events":10000},"port":"9200-9300","publish_host":[],"publish_port":-1,"read_timeout":"0ms","reset_cookies":"false","tcp":{"keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"},"tcp_no_delay":"true","type":"security4","type.default":"netty4"},"index":{"codec":"default","store":{"fs":{"fs_lock":"native"},"preload":[],"type":""}},"indices":{"analysis":{"hunspell":{"dictionary":{"ignore_case":"false","lazy":"false"}}},"breaker":{"accounting":{"limit":"100%","overhead":1.000000},"fielddata":{"limit":"40%","overhead":1.030000,"type":"memory"},"request":{"limit":"60%","overhead":1.000000,"type":"memory"},"total":{"limit":"95%","use_real_memory":"true"},"type":"hierarchy"},"cache":{"cleanup_interval":"1m"},"fielddata":{"cache":{"size":"-1b"}},"id_field_data":{"enabled":"true"},"lifecycle":{"history_index_enabled":"true","poll_interval":"10m"},"mapping":{"dynamic_timeout":"30s"},"memory":{"index_buffer_size":"10%","interval":"5s","max_index_buffer_size":-1,"min_index_buffer_size":"48mb","shard_inactive_time":"5m"},"queries":{"cache":{"all_segments":"false","count":10000,"size":"10%"}},"query":{"bool":{"max_clause_count":1024},"query_string":{"allowLeadingWildcard":"true","analyze_wildcard":"false"}},"recovery":{"internal_action_long_timeout":"1800000ms","internal_action_timeout":"15m","max_bytes_per_sec":"40mb","max_concurrent_file_chunks":2,"recovery_activity_timeout":"1800000ms","retry_delay_network":"5s","retry_delay_state_sync":"500ms"},"requests":{"cache":{"expire":"0ms","size":"1%"}},"store":{"delete":{"shard":{"timeout":"30s"}}}},"ingest":{"geoip":{"cache_size":1000},"grok":{"watchdog":{"interval":"1s","max_execution_time":"1s"}},"user_agent":{"cache_size":1000}},"logger":{"level":"INFO"},"monitor":{"fs":{"refresh_interval":"1s"},"jvm":{"gc":{"enabled":"true","overhead":{"debug":10,"info":25,"warn":50},"refresh_interval":"1s"},"refresh_interval":"1s"},"os":{"refresh_interval":"1s"},"process":{"refresh_interval":"1s"}},"network":{"bind_host":["0.0.0.0"],"breaker":{"inflight_requests":{"limit":"100%","overhead":2.000000}},"host":["0.0.0.0"],"publish_host":["0.0.0.0"],"server":"true","tcp":{"connect_timeout":"30s","keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"}},"no":{"model":{"state":{"persist":"false"}}},"node":{"attr":{"xpack":{"installed":"true"}},"data":"true","enable_lucene_segment_infos_trace":"false","id":{"seed":0},"ingest":"true","local_storage":"true","master":"true","max_local_storage_nodes":1,"ml":"false","name":"ec0f9510557a","pidfile":"","portsfile":"false","processors":2,"store":{"allow_mmap":"true"},"voting_only":"false"},"path":{"data":[],"home":"/usr/share/elasticsearch","logs":"/usr/share/elasticsearch/logs","repo":[],"shared_data":""},"pidfile":"","plugin":{"mandatory":[]},"processors":2,"reindex":{"remote":{"whitelist":[]}},"repositories":{"fs":{"chunk_size":"9223372036854775807b","compress":"false","location":""},"url":{"allowed_urls":[],"supported_protocols":["http","https","ftp","file","jar"],"url":"http:"}},"resource":{"reload":{"enabled":"true","interval":{"high":"5s","low":"60s","medium":"30s"}}},"rest":{"action":{"multi":{"allow_explicit_index":"true"}}},"script":{"allowed_contexts":[],"allowed_types":[],"cache":{"expire":"0ms","max_size":100},"max_compilations_rate":"75/5m","max_size_in_bytes":65535,"painless":{"regex":{"enabled":"false"}}},"search":{"default_allow_partial_results":"true","default_keep_alive":"5m","default_search_timeout":-1,"highlight":{"term_vector_multi_value":"true"},"keep_alive_interval":"1m","low_level_cancellation":"true","max_buckets":10000,"max_keep_alive":"24h","max_open_scroll_context":500,"remote":{"connect":"true","connections_per_cluster":3,"initial_connect_timeout":"30s","node":{"attr":""}}},"security":{"manager":{"filter_bad_defaults":"true"}},"slm":{"history_index_enabled":"true","retention_duration":"1h","retention_schedule":"0 30 1 * * ?"},"thread_pool":{"analyze":{"queue_size":16,"size":1},"estimated_time_interval":"200ms","fetch_shard_started":{"core":1,"keep_alive":"5m","max":4},"fetch_shard_store":{"core":1,"keep_alive":"5m","max":4},"flush":{"core":1,"keep_alive":"5m","max":1},"force_merge":{"queue_size":-1,"size":1},"generic":{"core":4,"keep_alive":"30s","max":128},"get":{"queue_size":1000,"size":2},"listener":{"queue_size":-1,"size":1},"management":{"core":1,"keep_alive":"5m","max":5},"refresh":{"core":1,"keep_alive":"5m","max":1},"search":{"auto_queue_frame_size":2000,"max_queue_size":1000,"min_queue_size":1000,"queue_size":1000,"size":4,"target_response_time":"1s"},"search_throttled":{"auto_queue_frame_size":200,"max_queue_size":100,"min_queue_size":100,"queue_size":100,"size":1,"target_response_time":"1s"},"snapshot":{"core":1,"keep_alive":"5m","max":1},"warmer":{"core":1,"keep_alive":"5m","max":1},"write":{"queue_size":200,"size":2}},"transform":{"task_thread_pool":{"queue_size":4,"size":4}},"transport":{"bind_host":[],"compress":"false","connect_timeout":"30s","connections_per_node":{"bulk":3,"ping":1,"recovery":2,"reg":6,"state":1},"features":{"x-pack":"true"},"host":[],"netty":{"boss_count":1,"receive_predictor_max":"64kb","receive_predictor_min":"64kb","receive_predictor_size":"64kb","worker_count":4},"ping_schedule":-1,"port":"9300-9400","publish_host":[],"publish_port":-1,"tcp":{"compress":"false","connect_timeout":"30s","keep_alive":"true","keep_count":-1,"keep_idle":-1,"keep_interval":-1,"no_delay":"true","port":"9300-9400","receive_buffer_size":"-1b","reuse_address":"true","send_buffer_size":"-1b"},"tcp_no_delay":"true","tracer":{"exclude":["internal:discovery/zen/fd*","internal:coordination/fault_detection/*","cluster:monitor/nodes/liveness"],"include":[]},"type":"security4","type.default":"netty4"},"xpack":{"ccr":{"ccr_thread_pool":{"queue_size":100,"size":32},"enabled":"true"},"data_frame":{"enabled":"true"},"enrich":{"enabled":"true"},"flattened":{"enabled":"true"},"graph":{"enabled":"true"},"http":{"default_connection_timeout":"10s","default_read_timeout":"10s","max_response_size":"10mb","proxy":{"host":"","port":0,"scheme":""},"whitelist":["*"]},"ilm":{"enabled":"true"},"license":{"self_generated":{"type":"basic"},"upload":{"types":["standard","gold","platinum","enterprise","trial"]}},"logstash":{"enabled":"true"},"ml":{"autodetect_process":"true","enable_config_migration":"true","enabled":"false","inference_model":{"cache_size":"40%","time_to_live":"5m"},"max_anomaly_records":500,"max_inference_processors":50,"max_lazy_ml_nodes":0,"max_machine_memory_percent":30,"max_model_memory_limit":"0b","max_open_jobs":20,"min_disk_space_off_heap":"5gb","node_concurrent_job_allocations":2,"persist_results_max_retries":20,"process_connect_timeout":"10s"},"monitoring":{"collection":{"ccr":{"stats":{"timeout":"10s"}},"cluster":{"stats":{"timeout":"10s"}},"enabled":"false","enrich":{"stats":{"timeout":"10s"}},"index":{"recovery":{"active_only":"false","timeout":"10s"},"stats":{"timeout":"10s"}},"indices":[],"interval":"10s","ml":{"job":{"stats":{"timeout":"10s"}}},"node":{"stats":{"timeout":"10s"}}},"elasticsearch":{"collection":{"enabled":"true"}},"enabled":"true","history":{"duration":"168h"}},"notification":{"email":{"default_account":"","html":{"sanitization":{"allow":["body","head","_tables","_links","_blocks","_formatting","img:embedded"],"disallow":[],"enabled":"true"}}},"jira":{"default_account":""},"pagerduty":{"default_account":""},"reporting":{"interval":"15s","retries":40,"warning":{"enabled":"true"}},"slack":{"default_account":""}},"rollup":{"enabled":"true","task_thread_pool":{"queue_size":4,"size":4}},"security":{"audit":{"enabled":"false","logfile":{"emit_node_host_address":"false","emit_node_host_name":"false","emit_node_id":"true","emit_node_name":"false","events":{"emit_request_body":"false","exclude":[],"include":["ACCESS_DENIED","ACCESS_GRANTED","ANONYMOUS_ACCESS_DENIED","AUTHENTICATION_FAILED","CONNECTION_DENIED","TAMPERED_REQUEST","RUN_AS_DENIED","RUN_AS_GRANTED"]}}},"authc":{"anonymous":{"authz_exception":"true","roles":[],"username":"_anonymous"},"api_key":{"cache":{"hash_algo":"ssha256","max_keys":10000,"ttl":"24h"},"delete":{"interval":"24h","timeout":-1},"enabled":"false","hashing":{"algorithm":"pbkdf2"}},"password_hashing":{"algorithm":"bcrypt"},"reserved_realm":{"enabled":"true"},"run_as":{"enabled":"true"},"success_cache":{"enabled":"true","expire_after_access":"1h","size":10000},"token":{"delete":{"interval":"30m","timeout":-1},"enabled":"false","thread_pool":{"queue_size":1000,"size":1},"timeout":"20m"}},"authz":{"store":{"roles":{"cache":{"max_size":10000},"field_permissions":{"cache":{"max_size_in_bytes":104857600}},"index":{"cache":{"max_size":10000,"ttl":"20m"}},"negative_lookup_cache":{"max_size":10000}}}},"automata":{"cache":{"enabled":"true","size":10000,"ttl":"48h"},"max_determinized_states":100000},"dls":{"bitset":{"cache":{"size":"10%","ttl":"2h"}}},"dls_fls":{"enabled":"true"},"enabled":"true","encryption":{"algorithm":"AES/CTR/NoPadding"},"encryption_key":{"algorithm":"AES","length":128},"filter":{"always_allow_bound_address":"true"},"fips_mode":{"enabled":"false"},"http":{"filter":{"allow":[],"deny":[],"enabled":"true"},"ssl":{"enabled":"false"}},"ssl":{"diagnose":{"trust":"true"}},"transport":{"filter":{"allow":[],"deny":[],"enabled":"true"},"ssl":{"enabled":"false"}},"user":null},"slm":{"enabled":"true"},"sql":{"enabled":"true"},"transform":{"enabled":"true","num_transform_failure_retries":10},"vectors":{"enabled":"true"},"watcher":{"actions":{"bulk":{"default_timeout":""},"index":{"default_timeout":""}},"bulk":{"actions":1,"concurrent_requests":0,"flush_interval":"1s","size":"1mb"},"enabled":"true","encrypt_sensitive_data":"false","execution":{"default_throttle_period":"5s","scroll":{"size":0,"timeout":""}},"history":{"cleaner_service":{"enabled":"true"}},"index":{"rest":{"direct_access":""}},"input":{"search":{"default_timeout":""}},"internal":{"ops":{"bulk":{"default_timeout":""},"index":{"default_timeout":""},"search":{"default_timeout":""}}},"stop":{"timeout":"30s"},"thread_pool":{"queue_size":1000,"size":10},"transform":{"search":{"default_timeout":""}},"trigger":{"schedule":{"ticker":{"tick_interval":"500ms"}}},"watch":{"scroll":{"size":0}}}}},"persistent":[],"transient":[]}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 171' -H 'Connection: keep-alive' -d '{"sort":[{"task.runAt":"asc"},{"_id":"desc"}],"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"filter":{"term":{"_id":"task:oss_telemetry-vis_telemetry"}}}}]}}}' 'localhost:9308/.kibana_task_manager/_search?ignore_unavailable=true'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 330' -H 'Connection: keep-alive' -d '{"task":{"taskType":"vis_telemetry","state":"{\"stats\":{},\"runs\":0}","params":"{}","attempts":0,"scheduledAt":"2025-04-16T12:07:00.161Z","startedAt":null,"retryAt":null,"runAt":"2025-04-16T12:07:00.161Z","status":"idle"},"type":"task","references":[],"migrationVersion":{"task":"7.6.0"},"updated_at":"2025-04-16T12:07:00.161Z"}' 'localhost:9308/.kibana_task_manager/_create/task%3Aoss_telemetry-vis_telemetry?refresh=false'
––– output –––
- {"_id":"task:oss_telemetry-vis_telemetry","_index":".kibana_task_manager_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 370' -H 'Connection: keep-alive' -d '{"task":{"taskType":"lens_telemetry","state":"{\"byDate\":{},\"suggestionsByDate\":{},\"saved\":{},\"runs\":0}","params":"{}","attempts":0,"scheduledAt":"2025-04-16T12:07:00.161Z","startedAt":null,"retryAt":null,"runAt":"2025-04-16T12:07:00.161Z","status":"idle"},"type":"task","references":[],"migrationVersion":{"task":"7.6.0"},"updated_at":"2025-04-16T12:07:00.161Z"}' 'localhost:9308/.kibana_task_manager/_create/task%3ALens-lens_telemetry?refresh=false'
––– output –––
- {"_id":"task:Lens-lens_telemetry","_index":".kibana_task_manager_1","_primary_term":1,"_seq_no":0,"_shards":{"failed":0,"successful":1,"total":1},"_type":"_doc","_version":1,"result":"created"}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1942' -H 'Connection: keep-alive' -d '{"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"term":{"task.status":"idle"}},{"range":{"task.runAt":{"lte":"now"}}}]}},{"bool":{"must":[{"bool":{"should":[{"term":{"task.status":"running"}},{"term":{"task.status":"claiming"}}]}},{"range":{"task.retryAt":{"lte":"now"}}}]}}]}},{"bool":{"should":[{"exists":{"field":"task.schedule"}},{"bool":{"must":[{"term":{"task.taskType":"actions:.server-log"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.slack"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.email"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.index"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.pagerduty"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.webhook"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"alerting:siem.signals"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"vis_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"lens_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}}]}}]}}]}},"sort":{"_script":{"type":"number","order":"asc","script":{"lang":"painless","source":"\nif (doc['\''task.retryAt'\''].size()!=0) {\n return doc['\''task.retryAt'\''].value.toInstant().toEpochMilli();\n}\nif (doc['\''task.runAt'\''].size()!=0) {\n return doc['\''task.runAt'\''].value.toInstant().toEpochMilli();\n}\n "}}},"seq_no_primary_term":true,"script":{"source":"ctx._source.task.ownerId=params.ownerId; ctx._source.task.status=params.status; ctx._source.task.retryAt=params.retryAt;","lang":"painless","params":{"ownerId":"kibana:ce42b997-a913-4d58-be46-bb1937feedd6","status":"claiming","retryAt":"2025-04-16T12:07:30.419Z"}}}' 'localhost:9308/.kibana_task_manager/_update_by_query?ignore_unavailable=true&refresh=true&max_docs=10&conflicts=proceed'
––– output –––
- {"batches":0,"deleted":0,"failures":[],"noops":0,"requests_per_second":-1,"retries":{"bulk":0,"search":0},"throttled_millis":0,"throttled_until_millis":0,"timed_out":false,"took":0,"total":0,"updated":0,"version_conflicts":0}
––– input –––
curl -s -X GET -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'Content-Length: 0' -H 'Connection: keep-alive' 'localhost:9308/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip'
––– output –––
- {"nodes":{"#!/[A-Za-z0-9]+/!#":{"http":{"publish_address":"127.0.0.1:9308"},"ip":"127.0.0.1","version":"7.6.0"}}}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 1942' -H 'Connection: keep-alive' -d '{"query":{"bool":{"must":[{"term":{"type":"task"}},{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"term":{"task.status":"idle"}},{"range":{"task.runAt":{"lte":"now"}}}]}},{"bool":{"must":[{"bool":{"should":[{"term":{"task.status":"running"}},{"term":{"task.status":"claiming"}}]}},{"range":{"task.retryAt":{"lte":"now"}}}]}}]}},{"bool":{"should":[{"exists":{"field":"task.schedule"}},{"bool":{"must":[{"term":{"task.taskType":"actions:.server-log"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.slack"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.email"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.index"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.pagerduty"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"actions:.webhook"}},{"range":{"task.attempts":{"lt":1}}}]}},{"bool":{"must":[{"term":{"task.taskType":"alerting:siem.signals"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"vis_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}},{"bool":{"must":[{"term":{"task.taskType":"lens_telemetry"}},{"range":{"task.attempts":{"lt":3}}}]}}]}}]}}]}},"sort":{"_script":{"type":"number","order":"asc","script":{"lang":"painless","source":"\nif (doc['\''task.retryAt'\''].size()!=0) {\n return doc['\''task.retryAt'\''].value.toInstant().toEpochMilli();\n}\nif (doc['\''task.runAt'\''].size()!=0) {\n return doc['\''task.runAt'\''].value.toInstant().toEpochMilli();\n}\n "}}},"seq_no_primary_term":true,"script":{"source":"ctx._source.task.ownerId=params.ownerId; ctx._source.task.status=params.status; ctx._source.task.retryAt=params.retryAt;","lang":"painless","params":{"ownerId":"kibana:ce42b997-a913-4d58-be46-bb1937feedd6","status":"claiming","retryAt":"2025-04-16T12:07:30.509Z"}}}' 'localhost:9308/.kibana_task_manager/_update_by_query?ignore_unavailable=true&refresh=true&max_docs=10&conflicts=proceed'
––– output –––
- {"batches":0,"deleted":0,"failures":[],"noops":0,"requests_per_second":-1,"retries":{"bulk":0,"search":0},"throttled_millis":0,"throttled_until_millis":0,"timed_out":false,"took":0,"total":0,"updated":0,"version_conflicts":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 64' -H 'Connection: keep-alive' -d '{"query":{"bool":{"filter":{"term":{"type":"canvas-workpad"}}}}}' 'localhost:9308/.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-workpad%2C-hits.hits._source.canvas-workpad.assets'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 64' -H 'Connection: keep-alive' -d '{"query":{"bool":{"filter":{"term":{"type":"canvas-element"}}}}}' 'localhost:9308/.kibana/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._source.canvas-element.content'
––– output –––
- {"_shards":{"failed":0,"skipped":0,"successful":1,"total":1},"hits":{"hits":[],"max_score":0,"total":0,"total_relation":"eq"},"status":200,"timed_out":false,"took":0}
––– input –––
curl -s -X POST -H 'Authorization: Basic ZWxhc3RpYzpwYXNz' -H 'content-type: application/json' -H 'Content-Length: 374' -H 'Connection: keep-alive' -d '{"seq_no_primary_term":true,"_source":{"excludes":["output.content"]},"query":{"bool":{"filter":{"bool":{"minimum_should_match":1,"should":[{"term":{"status":"pending"}},{"bool":{"must":[{"term":{"status":"processing"}},{"range":{"process_expiration":{"lte":"2025-04-16T12:07:03.101Z"}}}]}}]}}}},"sort":[{"priority":{"order":"asc"}},{"created_at":{"order":"asc"}}],"size":1}' 'localhost:9308/.reporting-*/_search'
––– output –––
- {
- "took": 0,
- "timed_out": false,
- "_shards": {
- "total": 0,
- "successful": 0,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": {
- "value": 0,
- "relation": "eq"
- },
- "max_score": 0,
- "hits": []
- }
- }test/clt-tests/mysqldump/mysql/mcl-all-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi'
––– output –––
- +------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/kibana/test-parameter-for-installing-the-kibana-version.rec––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = 7.10.2\n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:07.438 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:07.438 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:07.439 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | 7.10.2 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = 8.17.4\n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:07.438 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:07.438 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:07.439 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:49:17.745 2026] [34] watchdog: main process 35 forked ok
+ [Sun Mar 15 09:49:17.745 2026] [35] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:17.746 2026] [34] watchdog: main process 35 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | 8.17.4 |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo -e "searchd {\n listen = 9306:mysql\n listen = 9312\n listen = 9308:http\n log = /var/log/manticore/searchd.log\n query_log = /var/log/manticore/query.log\n pid_file = /run/manticore/searchd.pid\n kibana_version_string = \n}" > /tmp/manticore.conf; echo $?
––– output –––
OK
––– input –––
pkill -9 searchd; stdbuf -oL searchd -c /tmp/manticore.conf > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:07.438 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:07.438 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:07.439 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:49:17.745 2026] [34] watchdog: main process 35 forked ok
+ [Sun Mar 15 09:49:17.745 2026] [35] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:17.746 2026] [34] watchdog: main process 35 exited cleanly (exit code 1), shutting down
+ [Sun Mar 15 09:49:28.052 2026] [46] watchdog: main process 47 forked ok
+ [Sun Mar 15 09:49:28.052 2026] [47] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:28.053 2026] [46] watchdog: main process 47 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW SETTINGS;" | grep -i "kibana_version_string"
––– output –––
- | searchd.kibana_version_string | |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/mysqldump/mysql/mcl-all-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_json'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/mysql/random-1m-dump-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
./test/clt-tests/scripts/generate-records.sh 1000000 | mysql -h0 -P9306
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysqldump -h0 -P9306 Manticore 2>/dev/null 1> /tmp/all-databases.sql
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "drop table t"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < /tmp/all-databases.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+test/clt-tests/mysqldump/maria/mcl-id-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-id-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-all-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/mysql/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/mysql/pq-table-mysqldump.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -P9306 -h0 -e "create table pq(f text) type='percolate'"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "insert into pq(id, query) values(1, '@f abc'),(2, 'def')"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "select * from pq"
––– output –––
- +------+--------+------+---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+
––– input –––
mysqldump -h0 -P9306 manticore 2>/dev/null 1> /tmp/pq-dump.sql
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e 'drop table pq'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e 'show tables'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 manticore < /tmp/pq-dump.sql
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e 'select * from pq;'
––– output –––
- +------+--------+------+---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+test/clt-tests/mysqldump/maria/mcl-id-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/buddy-plugins/test-fuzzy-search.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:09.730 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:09.730 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:09.731 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
OK
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/name_data.txt
––– output –––
- 1995eec70e60c584bc35ff0688556b94 /tmp/name_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+---------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | username | s |
- +-------+------------------+------+
- | 688 | SHERIE STORY | a |
- | 1422 | TOBY CARO | a |
- | 1627 | RUPERT STORY | a |
- | 2154 | TONY GREY | a |
- | 3759 | TOBY GILCHRIST | a |
- | 5687 | TONY EASTERLING | a |
- | 5835 | TOBY ROBERSON | a |
- | 6281 | TOBY ARAIZA | a |
- | 7311 | ANTONY STOVALL | a |
- | 7475 | TOBY REINHART | a |
- | 8828 | TONYA CALLAHAN | a |
- | 9251 | TOBY LANGFORD | a |
- | 9293 | ZENA STORY | a |
- | 9619 | TONY WHITTINGTON | a |
- | 10167 | LANA STORY | a |
- | 10341 | ANTONY KAYE | a |
- | 12573 | LATONYA CRABTREE | a |
- | 12876 | TOBY MONTENEGRO | a |
- | 13391 | ANTONY CARRILLO | a |
- | 13672 | LEZLIE STORY | a |
- +-------+------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-----------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | username | s |
- +--------+----------------+------+
- | 998829 | EDYTHE VACA | a |
- | 998500 | SETH PHUNG | a |
- | 996507 | SETH LYMAN | a |
- | 995119 | EDYTHE JOHN | a |
- | 993455 | EDYTH ROSADO | a |
- | 992097 | EDYTH RAGAN | a |
- | 989954 | GWENN SMYTH | a |
- | 988823 | SETH WHITTAKER | a |
- | 988755 | SHERRON SMYTH | a |
- | 988366 | LAVONIA SMYTH | a |
- | 986580 | DARNELL SMYTH | a |
- | 986231 | EDYTH BLODGETT | a |
- | 985595 | SETH BACON | a |
- | 982423 | SETH CHATMAN | a |
- | 981115 | KATIE SMYTH | a |
- | 979541 | EDYTHE CLAYTON | a |
- | 979093 | SETH BURROUGHS | a |
- | 978812 | EDYTH GULLEY | a |
- | 975994 | SETH PARHAM | a |
- | 975841 | ALEIDA SMYTH | 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"'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+--------------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, ranker=expr('sum((4*lcs+2*(min_hit_pos=1)+exact_hit)*user_weight)*1000+bm25'), field_weights=(username=1), fuzzy=1;"
––– output –––
- +----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +----------------+
- | MINH FENNELL |
- | MINH MAZUR |
- | MINH VILLEGAS |
- | MINH TILLER |
- | MINH VOGT |
- | MINH SHAW |
- | MINH STEADMAN |
- | MINH PEAK |
- | MINH ROOT |
- | MINH PATTERSON |
- | MINH BURDETTE |
- | MINH ABNEY |
- | MINH DOLAN |
- | MINH RUDD |
- | MINH TOLBERT |
- | MINH CRANDALL |
- | MINH JAIME |
- | MINH ISAACSON |
- | MINH BONILLA |
- | MINH WAHL |
- +----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, field_weights=(username=1), fuzzy=1;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +-----------------+
- | SYDNEY SMYTH |
- | CHERILYN SMYTH |
- | SATURNINA SMYTH |
- | LYNN SMYTH |
- | STEVEN SMYTH |
- | JASMIN SMYTH |
- | BERYL SMYTH |
- | JACK SMYTH |
- | CAROLEE SMYTH |
- | CARON SMYTH |
- | ALFREDO SMYTH |
- | ALTA SMYTH |
- | VIKI SMYTH |
- | CHANA SMYTH |
- | HYUN SMYTH |
- | ROGER SMYTH |
- | LINDSEY SMYTH |
- | WILFORD SMYTH |
- | ARLINE SMYTH |
- | APRYL SMYTH |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, ranker=expr('sum((4*lcs+2*(min_hit_pos=1)+exact_hit)*user_weight)*1000+bm25'), fuzzy=1;"
––– output –––
- +----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +----------------+
- | MINH FENNELL |
- | MINH MAZUR |
- | MINH VILLEGAS |
- | MINH TILLER |
- | MINH VOGT |
- | MINH SHAW |
- | MINH STEADMAN |
- | MINH PEAK |
- | MINH ROOT |
- | MINH PATTERSON |
- | MINH BURDETTE |
- | MINH ABNEY |
- | MINH DOLAN |
- | MINH RUDD |
- | MINH TOLBERT |
- | MINH CRANDALL |
- | MINH JAIME |
- | MINH ISAACSON |
- | MINH BONILLA |
- | MINH WAHL |
- +----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT username FROM name WHERE MATCH('SMITH') OPTION cutoff=0, fuzzy=1;"
––– output –––
- +-----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | username |
- +-----------------+
- | SYDNEY SMYTH |
- | CHERILYN SMYTH |
- | SATURNINA SMYTH |
- | LYNN SMYTH |
- | STEVEN SMYTH |
- | JASMIN SMYTH |
- | BERYL SMYTH |
- | JACK SMYTH |
- | CAROLEE SMYTH |
- | CARON SMYTH |
- | ALFREDO SMYTH |
- | ALTA SMYTH |
- | VIKI SMYTH |
- | CHANA SMYTH |
- | HYUN SMYTH |
- | ROGER SMYTH |
- | LINDSEY SMYTH |
- | WILFORD SMYTH |
- | ARLINE SMYTH |
- | APRYL SMYTH |
- +-----------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id ASC OPTION fuzzy=0;" > /tmp/result_fuzzy0.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id ASC;" > /tmp/result_no_fuzzy.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
diff /tmp/result_fuzzy0.txt /tmp/result_no_fuzzy.txt; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | joe |
- | joey |
- | john |
- | jon |
- | jose |
- | joy |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort
––– output –––
- ERROR 1064 (42000) at line 1: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | cami |
- | darci |
- | joan |
- | jody |
- | joe |
- | joel |
- | joey |
- | john |
- | johnie |
- | johnny |
- | joi |
- | jon |
- | jonas |
- | jordan |
- | jorge |
- | jose |
- | joseph |
- | joshi |
- | joshua |
- | joy |
- | joyce |
- | kaci |
- | kami |
- | kimi |
- | laci |
- | luci |
- | marci |
- | mi |
- | nanci |
- | naomi |
- | neomi |
- | nohemi |
- | ricci |
- | staci |
- | tami |
- | tammi |
- | tobias |
- | todd |
- | toi |
- | tom |
- | tomas |
- | tomi |
- | toney |
- | traci |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | chang |
- | chong |
- | chung |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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: At least two languages are required in layouts
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS tbl1; CREATE TABLE tbl1 (title TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM \`tbl1\` WHERE MATCH('abc') OPTION fuzzy = 1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-----------+
- | some |
- | something |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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. Use: MATCH('search query') or MATCH('search query', table_name)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-----------+
- | some |
- | something |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– 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. Use: MATCH('search query') or MATCH('search query', table_name)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists comment_28798446; create table comment_28798446(id int, content text) min_infix_len='3';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +---------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | command | result |
- +---------+--------+
- | sleep | #!/[0-9]{1}.[0-9]{3}/!# |
- +---------+--------+
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t VALUES (1, 'abcdef'), (2, 'abcd efgh');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcdef'); SHOW META;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 "insert into t values(3, 'aa defghi xxx');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('aa def ghi xxx') option fuzzy=1, layouts='';"
––– output –––
- +------+---------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f |
- +------+---------------+
- | 3 | aa defghi xxx |
- +------+---------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1; SHOW META;"
––– output –––
- +------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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');
+ grep: /var/log/manticore/query.log: No such file or directory
- /* #!/[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('aa def ghi xxx') option fuzzy=1, layouts='';
- /* #!/[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 –––
- +----------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
- +------+-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | f |
- +------+-----------+
- | 1 | abcdef |
- | 2 | abcd efgh |
- +------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('\$#@\!') OPTION fuzzy=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS idx1; CREATE TABLE idx1(value TEXT) min_infix_len='2';"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO idx1(value) VALUES ('340');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1');"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-------+
- | 340 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('3', 'idx1');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('34', 'idx1', 1 AS fuzziness);"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | query |
- +-------+
- | 340 |
- +-------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('3*', 'idx1', 1 AS fuzziness);"
––– output –––
- +-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | 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 –––
OK
––– input –––
echo -e "1\tabcdef\n2\tabcd efgh\n3\trandom text" > /tmp/data.tsv; echo $?
––– output –––
OK
––– input –––
mkdir -p /tmp/idx_plain && chmod 777 /tmp/idx_plain; echo $?
––– output –––
OK
––– input –––
indexer --all --config /tmp/manticore_idx.conf > /dev/null 2>&1; echo $?
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE idx_plain SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcef') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('nonexistent') OPTION fuzzy=1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('abc', 'idx_plain');"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ran', 'idx_plain');"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('zzz', 'idx_plain');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcdef') OPTION fuzzy=0;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM idx_plain WHERE MATCH('abcd efgh') OPTION fuzzy=0;"
––– output –––
OKtest/clt-tests/buddy-plugins/test-skipping-plugin-loading.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:08.295 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:08.295 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:08.296 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-replace"
––– output –––
- Package: manticoresoftware/buddy-plugin-replace-select
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Package: manticoresoftware/buddy-plugin-replace
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS tbl;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | tbl | rt |
- +-------+------+
––– input –––
./test/clt-tests/scripts/generate-1mln-records.sh 1000
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | tbl | rt |
- +-------+------+
- +----------+
- | count(*) |
- +----------+
- | 1000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 15 PRO' WHERE id = 101; SELECT * FROM tbl WHERE id = 101\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 101
- model: iPhone 15 PRO
- storage_capacity: 256
- color: silver
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- date_added: 2224442480
- product_codes: 1,2,3
- values: 523456764345678976,9223372036854775807
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: 0.773448,0.312478,0.137971,0.459821
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/data_dir = \/var\/lib\/manticore/a\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv --skip=manticoresoftware/buddy-plugin-replace' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:18.995 2026] [43] watchdog: main process 44 forked ok
+ [Sun Mar 15 09:48:18.995 2026] [44] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:18.996 2026] [43] watchdog: main process 44 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99 WHERE id = 117; select * from tbl WHERE id = 117;"
––– output –––
- ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET price =15000.99 WHERE id = 117'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-replace"
––– output –––
- Package: manticoresoftware/buddy-plugin-replace-select
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
- Package: manticoresoftware/buddy-plugin-alter-rename-table
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2001(f text, s string); insert into index2001 values(01,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-----------+------+
- | index2001 | rt |
- | tbl | rt |
- +-----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2001 RENAME new_index2001;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | tbl | rt |
- +---------------+------+
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/buddy_path =/c\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv --skip=manticoresoftware/buddy-plugin-alter-rename-table --skip=manticoresoftware/buddy-plugin-replace' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:29.728 2026] [65] watchdog: main process 66 forked ok
+ [Sun Mar 15 09:48:29.728 2026] [66] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:29.729 2026] [65] watchdog: main process 66 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE new_index2001 RENAME new_index2002;"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting '=' near 'new_index2002'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | tbl | rt |
- +---------------+------+
––– input –––
stdbuf -oL searchd --stopwait 2>&1 | grep -i 'SIGTERM'
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sed -i '/buddy_path =/c\ buddy_path = manticore-executor -n /usr/share/manticore/modules/manticore-buddy/src/main.php --log-level=debugv' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:40.239 2026] [82] watchdog: main process 83 forked ok
+ [Sun Mar 15 09:48:40.239 2026] [83] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:40.240 2026] [82] watchdog: main process 83 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW BUDDY PLUGINS\G;" | grep "manticoresoftware/buddy-plugin-alter-rename-table"
––– output –––
- Package: manticoresoftware/buddy-plugin-alter-rename-table
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE new_index2001 RENAME new_index2002;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2002 | rt |
- | tbl | rt |
- +---------------+------+test/clt-tests/buddy-plugins/test-prometheus-exporter.rec––– input –––
export SEARCHD_FLAGS="--iostats --cpustats"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:56.954 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:56.954 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:56.955 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s 0:9308/metrics > /tmp/exporter_unfiltered_output.txt
––– output –––
OK
––– input –––
cat /tmp/exporter_unfiltered_output.txt | grep -e "^manticore" | cut -d" " -f1 | sed 's/^manticore_//' | sed 's/qcache_thresh_microseconds/qcache_thresh_msec/' | sort > /tmp/exporter_output.txt
––– output –––
OK
––– input –––
searchd --iostats --cpustats --status | cut -d":" -f1 | tail -n +10 | sort > /tmp/searchd_output.txt
––– output –––
OK
––– input –––
ls -1 /tmp | grep -E "^(exporter|searchd).*\.txt$"
––– output –––
OK
––– input –––
cat /tmp/exporter_unfiltered_output.txt | grep "Warning"
––– output –––
OK
––– input –––
while read -r line; do grep -q "^$line" /tmp/exporter_output.txt || echo "$line"; done < /tmp/searchd_output.txt
––– output –––
OK
––– input –––
echo "new-option" >> /tmp/searchd_output.txt
––– output –––
OK
––– input –––
while read -r line; do grep -q "^$line" /tmp/exporter_output.txt || echo "$line"; done < /tmp/searchd_output.txt
––– output –––
OKtest/clt-tests/bugs/1335-test-issue.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
php ./test/clt-tests/scripts/issue-1335-dump.php 10000 30 800000
––– output –––
- finished inserting
+ Fatal error: Uncaught mysqli_sql_exception: Connection refused in /.clt/test/clt-tests/scripts/issue-1335-dump.php:54
- %{NUMBER} docs per sec
+ Stack trace:
+ #0 /.clt/test/clt-tests/scripts/issue-1335-dump.php(54): mysqli_connect('127.0.0.1', '', Object(SensitiveParameterValue), '', 9306)
+ #1 {main}
+ thrown in /.clt/test/clt-tests/scripts/issue-1335-dump.php on line 54
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): %{NUMBER}
––– input –––
timeout 10 mysql -h0 -P9306 -e "select * from test where MATCH('@street walnut blvd') and country='US'\G;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 2. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 3. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 4. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 5. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 6. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 7. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 8. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 9. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 10. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 11. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 12. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 13. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 14. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 15. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 16. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 17. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 18. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 19. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: US
- *************************** 20. row ***************************
- id: %{NUMBER}
- street: %{NUMBER} Walnut Blvd
- country: UStest/clt-tests/buddy-plugins/test-inconsistent-comunication-with-buddy.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:42.969 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:42.970 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:42.970 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
OK
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20TABLES"; echo
––– output –––
- [{
- "columns":[{"Table":{"type":"string"}},{"Type":{"type":"string"}}],
- "data":[
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20VARIABLES"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"autocommit","Value":"%{NUMBER}"},
- {"Variable_name":"auto_optimize","Value":"%{NUMBER}"},
- {"Variable_name":"optimize_cutoff","Value":"%{NUMBER}"},
- {"Variable_name":"collation_connection","Value":"libc_ci"},
- {"Variable_name":"query_log_format","Value":"sphinxql"},
- {"Variable_name":"session_read_only","Value":"%{NUMBER}"},
- {"Variable_name":"log_level","Value":"info"},
- {"Variable_name":"max_allowed_packet","Value":"134217728"},
- {"Variable_name":"character_set_client","Value":"utf8"},
- {"Variable_name":"character_set_connection","Value":"utf8"},
- {"Variable_name":"grouping_in_utc","Value":"%{NUMBER}"},
- {"Variable_name":"timezone","Value":"UTC"},
- {"Variable_name":"last_insert_id","Value":"0"},
- {"Variable_name":"pseudo_sharding","Value":"%{NUMBER}"},
- {"Variable_name":"secondary_indexes","Value":"%{NUMBER}"},
- {"Variable_name":"accurate_aggregation","Value":"%{NUMBER}"},
- {"Variable_name":"distinct_precision_threshold","Value":"3500"},
- {"Variable_name":"threads_ex_effective","Value":""},
- {"Variable_name":"cluster_user","Value":"cluster"},
- {"Variable_name":"wait_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"interactive_timeout","Value":"%{NUMBER}"},
- {"Variable_name":"thread_stack","Value":"%{NUMBER}"},
- {"Variable_name":"threads_ex","Value":""},
- {"Variable_name":"user","Value":""}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20META"; echo
––– output –––
- [{
- "columns":[{"Variable_name":{"type":"string"}},{"Value":{"type":"string"}}],
- "data":[
- {"Variable_name":"total","Value":"%{NUMBER}"},
- {"Variable_name":"total_found","Value":"%{NUMBER}"},
- {"Variable_name":"total_relation","Value":"eq"},
- {"Variable_name":"time","Value":"#!/[0-9]{1}.[0-9]{3}/!#"}
- ],
- "total":%{NUMBER},
- "error":"",
- "warning":""
- }]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20QUERIES" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "id": {
- "type": "long long"
- }
- },
- {
- "query": {
- "type": "string"
- }
- },
- {
- "time": {
- "type": "string"
- }
- },
- {
- "protocol": {
- "type": "string"
- }
- },
- {
- "host": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!#",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- },
- {
- "id": %{NUMBER},
- "query": "#!/[a-zA-Z\s\_]+/!#",
- "time": "%{NUMBER}#!/(s|ms|us)/!# ago",
- "protocol": "http",
- "host": "127.0.0.1:%{NUMBER}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?mode=raw" -d "query=SHOW VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?mode=raw&query=SHOW%20VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s -X POST "http://localhost:9308/sql?raw_response=true" -d "query=SHOW VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]
––– input –––
curl -s "http://localhost:9308/sql?raw_response=true&query=SHOW%20VERSION" | jq '.[0].data |= sort_by(.id)'; echo
––– output –––
- [
- {
- "total": %{NUMBER},
- "error": "",
- "warning": "",
- "columns": [
- {
- "Component": {
- "type": "string"
- }
- },
- {
- "Version": {
- "type": "string"
- }
- }
- ],
- "data": [
- {
- "Component": "Daemon",
- "Version": "%{VERSION}"
- },
- {
- "Component": "Columnar",
- "Version": "columnar %{VERSION}"
- },
- {
- "Component": "Secondary",
- "Version": "secondary %{VERSION}"
- },
- {
- "Component": "Knn",
- "Version": "knn %{VERSION}"
- },
- {
- "Component": "Embeddings",
- "Version": "embeddings #!/([0-9]+\.[0-9]+\.[0-9]+)/!#"
- },
- {
- "Component": "Buddy",
- "Version": "buddy %{VERSION}"
- }
- ]
- }
- ]test/clt-tests/buddy-plugins/test-fuzzy-trailing-semicolon.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -P9306 -h0 -e "drop table if exists t; create table t(f text);"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(id, f) VALUES (1, 'ящик'), (2, 'коробка');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s "0:9308/sql?mode=raw" -d "select * from t where match('ящик') option fuzzy=1;"; echo $?
––– output –––
- {"error":"Fuzzy search requires min_infix_len to be set"}0
+ 7
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS t; CREATE TABLE t(f TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(id, f) VALUES (1, 'ящик'), (2, 'коробка');"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
curl -s "0:9308/sql?mode=raw" -d "select * from t where match('ящик') option fuzzy=1;"; echo $?
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"f":{"type":"string"}}],"data":[{"id":1,"f":"ящик"}]}]0
+ 7test/clt-tests/bugs/3037-secondary-indexes-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load --quiet --json --port=9306 --init="CREATE TABLE task (id BIGINT, status UINT, enddatetime TIMESTAMP, isoverdue BOOL)" --load="INSERT INTO task (id, status, enddatetime, isoverdue) VALUES (<increment>, <int/1/8>, <int/1577836800/1672531200>, 0)" --batch-size=1000 --threads=4 --total=10000 > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "FLUSH RAMCHUNK task;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "OPTIMIZE TABLE task OPTION cutoff=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -P9306 -h0 -e "SHOW TABLE task STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 1 |
- +---------------+-------+
––– input –––
mysql -P9306 -h0 -e "DESCRIBE task;"
––– output –––
- +-------------+-----------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +-------------+-----------+------------+
- | id | bigint | |
- | status | uint | |
- | enddatetime | timestamp | |
- | isoverdue | bool | |
- +-------------+-----------+------------+
––– input –––
mysql -P9306 -h0 -e "SET GLOBAL secondary_indexes=1; select id,status from task where isOverdue = 0 and status not in (1,4,5,6,7,8) ORDER BY id ASC LIMIT 10 /*+ SecondaryIndex(status) */; show meta;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | status |
- +------+--------+
- | 5 | 2 |
- | 7 | 3 |
- | 10 | 3 |
- | 14 | 2 |
- | 17 | 2 |
- | 20 | 3 |
- | 33 | 2 |
- | 36 | 2 |
- | 37 | 2 |
- | 38 | 2 |
- +------+--------+
- +----------------+------------------------------+
- | Variable_name | Value |
- +----------------+------------------------------+
- | total | %{NUMBER} |
- | total_found | %{NUMBER} |
- | total_relation | eq |
- | time | %{NUMBER}.%{NUMBER} |
- | index | status:SecondaryIndex (100%) |
- +----------------+------------------------------+
––– input –––
mysql -P9306 -h0 -e "SET GLOBAL secondary_indexes=0; select id,status from task where isOverdue = 0 and status not in (1,4,5,6,7,8) ORDER BY id ASC LIMIT 10 /*+ SecondaryIndex(status) */; show meta;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | status |
- +------+--------+
- | 5 | 2 |
- | 7 | 3 |
- | 10 | 3 |
- | 14 | 2 |
- | 17 | 2 |
- | 20 | 3 |
- | 33 | 2 |
- | 36 | 2 |
- | 37 | 2 |
- | 38 | 2 |
- +------+--------+
- +----------------+------------------------------------------------------------------------------------------------------------------------------+
- | Variable_name | Value |
- +----------------+------------------------------------------------------------------------------------------------------------------------------+
- | warning | table task: hint error: secondary indexes are disabled; hint error: requested hint type not supported for attribute 'status' |
- | total | %{NUMBER} |
- | total_found | %{NUMBER} |
- | total_relation | eq |
- | time | %{NUMBER}.%{NUMBER} |
- +----------------+------------------------------------------------------------------------------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/vector-knn/test-knn-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:49:57.309 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:49:57.309 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:49:57.310 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "create table test ( title text, image_vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2' );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into test values ( 1, 'yellow bag', (0.653448,0.192478,0.017971,0.339821) ), ( 2, 'white bag', (-0.148894,0.748278,0.091892,-0.095406) );"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from test where knn ( image_vector, 5, (0.286569,-0.031816,0.066684,0.032926), {ef=2000} );"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 1 | 0.28146550 |
- | 2 | 0.81527930 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from test where knn ( image_vector, 5, 1 );"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 2 | 1.14755321 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "select * from test where knn ( image_vector, 5, 1 );"
––– output –––
- +------+-----------+---------------------------------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | image_vector | @knn_dist |
- +------+-----------+---------------------------------------+------------+
- | 2 | white bag | -0.148894,0.748278,0.091892,-0.095406 | 1.14755321 |
- +------+-----------+---------------------------------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(*) from test where knn ( image_vector, 5, 1 );"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, model TEXT, color TEXT, sold BOOL, date_added BIGINT, storage_capacity UINT, release_year UINT, price FLOAT, discounted_price FLOAT, product_codes JSON, values JSON, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test (id, model, color, sold, date_added, storage_capacity, release_year, price, discounted_price, product_codes, values, additional_info, vector) VALUES (1, 'Model_1', 'Color_1', 1, 1620590570251, 512, 2022, 654.19, 855.34, '[81,56,60]', '[96,389,27]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.1, 0.2, 0.3, 0.4)), (2, 'Model_2', 'Color_2', 1, 1689374130160, 128, 2020, 663.70, 767.99, '[12,39,30]', '[226,305,123]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.286569, -0.031816, 0.066684, 0.032926)), (3, 'Model_3', 'Color_3', 0, 1640782021529, 512, 2020, 676.46, 847.08, '[62,13,4]', '[707,601,608]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.5, 0.7, -0.1, 0.2)), (4, 'Model_4', 'Color_4', 0, 1615319697581, 128, 2020, 424.23, 883.90, '[98,96,89]', '[166,252,510]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.7, -0.8, 0.1, -0.2)), (5, 'Model_5', 'Color_5', 1, 1671157942660, 128, 2021, 1173.29, 977.33, '[27,12,37]', '[988,87,21]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.3, 0.4, 0.5, 0.6)), (6, 'Model_6', 'Color_6', 0, 1609876342571, 256, 2021, 755.99, 665.49, '[5,15,25]', '[15,100,500]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.2, 0.4, -0.6, 0.8)), (7, 'Model_7', 'Color_7', 1, 1648765432160, 64, 2019, 299.99, 199.99, '[77,88,99]', '[99,888,555]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.5, -0.3, 0.9, -0.1)), (8, 'Model_8', 'Color_8', 0, 1654876543130, 256, 2019, 800.99, 699.99, '[22,33,44]', '[66,333,999]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.8, 0.6, 0.2, -0.4)), (9, 'Model_9', 'Color_9', 1, 1631567882541, 128, 2022, 499.99, 399.99, '[11,22,33]', '[111,222,333]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (-0.1, 0.3, -0.5, 0.7)), (10, 'Model_10', 'Color_10', 0, 1678956543120, 512, 2022, 1299.99, 1099.99, '[9,8,7]', '[555,444,333]', '{\"features\": [\"Feature_1\", \"Feature_2\", \"Feature_3\"]}', (0.9, 0.1, 0.8, -0.2));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 5 | 0.16000001 |
- | 2 | 0.27772635 |
- | 9 | 0.78000003 |
- | 3 | 0.81000006 |
- | 7 | 1.020000 |
- | 6 | 1.100000 |
- | 10 | 1.260000 |
- | 8 | 1.300000 |
- | 4 | 1.75999987 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, knn_dist() FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | knn_dist() |
- +------+------------+
- | 5 | 0.16000001 |
- | 2 | 0.27772635 |
- | 9 | 0.78000003 |
- | 3 | 0.81000006 |
- | 7 | 1.020000 |
- | 6 | 1.100000 |
- | 10 | 1.260000 |
- | 8 | 1.300000 |
- | 4 | 1.75999987 |
- +------+------------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM knn_test WHERE knn(vector, 5, 1)\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 5
- model: Model_5
- color: Color_5
- sold: 1
- date_added: 1671157942660
- storage_capacity: 128
- release_year: 2021
- price: 1173.290039
- discounted_price: 977.330017
- product_codes: [27,12,37]
- values: [988,87,21]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.300000,0.400000,0.500000,0.600000
- @knn_dist: 0.16000001
- *************************** 2. row ***************************
- id: 2
- model: Model_2
- color: Color_2
- sold: 1
- date_added: 1689374130160
- storage_capacity: 128
- release_year: 2020
- price: 663.700012
- discounted_price: 767.989990
- product_codes: [12,39,30]
- values: [226,305,123]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.286569,-0.031816,0.066684,0.032926
- @knn_dist: 0.27772635
- *************************** 3. row ***************************
- id: 9
- model: Model_9
- color: Color_9
- sold: 1
- date_added: 1631567882541
- storage_capacity: 128
- release_year: 2022
- price: 499.989990
- discounted_price: 399.989990
- product_codes: [11,22,33]
- values: [111,222,333]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.100000,0.300000,-0.500000,0.700000
- @knn_dist: 0.78000003
- *************************** 4. row ***************************
- id: 3
- model: Model_3
- color: Color_3
- sold: 0
- date_added: 1640782021529
- storage_capacity: 512
- release_year: 2020
- price: 676.460022
- discounted_price: 847.080017
- product_codes: [62,13,4]
- values: [707,601,608]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.500000,0.700000,-0.100000,0.200000
- @knn_dist: 0.81000006
- *************************** 5. row ***************************
- id: 7
- model: Model_7
- color: Color_7
- sold: 1
- date_added: 1648765432160
- storage_capacity: 64
- release_year: 2019
- price: 299.989990
- discounted_price: 199.990005
- product_codes: [77,88,99]
- values: [99,888,555]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.500000,-0.300000,0.900000,-0.100000
- @knn_dist: 1.020000
- *************************** 6. row ***************************
- id: 6
- model: Model_6
- color: Color_6
- sold: 0
- date_added: 1609876342571
- storage_capacity: 256
- release_year: 2021
- price: 755.989990
- discounted_price: 665.489990
- product_codes: [5,15,25]
- values: [15,100,500]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: -0.200000,0.400000,-0.600000,0.800000
- @knn_dist: 1.100000
- *************************** 7. row ***************************
- id: 10
- model: Model_10
- color: Color_10
- sold: 0
- date_added: 1678956543120
- storage_capacity: 512
- release_year: 2022
- price: 1299.989990
- discounted_price: 1099.989990
- product_codes: [9,8,7]
- values: [555,444,333]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.900000,0.100000,0.800000,-0.200000
- @knn_dist: 1.260000
- *************************** 8. row ***************************
- id: 8
- model: Model_8
- color: Color_8
- sold: 0
- date_added: 1654876543130
- storage_capacity: 256
- release_year: 2019
- price: 800.989990
- discounted_price: 699.989990
- product_codes: [22,33,44]
- values: [66,333,999]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.800000,0.600000,0.200000,-0.400000
- @knn_dist: 1.300000
- *************************** 9. row ***************************
- id: 4
- model: Model_4
- color: Color_4
- sold: 0
- date_added: 1615319697581
- storage_capacity: 128
- release_year: 2020
- price: 424.230011
- discounted_price: 883.900024
- product_codes: [98,96,89]
- values: [166,252,510]
- additional_info: {"features":["Feature_1","Feature_2","Feature_3"]}
- vector: 0.700000,-0.800000,0.100000,-0.200000
- @knn_dist: 1.75999987
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test WHERE knn(vector, 5, 1);"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 10 |
- +----------+test/clt-tests/vector-knn/test-knn-validation.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Manticore started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore started!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, title TEXT, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test VALUES (1, 'first', (0.1, 0.2, 0.3, 0.4)), (2, 'second', (0.5, 0.6, 0.7, 0.8)), (3, 'third', (0.9, 0.1, 0.2, 0.3));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4));"
––– output –––
- +------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id |
- +------+
- | 1 |
- | 2 |
- | 3 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, -1, (0.1, 0.2, 0.3, 0.4));" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: k parameter must be positive near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {ef=-100});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'ef' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {oversampling=-2.0});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'oversampling' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 0, (0.1, 0.2, 0.3, 0.4));" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: k parameter must be positive near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM knn_test WHERE knn(vector, 2, (0.1, 0.2, 0.3, 0.4), {oversampling=0});" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: P01: Unable to parse KNN option 'oversampling' near ')'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2}}' | python3 -m json.tool | grep '"total"'
––– output –––
- "total": 3,
+ Expecting value: line 1 column 1 (char 0)
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":-1}}'
––– output –––
- {"error":"k parameter must be positive"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"ef":-100}}'
––– output –––
- {"error":"ef parameter must be non-negative"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"oversampling":-2.0}}'
––– output –––
- {"error":"oversampling parameter must be >= 1.0"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":0}}'
––– output –––
- {"error":"k parameter must be positive"}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"ef":0}}'
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":3,"total_relation":"eq","hits":[{"_id":1,"_score":1,"_knn_dist":0.000000,"_source":{"title":"first","vector":[0.100000,0.200000,0.300000,0.400000]}},{"_id":2,"_score":1,"_knn_dist":0.64000005,"_source":{"title":"second","vector":[0.500000,0.600000,0.700000,0.800000]}},{"_id":3,"_score":1,"_knn_dist":0.66999990,"_source":{"title":"third","vector":[0.900000,0.100000,0.200000,0.300000]}}]}}
––– input –––
curl -s -X POST http://localhost:9308/search -H 'Content-Type: application/json' -d '{"table":"knn_test","knn":{"field":"vector","query_vector":[0.1,0.2,0.3,0.4],"k":2,"oversampling":0}}'
––– output –––
- {"error":"oversampling parameter must be >= 1.0"}test/clt-tests/vector-knn/test-knn-search-by-doc-id.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:08.846 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:50:08.846 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:08.847 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
curl -s localhost:9308/cli -d "create table test ( test_vector float_vector knn_type='hnsw' knn_dims='2' hnsw_similarity='l2' )" > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s localhost:9308/cli -d 'insert into test values ( 2, (0.2,0.3) ), ( 3, (0.2,0.7) ), ( 4, (0.3,0.5) ), ( 5, (0.5,0.5) ), ( 6, (0.7,0.2) ), ( 10, (0.9,0.9) )' > /dev/null 2>&1; echo $?
––– output –––
- 0
+ 7
––– input –––
curl -s localhost:9308/search -d '{"index":"test","knn":{"field":"test_vector","doc_id":3,"k":5}}'; echo $?
––– output –––
- {"took":%{NUMBER},"timed_out":false,"hits":{"total":%{NUMBER},"total_relation":"eq","hits":[{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]+/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{1}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}},{"_id":%{NUMBER},"_score":%{NUMBER},"_knn_dist":#!/[0-9]{1}.[0-9]{2}/!#,"_source":{"test_vector":[#!/[0-9]{1}.[0-9],[0-9]{1}.[0-9]/!#]}}]}}0
+ 7test/clt-tests/test-configuration/timezone.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: #!/[0-9a-zA-Z]\w+/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select curtime()\G" | awk 'NR>1 {print $2}' > /tmp/utc.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cat /tmp/utc.txt
––– output –––
- #!/\d+:\d+:\d+/!#
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
mysql -h0 -P9306 -e "set global timezone='UTC';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: UTC
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Bangkok';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select curtime()\G" | awk 'NR>1 {print $2}' > /tmp/bkk.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cat /tmp/bkk.txt
––– output –––
- #!/\d+:\d+:\d+/!#
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Bangkok
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select now(), curtime(), curdate(), utc_time(), utc_timestamp();"
––– output –––
- +------------+-----------+------------+------------+---------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | now() | curtime() | curdate() | utc_time() | utc_timestamp() |
- +------------+-----------+------------+------------+---------------------+
- | #!/\d+/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2}/!# | #!/\d{2}:\d{2}:\d{2}/!# | #!/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/!# |
- +------------+-----------+------------+------------+---------------------+
––– input –––
[ $(( ($(date -d "$(cat /tmp/bkk.txt)" +%s) - $(date -d "$(cat /tmp/utc.txt)" +%s) + 43200) % 86400 - 43200 >= 25200 )) ] && echo "At least 7 hours apart" || echo "Less than 7 hours apart"
––– output –––
OK
––– input –––
cp /etc/manticoresearch/manticore.conf /tmp/manticore.conf.backup
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=Asia/Tokyo && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Tokyo
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as tokyo_hour\G" | grep "tokyo_hour:" | awk '{print $2}' > /tmp/tokyo_hour.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=UTC && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: UTC
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as utc_hour\G" | grep "utc_hour:" | awk '{print $2}' > /tmp/tz_utc_hour.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
cp -P /etc/localtime /tmp/localtime.backup
––– output –––
OK
––– input –––
cp /etc/timezone /tmp/timezone.backup
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
ln -snf /usr/share/zoneinfo/Asia/Singapore /etc/localtime && echo "Asia/Singapore" > /etc/timezone
––– output –––
OK
––– input –––
unset TZ && searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Singapore
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
ln -snf /usr/share/zoneinfo/Europe/London /etc/localtime && echo "Europe/London" > /etc/timezone
––– output –––
OK
––– input –––
searchd --config /etc/manticoresearch/manticore.conf > /dev/null 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Europe/London
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Europe/London works correctly from system files"
––– output –––
OK
––– input –––
searchd --stopwait 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
cp /etc/manticoresearch/manticore.conf /tmp/manticore_tz.conf
––– output –––
OK
––– input –––
sed -i '/^searchd {/a\ timezone = America/New_York' /tmp/manticore_tz.conf
––– output –––
OK
––– input –––
searchd --config /tmp/manticore_tz.conf 2>&1 | head -2 | grep "Using time zone"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: America/New_York
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait --config /tmp/manticore_tz.conf 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
export TZ=Africa/Cairo
––– output –––
OK
––– input –––
ln -snf /usr/share/zoneinfo/Australia/Sydney /etc/localtime && echo "Australia/Sydney" > /etc/timezone
––– output –––
OK
––– input –––
searchd --config /tmp/manticore_tz.conf 2>&1 | head -2 | grep "Using time zone"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: America/New_York
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Priority test: Config (America/New_York) overrides TZ (Africa/Cairo) and system (Australia/Sydney)"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "set global timezone='UTC';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(1615787586) as h_utc\G" | grep "h_utc:" | awk '{print $2}' > /tmp/hour_utc.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Tokyo';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(1615787586) as h_tokyo\G" | grep "h_tokyo:" | awk '{print $2}' > /tmp/hour_tokyo.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
UTC_H=$(cat /tmp/hour_utc.txt)
––– output –––
OK
––– input –––
TOKYO_H=$(cat /tmp/hour_tokyo.txt)
––– output –––
OK
––– input –––
DIFF=$(( (TOKYO_H - UTC_H + 24) % 24 ))
––– output –––
OK
––– input –––
if [ $DIFF -eq 9 ]; then echo "HOUR(timestamp) works: Tokyo is UTC+9"; else echo "HOUR() error: diff is $DIFF, expected 9"; fi
––– output –––
- HOUR(timestamp) works: Tokyo is UTC+9
+ HOUR() error: diff is 0, expected 9
––– input –––
mysql -h0 -P9306 -e "set global timezone='GMT';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: GMT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='EST5EDT';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: EST5EDT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "set global timezone='Asia/Kolkata';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "show variables like 'timezone'\G" | grep Value
––– output –––
- Value: Asia/Kolkata
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select hour(now()) as kolkata_h, minute(now()) as kolkata_m\G" | grep -E "kolkata_h:|kolkata_m:" | awk '{print $2}' | tr '\n' ':' | sed 's/:$//' > /tmp/kolkata_time.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
echo "Kolkata (UTC+5:30) time: $(cat /tmp/kolkata_time.txt)"
––– output –––
- #!/Kolkata \(UTC\+5:30\) time: .*/!#
+ Kolkata (UTC+5:30) time:
––– input –––
searchd --stopwait --config /tmp/manticore_tz.conf 2>&1 | grep "successfully sent SIGTERM"
––– output –––
- [#!/[0-9a-zA-Z\:\.\s]+/!#] [#!/[0-9]+/!#] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
mv /tmp/localtime.backup /etc/localtime
––– output –––
OK
––– input –––
mv /tmp/timezone.backup /etc/timezone
––– output –––
OK
––– input –––
mv /tmp/manticore.conf.backup /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /tmp/manticore_tz.conf /tmp/*.txt
––– output –––
OKtest/clt-tests/vector-knn/tets-insert-knn-errors.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:31.724 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:50:31.725 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:31.725 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- ERROR 1064 (42000) at line 1: row 1, column 3: incompatible value specified for a float vector column
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test"
––– output –––
- +----------+----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +----------+----------------------------------------------------------------------+
- | knn_test | CREATE TABLE knn_test (
- id bigint,
- model text,
- vector float_vector
- ) |
- +----------+----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test2 (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test2 (id, model, vector) VALUES (1, 'Model_1', (0.286569,-0.031816,0.066684,0.032926))"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test2 WHERE knn(vector, 10, 1)"
––– output –––
- ERROR 1064 (42000) at line 1: table knn_test2: KNN index not enabled for attribute 'vector'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test2"
––– output –––
- +-----------+-----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-----------------------------------------------------------------------+
- | knn_test2 | CREATE TABLE knn_test2 (
- id bigint,
- model text,
- vector float_vector
- ) |
- +-----------+-----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test3 (id BIGINT, model TEXT, vector float_vector)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test3 (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- ERROR 1064 (42000) at line 1: row 1, column 3: incompatible value specified for a float vector column
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test3 WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test3"
––– output –––
- +-----------+-----------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-----------------------------------------------------------------------+
- | knn_test3 | CREATE TABLE knn_test3 (
- id bigint,
- model text,
- vector float_vector
- ) |
- +-----------+-----------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test4 (id BIGINT, model TEXT, vector int)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test4 (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test4 WHERE knn(vector, 10, 1)"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test4"
––– output –––
- +-----------+------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+------------------------------------------------------------------+
- | knn_test4 | CREATE TABLE knn_test4 (
- id bigint,
- model text,
- vector integer
- ) |
- +-----------+------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE knn_test5 (id BIGINT, model TEXT, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "INSERT INTO knn_test5 (id, model, vector) VALUES (1, 'Model_1', (0.9012, 0.2126, 0.2879, 0.7552))"; echo $?
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM knn_test5 WHERE knn(vector, 10, 1)"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 1 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW CREATE TABLE knn_test5"
––– output –––
- +-----------+-------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Create Table |
- +-----------+-------------------------------------------------------------------------------------------------------------------------+
- | knn_test5 | CREATE TABLE knn_test5 (
- id bigint,
- model text,
- vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='L2'
- ) |
- +-----------+-------------------------------------------------------------------------------------------------------------------------+test/clt-tests/test-configuration/test-writing-binlog-during-parallel-queries.rec––– input –––
set -b +m; sed -i '/data_dir = \/var\/lib\/manticore/a\ binlog_common = 1\n' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
for i in {1..10}; do rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null; if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi; mysql -P9306 -h0 -e "drop table if exists t1"; mysql -P9306 -h0 -e "drop table if exists t2"; for n in 1 2; do mysql -P9306 -h0 -e "create table t${n}"; done; sleep 1; for n in 1 2; do mysql -P9306 -h0 -e "insert into t${n} values(0)" &>/dev/null; done; wait 5>/dev/null 2>&1; echo $?; mysql -P9306 -h0 -e "show tables\G; select * from t1\G; select * from t2\G;"; mysql -P9306 -h0 -e "flush logs"; done
––– output –––
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ Timeout or failed!
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ Timeout or failed!
- *************************** 2. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ 0
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: %{NUMBER}
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Accepting connections!
+ Timeout or failed!
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Table: t1
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 2. row ***************************
+ 0
- Table: t2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Type: rt
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER}
- Accepting connections!
- 0
- *************************** 1. row ***************************
- Table: t1
- Type: rt
- *************************** 2. row ***************************
- Table: t2
- Type: rt
- *************************** 1. row ***************************
- id: %{NUMBER}
- *************************** 1. row ***************************
- id: %{NUMBER} |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/bugs/3844-max-ft-field-crash.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(s text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t values(1, 'a');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: MAX() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: AVG() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: MIN() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(s) from t;"
––– output –––
- ERROR 1064 (42000) at line 1: table t: SUM() cannot be used on text/string column 's'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists t_str_rowwise; create table t_str_rowwise(category_id int, name string, price int);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t_str_rowwise(id, category_id, name, price) values(1, 1, 'apple', 10), (2, 1, 'banana', 15), (3, 2, 'apple', 20), (4, 2, 'cherry', 25), (5, 1, 'date', 30);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(name) from t_str_rowwise;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_rowwise: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select name, count(*), sum(price), max(price), min(price), avg(price) from t_str_rowwise group by name order by count(*) desc;"
––– output –––
- +--------+----------+------------+------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name | count(*) | sum(price) | max(price) | min(price) | avg(price) |
- +--------+----------+------------+------------+------------+------------+
- | apple | 2 | 30 | 20 | 10 | 15.000000 |
- | banana | 1 | 15 | 15 | 15 | 15.000000 |
- | cherry | 1 | 25 | 25 | 25 | 25.000000 |
- | date | 1 | 30 | 30 | 30 | 30.000000 |
- +--------+----------+------------+------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(distinct name) from t_str_rowwise;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(distinct name) |
- +----------------------+
- | 4 |
- +----------------------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t_str_columnar; create table t_str_columnar(category_id int, name string, price int) engine='columnar';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into t_str_columnar(id, category_id, name, price) values(1, 1, 'apple', 10), (2, 1, 'banana', 15), (3, 2, 'apple', 20), (4, 2, 'cherry', 25), (5, 1, 'date', 30);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select max(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select min(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select avg(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select sum(name) from t_str_columnar;"
––– output –––
- ERROR 1064 (42000) at line 1: table t_str_columnar: can not aggregate non-scalar attribute 'name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "select name, count(*), sum(price), max(price), min(price), avg(price) from t_str_columnar group by name order by count(*) desc;"
––– output –––
- +--------+----------+------------+------------+------------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | name | count(*) | sum(price) | max(price) | min(price) | avg(price) |
- +--------+----------+------------+------------+------------+------------+
- | apple | 2 | 30 | 20 | 10 | 15.000000 |
- | banana | 1 | 15 | 15 | 15 | 15.000000 |
- | cherry | 1 | 25 | 25 | 25 | 25.000000 |
- | date | 1 | 30 | 30 | 30 | 30.000000 |
- +--------+----------+------------+------------+------------+------------+
––– input –––
mysql -h0 -P9306 -e "select count(distinct name) from t_str_columnar;"
––– output –––
- +----------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(distinct name) |
- +----------------------+
- | 4 |
- +----------------------+test/clt-tests/bugs/4009-qcache-secondaryindex-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
manticore-load \
--batch-size=1000 \
--threads=4 \
--total=1000000 \
--init="CREATE TABLE test(id bigint, name text, type int)" \
--load="INSERT INTO test(id,name,type) VALUES(<increment>,'<text/10/100>',<int/1/100>)" \
--quiet > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL qcache_max_bytes=16000000; SET GLOBAL qcache_thresh_msec=1; SET GLOBAL qcache_ttl_sec=180;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard');"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 229322 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW STATUS LIKE 'qcache_hits'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Counter: qcache_hits
- Value: 0
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SHOW STATUS LIKE 'qcache_hits'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Counter: qcache_hits
- Value: %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "SELECT sum(type), count(*) FROM test WHERE MATCH('hard') AND type=5 OPTION max_query_time=1\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- sum(type): %{NUMBER}
- count(*): %{NUMBER}
––– input –––
mysql -h0 -P9306 -e "SELECT sum(type), count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- sum(type): 11260
- count(*): 2252
––– input –––
mysql -h0 -P9306 -e "SET GLOBAL qcache_max_bytes=0;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard');"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 229322 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5 /*+ SecondaryIndex(type) */;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "SELECT count(*) FROM test WHERE MATCH('hard') AND type=5;"
––– output –––
- +----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | count(*) |
- +----------+
- | 2252 |
- +----------+test/clt-tests/bugs/3602-knn-dist-attribute-error.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e 'drop table if exists companysearch;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "create table companysearch(f text, \`embeddings\` float_vector knn_type='hnsw' knn_dims='2' hnsw_similarity='l2');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "insert into companysearch values(1, 'web', (0,0));"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM companysearch WHERE knn(embeddings, 5, (1,1)) AND MATCH('web') OPTION ranker=expr('knn_dist()');"
––– output –––
- ERROR 1064 (42000) at line 1: table companysearch: KNN_DIST() attribute not available in this context
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/bugs/4176-attach-rt-externals.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mkdir -p /var/lib/manticore/ext_rt && \
echo "sweuniq" > /var/lib/manticore/ext_rt/sw_e.txt && \
echo "e1 => e1r" > /var/lib/manticore/ext_rt/wf_e1.txt && \
echo "e2 => e2r" > /var/lib/manticore/ext_rt/wf_e2.txt && \
echo "exce => excex" > /var/lib/manticore/ext_rt/exc_e.txt && \
echo "swauniq" > /var/lib/manticore/ext_rt/sw_a1.txt && \
echo "swauniqb" > /var/lib/manticore/ext_rt/sw_a2.txt && \
echo "a1 => a1r" > /var/lib/manticore/ext_rt/wf_a1.txt && \
echo "exca => excar" > /var/lib/manticore/ext_rt/exc_a.txt && \
echo "swbuniq" > /var/lib/manticore/ext_rt/sw_b1.txt && \
echo "b1 => b1r" > /var/lib/manticore/ext_rt/wf_b1.txt && \
echo "b2 => b2r" > /var/lib/manticore/ext_rt/wf_b2.txt && \
echo "excb => excbr" > /var/lib/manticore/ext_rt/exc_b.txt && \
echo "swcuniq" > /var/lib/manticore/ext_rt/sw_c1.txt && \
echo "swcuniqb" > /var/lib/manticore/ext_rt/sw_c2.txt && \
echo "c1 => c1r" > /var/lib/manticore/ext_rt/wf_c1.txt && \
echo "excc => exccr" > /var/lib/manticore/ext_rt/exc_c.txt && \
echo "swduniq" > /var/lib/manticore/ext_rt/sw_d1.txt && \
echo "d1 => d1r" > /var/lib/manticore/ext_rt/wf_d1.txt && \
echo "d2 => d2r" > /var/lib/manticore/ext_rt/wf_d2.txt && \
echo "excd => excdr" > /var/lib/manticore/ext_rt/exc_d.txt && \
echo "swdstuniq" > /var/lib/manticore/ext_rt/sw_dst.txt && \
echo "dst => dstr" > /var/lib/manticore/ext_rt/wf_dst.txt && \
echo "excdst => excdstr" > /var/lib/manticore/ext_rt/exc_dst.txt && \
echo "swshareduniq" > /var/lib/manticore/ext_rt/sw_shared.txt && \
echo "shared => sharedr" > /var/lib/manticore/ext_rt/wf_shared.txt && \
echo "excshared => excsharedr" > /var/lib/manticore/ext_rt/exc_shared.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_empty (id BIGINT, title TEXT); CREATE TABLE rt_src_empty (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_e.txt' wordforms='/var/lib/manticore/ext_rt/wf_e1.txt, /var/lib/manticore/ext_rt/wf_e2.txt' exceptions='/var/lib/manticore/ext_rt/exc_e.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ATTACH TABLE rt_src_empty TO TABLE rt_dst_empty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if grep -q "sweuniq" /var/lib/manticore/rt_dst_empty/stopwords_chunk*.txt && \
grep -q "e1 => e1r" /var/lib/manticore/rt_dst_empty/wordforms_chunk*.txt && \
grep -q "e2 => e2r" /var/lib/manticore/rt_dst_empty/wordforms_chunk*.txt && \
grep -q "exce => excex" /var/lib/manticore/rt_dst_empty/exceptions_chunk*.txt; then echo OK_EMPTY_CONTENT; else echo FAIL_EMPTY_CONTENT; fi
––– output –––
- OK_EMPTY_CONTENT
+ grep: /var/lib/manticore/rt_dst_empty/stopwords_chunk*.txt: No such file or directory
+ FAIL_EMPTY_CONTENT
––– input –––
if grep -q "stopwords_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta && \
grep -q "wordforms_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta && \
grep -q "exceptions_chunk" /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta; then echo OK_EMPTY_META; else echo FAIL_EMPTY_META; fi
––– output –––
- OK_EMPTY_META
+ grep: /var/lib/manticore/rt_dst_empty/rt_dst_empty.meta: No such file or directory
+ FAIL_EMPTY_META
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_multi (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_a1.txt, /var/lib/manticore/ext_rt/sw_a2.txt' wordforms='/var/lib/manticore/ext_rt/wf_a1.txt' exceptions='/var/lib/manticore/ext_rt/exc_a.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (1, 'a'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_b1.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_b1.txt, /var/lib/manticore/ext_rt/wf_b2.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_b.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (2, 'b'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_c1.txt, /var/lib/manticore/ext_rt/sw_c2.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_c1.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_c.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (3, 'c'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_src_multi STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 3 |
- +-------------+------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_multi (id BIGINT, title TEXT); ATTACH TABLE rt_src_multi TO TABLE rt_dst_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_multi STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 3 |
- +-------------+------+
––– input –––
if grep -q "swauniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swauniqb" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swbuniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swcuniq" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "swcuniqb" /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt && \
grep -q "a1 => a1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "b1 => b1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "b2 => b2r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "c1 => c1r" /var/lib/manticore/rt_dst_multi/wordforms_chunk*.txt && \
grep -q "exca => excar" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt && \
grep -q "excb => excbr" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt && \
grep -q "excc => exccr" /var/lib/manticore/rt_dst_multi/exceptions_chunk*.txt; then echo OK_MULTI_CONTENT; else echo FAIL_MULTI_CONTENT; fi
––– output –––
- OK_MULTI_CONTENT
+ grep: /var/lib/manticore/rt_dst_multi/stopwords_chunk*.txt: No such file or directory
+ FAIL_MULTI_CONTENT
––– input –––
if grep -q "stopwords_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta && \
grep -q "wordforms_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta && \
grep -q "exceptions_chunk" /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta; then echo OK_MULTI_META; else echo FAIL_MULTI_META; fi
––– output –––
- OK_MULTI_META
+ grep: /var/lib/manticore/rt_dst_multi/rt_dst_multi.meta: No such file or directory
+ FAIL_MULTI_META
––– input –––
if for f in /var/lib/manticore/rt_dst_multi/*.sph; do grep -a -q "stopwords_chunk" "$f" || exit 1; done; then echo OK_MULTI_SPH; else echo FAIL_MULTI_SPH; fi
––– output –––
- OK_MULTI_SPH
+ grep: /var/lib/manticore/rt_dst_multi/*.sph: No such file or directory
+ bash: line 85: exit: command not found
+ FAIL_MULTI_SPH
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_multi; DROP TABLE IF EXISTS rt_src_second; DROP TABLE IF EXISTS rt_dst_attach;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_multi (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_a1.txt, /var/lib/manticore/ext_rt/sw_a2.txt' wordforms='/var/lib/manticore/ext_rt/wf_a1.txt' exceptions='/var/lib/manticore/ext_rt/exc_a.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (1, 'a'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_b1.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_b1.txt, /var/lib/manticore/ext_rt/wf_b2.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_b.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (2, 'b'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE rt_src_multi STOPWORDS='/var/lib/manticore/ext_rt/sw_c1.txt, /var/lib/manticore/ext_rt/sw_c2.txt'; ALTER TABLE rt_src_multi WORDFORMS='/var/lib/manticore/ext_rt/wf_c1.txt'; ALTER TABLE rt_src_multi EXCEPTIONS='/var/lib/manticore/ext_rt/exc_c.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO rt_src_multi VALUES (3, 'c'); FLUSH RAMCHUNK rt_src_multi;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_second (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_d1.txt' wordforms='/var/lib/manticore/ext_rt/wf_d1.txt, /var/lib/manticore/ext_rt/wf_d2.txt' exceptions='/var/lib/manticore/ext_rt/exc_d.txt'; INSERT INTO rt_src_second VALUES (4, 'd'); FLUSH RAMCHUNK rt_src_second;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_attach (id BIGINT, title TEXT); ATTACH TABLE rt_src_multi TO TABLE rt_dst_attach; ATTACH TABLE rt_src_second TO TABLE rt_dst_attach;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_attach STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 4 |
- +-------------+------+
––– input –––
if grep -q "swduniq" /var/lib/manticore/rt_dst_attach/stopwords_chunk*.txt && \
grep -q "d1 => d1r" /var/lib/manticore/rt_dst_attach/wordforms_chunk*.txt && \
grep -q "d2 => d2r" /var/lib/manticore/rt_dst_attach/wordforms_chunk*.txt && \
grep -q "excd => excdr" /var/lib/manticore/rt_dst_attach/exceptions_chunk*.txt; then echo OK_ATTACH_CONTENT; else echo FAIL_ATTACH_CONTENT; fi
––– output –––
- OK_ATTACH_CONTENT
+ grep: /var/lib/manticore/rt_dst_attach/stopwords_chunk*.txt: No such file or directory
+ FAIL_ATTACH_CONTENT
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_second; DROP TABLE IF EXISTS rt_dst_nonempty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_second (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_d1.txt' wordforms='/var/lib/manticore/ext_rt/wf_d1.txt, /var/lib/manticore/ext_rt/wf_d2.txt' exceptions='/var/lib/manticore/ext_rt/exc_d.txt'; INSERT INTO rt_src_second VALUES (4, 'd'); FLUSH RAMCHUNK rt_src_second;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_dst_nonempty (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_dst.txt' wordforms='/var/lib/manticore/ext_rt/wf_dst.txt' exceptions='/var/lib/manticore/ext_rt/exc_dst.txt'; INSERT INTO rt_dst_nonempty VALUES (10,'dst'); FLUSH RAMCHUNK rt_dst_nonempty; ATTACH TABLE rt_src_second TO TABLE rt_dst_nonempty;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE rt_dst_nonempty STATUS LIKE 'disk_chunks';" -N -B
––– output –––
- +-------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | disk_chunks | 2 |
- +-------------+------+
––– input –––
if grep -q "swdstuniq" /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt && \
grep -q "swduniq" /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt; then echo OK_NONEMPTY_CONTENT; else echo FAIL_NONEMPTY_CONTENT; fi
––– output –––
- OK_NONEMPTY_CONTENT
+ grep: /var/lib/manticore/rt_dst_nonempty/stopwords_chunk*.txt: No such file or directory
+ FAIL_NONEMPTY_CONTENT
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared VALUES (1,'s1'); FLUSH RAMCHUNK rt_src_shared; INSERT INTO rt_src_shared VALUES (2,'s2'); FLUSH RAMCHUNK rt_src_shared; CREATE TABLE rt_dst_shared (id BIGINT, title TEXT); ATTACH TABLE rt_src_shared TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if [ "$(grep -l 'swshareduniq' /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt | wc -l)" -eq 1 ]; then echo OK_SHARED_DEDUP; else echo FAIL_SHARED_DEDUP; fi
––– output –––
- OK_SHARED_DEDUP
+ grep: /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt: No such file or directory
+ FAIL_SHARED_DEDUP
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS rt_src_shared; DROP TABLE IF EXISTS rt_src_shared2; DROP TABLE IF EXISTS rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared VALUES (1,'s1'); FLUSH RAMCHUNK rt_src_shared; CREATE TABLE rt_dst_shared (id BIGINT, title TEXT); ATTACH TABLE rt_src_shared TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE rt_src_shared2 (id BIGINT, title TEXT) stopwords='/var/lib/manticore/ext_rt/sw_shared.txt' wordforms='/var/lib/manticore/ext_rt/wf_shared.txt' exceptions='/var/lib/manticore/ext_rt/exc_shared.txt'; INSERT INTO rt_src_shared2 VALUES (2,'s2'); FLUSH RAMCHUNK rt_src_shared2; ATTACH TABLE rt_src_shared2 TO TABLE rt_dst_shared;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
if [ "$(grep -l 'swshareduniq' /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt | wc -l)" -eq 1 ]; then echo OK_SHARED_DEDUP_MULTI_SRC; else echo FAIL_SHARED_DEDUP_MULTI_SRC; fi
––– output –––
- OK_SHARED_DEDUP_MULTI_SRC
+ grep: /var/lib/manticore/rt_dst_shared/stopwords_chunk*.txt: No such file or directory
+ FAIL_SHARED_DEDUP_MULTI_SRCtest/clt-tests/bugs/3428-test-having-total-found.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:11.072 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:11.072 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:11.073 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
manticore-load --quiet --json --init="CREATE TABLE test_having (id bigint, category int, price float, quantity int)" --load="INSERT INTO test_having (id, category, price, quantity) VALUES (<increment>, <int/1/200>, <float/10.0/100.0>, <int/1/50>)" --batch-size=1000 --threads=4 --total=10000 > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_having\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- count(*): 10000
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(DISTINCT category) as distinct_categories FROM test_having\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- distinct_categories: 200
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_having ORDER BY id ASC LIMIT 10000;" > /tmp/test_having_data.txt
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
md5sum /tmp/test_having_data.txt
––– output –––
- 9b2930342c90b8f4c4812792e35ba70f /tmp/test_having_data.txt
+ d41d8cd98f00b204e9800998ecf8427e /tmp/test_having_data.txt
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 200
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 5 OFFSET 0\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 1
- cnt: 50
- *************************** 2. row ***************************
- category: 2
- cnt: 51
- *************************** 3. row ***************************
- category: 3
- cnt: 58
- *************************** 4. row ***************************
- category: 4
- cnt: 40
- *************************** 5. row ***************************
- category: 5
- cnt: 47
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 32 ORDER BY category ASC LIMIT 5 OFFSET 5\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 6
- cnt: 47
- *************************** 2. row ***************************
- category: 7
- cnt: 43
- *************************** 3. row ***************************
- category: 8
- cnt: 50
- *************************** 4. row ***************************
- category: 9
- cnt: 64
- *************************** 5. row ***************************
- category: 10
- cnt: 34
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 199
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 10000\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: total_found
- Value: 0
––– input –––
mysql -h0 -P9306 -e "SELECT category, COUNT(*) as cnt FROM test_having GROUP BY category HAVING cnt > 60 ORDER BY category ASC LIMIT 1\G; SHOW META LIKE 'total_found'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- category: 9
- cnt: 64
- *************************** 1. row ***************************
- Variable_name: total_found
- Value: 19test/clt-tests/bugs/3489-fuzzy-option-alias-bug.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:33.556 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:33.556 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:33.557 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_table (id BIGINT, field INT, content TEXT) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_table (id, field, content) VALUES (1, 1, 'test document'), (2, 0, 'best result'), (3, 1, 'west coast');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test');"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- | 0 |
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option2 FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +---------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option2 |
- +---------+
- | 1 |
- | 0 |
- | 1 |
- +---------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS something FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +-----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | something |
- +-----------+
- | 1 |
- | 0 |
- | 1 |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION cutoff=1;"
––– output –––
- +--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | option |
- +--------+
- | 1 |
- +--------+
––– input –––
mysql -h0 -P9306 -e "SELECT id, IF(field = 1, 1, 0) AS option FROM test_table WHERE MATCH('test') OPTION fuzzy=1;"
––– output –––
- +------+--------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | option |
- +------+--------+
- | 1 | 1 |
- | 2 | 0 |
- | 3 | 1 |
- +------+--------+test/clt-tests/bugs/3481-http-update-distributed-table-wrong-cluster-crash.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd --logdebugv > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Manticore started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore started!
+ Timeout or failed!
––– input –––
mysql -v -P9306 -h0 -e "drop table if exists t; create table t(f int); drop table if exists d; CREATE TABLE d type='distributed' agent='127.0.0.1:9312:t'"
––– output –––
- --------------
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- drop table if exists t
- --------------
- --------------
- create table t(f int)
- --------------
- --------------
- drop table if exists d
- --------------
- --------------
- CREATE TABLE d type='distributed' agent='127.0.0.1:9312:t'
- --------------
––– input –––
curl -s -X POST http://localhost:9312/update -d '{"cluster": "unknown_cluster", "table": "d", "id": 2, "doc": {"f": 5}}'
––– output –––
- {"error":{"type":"action_request_validation_exception","reason":"table t: table t: table 't' is not in any cluster, use just 't'","table":"d"},"status":409}test/clt-tests/bugs/3832-fuzzy-cli-json-multiquery.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:55.943 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:55.943 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:55.944 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t(f text) min_infix_len='2';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t(f) values('abcdef');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s localhost:9308/cli_json -d "SELECT f from t where match('abczef') option fuzzy=1; show meta"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"f":{"type":"string"}}],"data":[{"f":"abcdef"}]}]
––– input –––
curl -s localhost:9308/cli_json -d "SELECT * from t where match('abczef') option fuzzy=1; show tables"
––– output –––
- [{"total":1,"error":"","warning":"","columns":[{"id":{"type":"long long"}},{"f":{"type":"string"}}],"data":[{"id":%{NUMBER},"f":"abcdef"}]}] |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/mysqldump/maria/pq-table-mysqldump.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "create table pq(f text) type='percolate'"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e "insert into pq(id, query) values(1, '@f abc'),(2, 'def')"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e "select * from pq"
––– output –––
- +------+--------+------+---------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+
––– input –––
mysqldump -h0 -P9306 manticore 2>/dev/null 1> /tmp/pq-dump.sql
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e 'drop table pq'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -P9306 -h0 -e 'show tables'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 manticore < /tmp/pq-dump.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from pq;'
––– output –––
- +------+--------+------+---------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | query | tags | filters |
- +------+--------+------+---------+
- | 2 | def | | |
- | 1 | @f abc | | |
- +------+--------+------+---------+test/clt-tests/mysqldump/maria/mcl-only-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/random-1m-dump-restore.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
./test/clt-tests/scripts/generate-records.sh 1000000 | mysql -h0 -P9306
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysqldump -h0 -P9306 Manticore 2>/dev/null 1> /tmp/all-databases.sql
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "drop table t"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < /tmp/all-databases.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
- +-------+------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | Table | Type |
- +-------+------+
- | t | rt |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
- +----------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | count(*) |
- +----------+
- | 1000007 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 1 | | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 2 | ' | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 3 | " | 0 | 0.000000 | NULL | | | 0 | 0 | | |
- | 4 | | 0 | 0.000000 | NULL | | ' | 0 | 0 | | |
- | 5 | | 0 | 0.000000 | NULL | | " | 0 | 0 | | |
- | 6 | | 0 | 0.000000 | {"a":"'","b":"","c":"'"} | | | 0 | 0 | | |
- | 7 | | 0 | 0.000000 | {"a":"\"","b":"\"","c":"\""} | | | 0 | 0 | | |
- | 8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 | 912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 538847777 | 1617199777 | 1258482176.000000 |
- | 9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 198907 | 8841452.000000 | {"a":[21374549,321067876],"b":333059460} | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 782785729 | 954464984 | 696490880.000000 |
- | 10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479} | 427690075,1407612830,1714474875 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1649242630 | 308109277 | 27668260.000000 |
- | 11 | bbbbbbbbbbbbbbbbbb | 121311 | 121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb | 1 | 801766056 | 1127147375 | 107321288.000000 |
- | 12 | bbbbbbbbbbbbbb | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017} | 185371603,608681734,1167859658 | bbbbbbbbbbbbbb | 1 | 1213118476 | 2124217000 | 406914176.000000 |
- | 13 | bbbbbbbbbb | 95482 | 898241728.000000 | {"a":[272656722,1663615544],"b":1624186067} | 116478871,552875970,1092517015 | bbbbbbbbbb | 0 | 1239989597 | 551802408 | 152522160.000000 |
- | 14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 68119 | 661707200.000000 | {"a":[94304443,2086306634],"b":543066914} | 578274552,1237733450,2002653905 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1710306734 | 167580149 | 2017031680.000000 |
- | 15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609} | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1518500442 | 1228024866 | 1438869760.000000 |
- | 16 | bbbb | 127656 | 144601936.000000 | {"a":[407695664,2063437019],"b":917328502} | 645985148,1065653647,1744659471 | bbbb | 0 | 314320885 | 1525544836 | 219136976.000000 |
- | 17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902} | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 284197670 | 454491894 | 202294912.000000 |
- | 18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639} | 107468665,411366113,991124073 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 245327580 | 1944713760 | 1201735552.000000 |
- | 19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528} | 24970160,1819190943,2021816520 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1341382959 | 283037034 | 1458644736.000000 |
- | 20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 48474 | 62408120.000000 | {"a":[1200217209,500666982],"b":2116623760} | 328478084,504655829,1689585645 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 920211881 | 229395197 | 1011787776.000000 |
- +------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | f | a | b | j | m | s | e | d | v | fv |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
- | 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045} | 666308965,793633956,1624548711 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 588151338 | 406821193 | 773609408.000000 |
- | 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 73274912.000000 | {"a":[816141442,918325205],"b":2062405755} | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 870968417 | 1475821866 | 1640329728.000000 |
- | 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 854965440 | 592918187 | 285162528.000000 |
- | 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 145746032.000000 | {"a":[1175180019,908317885],"b":714847903} | 941943997,1067162740,1657879898 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 0 | 1621714577 | 1797192220 | 156542576.000000 |
- | 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270} | 137916339,235649611,282680287 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 1163005682 | 1150206046 | 19527630.000000 |
- | 940423 | bbbbbbbbbbb | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421} | 22419487,1048905278,1803379504 | bbbbbbbbbbb | 0 | 236272949 | 1489922324 | 397749184.000000 |
- | 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211} | 322653768,1622545118,1637144759 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 1 | 78946493 | 431047209 | 582783936.000000 |
- +--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+test/clt-tests/mysqldump/maria/no-mcl-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/mysqldump/maria/no-mcl-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-only-multi.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit 20'
––– output –––
- +------+-----------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-----------------+
- | 20 | 96,97,98,99,100 |
- | 19 | 91,92,93,94,95 |
- | 9 | 41,42,43,44,45 |
- | 1 | 1,2,3,4,5 |
- | 2 | 6,7,8,9,10 |
- | 10 | 46,47,48,49,50 |
- | 3 | 11,12,13,14,15 |
- | 11 | 51,52,53,54,55 |
- | 4 | 16,17,18,19,20 |
- | 12 | 56,57,58,59,60 |
- | 13 | 61,62,63,64,65 |
- | 5 | 21,22,23,24,25 |
- | 14 | 66,67,68,69,70 |
- | 6 | 26,27,28,29,30 |
- | 15 | 71,72,73,74,75 |
- | 7 | 31,32,33,34,35 |
- | 16 | 76,77,78,79,80 |
- | 8 | 36,37,38,39,40 |
- | 17 | 81,82,83,84,85 |
- | 18 | 86,87,88,89,90 |
- +------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi'
––– output –––
- +------+-------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+-------------------+
- | 9 | (41,42,43,44,45) |
- | 10 | (46,47,48,49,50) |
- | 11 | (51,52,53,54,55) |
- | 12 | (56,57,58,59,60) |
- | 13 | (61,62,63,64,65) |
- | 14 | (66,67,68,69,70) |
- | 15 | (71,72,73,74,75) |
- | 16 | (76,77,78,79,80) |
- | 17 | (81,82,83,84,85) |
- | 18 | (86,87,88,89,90) |
- | 1 | (1,2,3,4,5) |
- | 2 | (6,7,8,9,10) |
- | 3 | (11,12,13,14,15) |
- | 4 | (16,17,18,19,20) |
- | 5 | (21,22,23,24,25) |
- | 6 | (26,27,28,29,30) |
- | 7 | (31,32,33,34,35) |
- | 8 | (36,37,38,39,40) |
- | 19 | (91,92,93,94,95) |
- | 20 | (96,97,98,99,100) |
- +------+-------------------+test/clt-tests/performance/concurrent-load-search-stats-validation.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:38.936 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:50:38.936 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:38.937 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
manticore-load --host=127.0.0.1 --drop --batch-size=10000 --threads=4 --total=100000 --init="CREATE TABLE test(id bigint, name text, type int)" --load="INSERT INTO test(id,name,type) VALUES(<increment>,'<text/10/100>',<int/1/100>)" --together --threads=1 --total=3000 --load="SELECT * FROM test WHERE MATCH('<text/1/1>')" > /dev/null; echo $?
––– output –––
- 0
+ 1
––– input –––
mysql -P9306 -h0 -e "show table test status like '%search_stats_%'; show status like 'search_stats%'" | grep -c search_stats_ms_avg
––– output –––
- 2
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 0
––– input –––
TABLE_AVG=$(mysql -P9306 -h0 -e "show table test status like '%search_stats_ms_avg%'" | grep search_stats_ms_avg | tr -d '|' | awk '{print $2}' | tr -d ' '); GLOBAL_AVG=$(mysql -P9306 -h0 -e "show status like 'search_stats_ms_avg'" | grep search_stats_ms_avg | tr -d '|' | awk '{print $2}' | tr -d ' '); echo "Table avg: $TABLE_AVG, Global avg: $GLOBAL_AVG"; python3 -c "import sys; table=float('$TABLE_AVG'); global_val=float('$GLOBAL_AVG'); diff_pct=abs(table-global_val)/max(table,global_val)*100 if max(table,global_val) > 0 else 0; print(f'Table stats: {table}ms, Global stats: {global_val}ms, Difference: {diff_pct:.1f}%'); result = 'PASS: Statistics are consistent (within 20% difference)' if table > 0 and global_val > 0 and diff_pct <= 20 else f'INFO: Statistics differ by {diff_pct:.1f}% (exceeds 20% threshold)'; print(result)"
––– output –––
- #!/Table avg: [0-9]+\.[0-9]+, Global avg: [0-9]+\.[0-9]+/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/Table stats: [0-9]+\.[0-9]+ms, Global stats: [0-9]+\.[0-9]+ms, Difference: [0-9]+\.[0-9]+%/!#
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- #!/PASS: Statistics are consistent \(within 20% difference\)|INFO: Statistics differ by [0-9]+\.[0-9]+% \(exceeds 20% threshold\)/!#
+ Table avg: , Global avg:
+ Traceback (most recent call last):
+ File "<string>", line 1, in <module>
+ ValueError: could not convert string to float: ''test/clt-tests/mysqldump/maria/no-mcl-json.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_json'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit 20'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_json'
––– output –––
- +------+---------------------------------------------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+---------------------------------------------------------------------------------------------+
- | 9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
- | 10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
- | 11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
- | 12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
- | 13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
- | 14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
- | 15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
- | 16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
- | 17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
- | 18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
- | 1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
- | 2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
- | 3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
- | 4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
- | 5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
- | 6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
- | 7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
- | 8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
- | 19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
- | 20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
- +------+---------------------------------------------------------------------------------------------+test/clt-tests/mysqldump/maria/mcl-only-multi64.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
apt-get -yqq update > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
apt -yqq install mariadb-server > /dev/null 2>&1; echo $?
––– output –––
OK
––– input –––
mysqldump --version
––– output –––
OK
––– input –––
echo '[mysql]'$'\n''table=TRUE' >> ~/.my.cnf
––– output –––
OK
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-1.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-2.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-3.sql
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi64'
––– output –––
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit 20'
––– output –––
- +------+--------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+--------------------------------------------------------+
- | 20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
- | 19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
- | 9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
- | 1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
- | 2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
- | 10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
- | 3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
- | 11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
- | 4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
- | 12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
- | 13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
- | 5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
- | 14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
- | 6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
- | 15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
- | 7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
- | 16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
- | 8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
- | 17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
- | 18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
- +------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi64'
––– output –––
- +------+----------------------------------------------------------+
+ ERROR 2002 (HY000): Can't connect to server on '0' (115)
- | id | value |
- +------+----------------------------------------------------------+
- | 9 | (1000000041,1000000042,1000000043,1000000044,1000000045) |
- | 10 | (1000000046,1000000047,1000000048,1000000049,1000000050) |
- | 11 | (1000000051,1000000052,1000000053,1000000054,1000000055) |
- | 12 | (1000000056,1000000057,1000000058,1000000059,1000000060) |
- | 13 | (1000000061,1000000062,1000000063,1000000064,1000000065) |
- | 14 | (1000000066,1000000067,1000000068,1000000069,1000000070) |
- | 15 | (1000000071,1000000072,1000000073,1000000074,1000000075) |
- | 16 | (1000000076,1000000077,1000000078,1000000079,1000000080) |
- | 17 | (1000000081,1000000082,1000000083,1000000084,1000000085) |
- | 18 | (1000000086,1000000087,1000000088,1000000089,1000000090) |
- | 1 | (1000000001,1000000002,1000000003,1000000004,1000000005) |
- | 2 | (1000000006,1000000007,1000000008,1000000009,1000000010) |
- | 3 | (1000000011,1000000012,1000000013,1000000014,1000000015) |
- | 4 | (1000000016,1000000017,1000000018,1000000019,1000000020) |
- | 5 | (1000000021,1000000022,1000000023,1000000024,1000000025) |
- | 6 | (1000000026,1000000027,1000000028,1000000029,1000000030) |
- | 7 | (1000000031,1000000032,1000000033,1000000034,1000000035) |
- | 8 | (1000000036,1000000037,1000000038,1000000039,1000000040) |
- | 19 | (1000000091,1000000092,1000000093,1000000094,1000000095) |
- | 20 | (1000000096,1000000097,1000000098,1000000099,1000000100) |
- +------+----------------------------------------------------------+ |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI:
test/clt-tests/core/test-external-files-handling.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_disk (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt,';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_disk; OPTIMIZE TABLE t_disk OPTION cutoff=1, sync=1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | t_disk | rt |
- +--------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 1 | zxczxc | 77 |
- | 2 | srthh | 88 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_disk | CREATE TABLE t_disk (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_disk/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 1 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:49.418 2026] [41] watchdog: main process 42 forked ok
+ [Sun Mar 15 09:50:49.418 2026] [42] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:49.419 2026] [41] watchdog: main process 42 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk0_0.txt /var/lib/manticore/t_disk/stopwords_chunk0_1.txt /var/lib/manticore/t_disk/stopwords_chunk0_2.txt /var/lib/manticore/t_disk/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk0_0.txt /var/lib/manticore/t_disk/wordforms_chunk0_1.txt |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_disk/exceptions_chunk4_0.txt
- stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | settings | |
- +---------------+-------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:51:00.527 2026] [63] watchdog: main process 64 forked ok
+ [Sun Mar 15 09:51:00.528 2026] [64] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:51:00.528 2026] [63] watchdog: main process 64 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | settings | |
- +---------------+-------+
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt /var/lib/manticore/t_disk/stopwords_chunk4_2.txt /var/lib/manticore/t_disk/stopwords_chunk4_3.txt /var/lib/manticore/t_disk/stopwords_chunk4_4.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt /var/lib/manticore/t_disk/wordforms_chunk4_2.txt /var/lib/manticore/t_disk/wordforms_chunk4_3.txt /var/lib/manticore/t_disk/wordforms_chunk4_4.txt |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– output –––
- precaching table 't_disk'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:51:11.145 2026] [79] watchdog: main process 80 forked ok
+ [Sun Mar 15 09:51:11.145 2026] [80] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:51:11.146 2026] [79] watchdog: main process 80 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_disk/stopwords_chunk4_0.txt /var/lib/manticore/t_disk/stopwords_chunk4_1.txt /var/lib/manticore/t_disk/stopwords_chunk4_2.txt /var/lib/manticore/t_disk/stopwords_chunk4_3.txt /var/lib/manticore/t_disk/stopwords_chunk4_4.txt
- wordforms = /var/lib/manticore/t_disk/wordforms_chunk4_0.txt /var/lib/manticore/t_disk/wordforms_chunk4_1.txt /var/lib/manticore/t_disk/wordforms_chunk4_2.txt /var/lib/manticore/t_disk/wordforms_chunk4_3.txt /var/lib/manticore/t_disk/wordforms_chunk4_4.txt |
- +---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+test/clt-tests/core/test-expansion-phrase-limit.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content with some words');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d)\"');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE test_expansion;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
sed -i '/^searchd {/a\ expansion_phrase_limit = 8\n expansion_phrase_warning = 0' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d) (e|f)\"');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f)\"');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"~10');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"/2');" 2>&1
––– output –––
- ERROR 1064 (42000) at line 1: table test_expansion: query too complex, exceeds max variants limit during OR combination (complexity 9, expansion_phrase_limit 8)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DROP TABLE test_expansion;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
searchd --stopwait > /dev/null
––– output –––
OK
––– input –––
sed -i 's/expansion_phrase_warning = 0/expansion_phrase_warning = 1/' /etc/manticoresearch/manticore.conf
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_expansion (title text);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_expansion (title) VALUES ('test content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b) (c|d)\"'); SHOW META LIKE 'warning';" | grep -c "query is too complex"
––– output –––
- 0
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ 0
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
ERROR_COUNT=$(mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"');" 2>&1 | grep -c "ERROR"); echo "Error count: $ERROR_COUNT (expected: 0)"
––– output –––
- Error count: 0 (expected: 0)
+ Error count: 1 (expected: 0)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c|d|e) (f|g|h|j)\"'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"~10'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"/2'); SHOW META LIKE 'warning';" | grep "query is too complex, partial results generated (limited to 8 variants)"
––– output –––
- | warning | table test_expansion: query is too complex, partial results generated (limited to 8 variants) |
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as cnt FROM test_expansion WHERE MATCH('\"(a|b|c) (d|e|f) (g|h|i)\"'); SELECT COUNT(*) as cnt FROM test_expansion WHERE MATCH('\"(a|b|c|d) (e|f|g|h)\"');" 2>&1 | grep -c "ERROR"
––– output –––
- 0
+ 1
––– input –––
sed -i '/expansion_phrase_limit/d; /expansion_phrase_warning/d' /etc/manticoresearch/manticore.conf
––– output –––
OKtest/clt-tests/core/test-alter-table-distributed.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index201(f text, s string); insert into index201 values(1,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index202(f text, s string); insert into index202 values(2,'def','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index203(f text, s string); insert into index203 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index204(f text, s string); insert into index204 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index201' local='index202';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index201 | local |
- | index202 | local |
- +----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table local='index201' local='index203';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index201 | local |
- | index203 | local |
- +----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table agent='127.0.0.1:9312:remote_index' local='index204';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +-----------------------------+----------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +-----------------------------+----------+
- | index204 | local |
- | 127.0.0.1:9312:remote_index | remote_1 |
- +-----------------------------+----------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index203 local='index201' local='index203';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(title text, meta json) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index201 | rt |
- | index202 | rt |
- | index203 | rt |
- | index204 | rt |
- | products | percolate |
- +------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products local='index201' local='index202';"
––– output –––
- ERROR 1064 (42000) at line 1: Table products should be distributed
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE nonexistent local='index203' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: Table nonexistent doesn't exist
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE invalid-name local='index201' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected $undefined, expecting $end near '-name local='index201' local='index204''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE @name local='index201' local='index204';"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected identifier near '@name local='index201' local='index204''
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC products"
––– output –––
- +---------+--------+------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +---------+--------+------------+
- | id | bigint | |
- | query | string | |
- | tags | string | |
- | filters | string | |
- +---------+--------+------------+
––– input –––
for i in $(seq 1 100); do mysql -h0 -P9306 -e "CREATE TABLE index${i}(f text, s string); INSERT INTO index${i} VALUES(${i}, 'value${i}', 'string');"; done
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +------------+-------------+
- | dist_table | distributed |
- | index1 | rt |
- | index10 | rt |
- | index100 | rt |
- | index11 | rt |
- | index12 | rt |
- | index13 | rt |
- | index14 | rt |
- | index15 | rt |
- | index16 | rt |
- | index17 | rt |
- | index18 | rt |
- | index19 | rt |
- | index2 | rt |
- | index20 | rt |
- | index201 | rt |
- | index202 | rt |
- | index203 | rt |
- | index204 | rt |
- | index21 | rt |
- | index22 | rt |
- | index23 | rt |
- | index24 | rt |
- | index25 | rt |
- | index26 | rt |
- | index27 | rt |
- | index28 | rt |
- | index29 | rt |
- | index3 | rt |
- | index30 | rt |
- | index31 | rt |
- | index32 | rt |
- | index33 | rt |
- | index34 | rt |
- | index35 | rt |
- | index36 | rt |
- | index37 | rt |
- | index38 | rt |
- | index39 | rt |
- | index4 | rt |
- | index40 | rt |
- | index41 | rt |
- | index42 | rt |
- | index43 | rt |
- | index44 | rt |
- | index45 | rt |
- | index46 | rt |
- | index47 | rt |
- | index48 | rt |
- | index49 | rt |
- | index5 | rt |
- | index50 | rt |
- | index51 | rt |
- | index52 | rt |
- | index53 | rt |
- | index54 | rt |
- | index55 | rt |
- | index56 | rt |
- | index57 | rt |
- | index58 | rt |
- | index59 | rt |
- | index6 | rt |
- | index60 | rt |
- | index61 | rt |
- | index62 | rt |
- | index63 | rt |
- | index64 | rt |
- | index65 | rt |
- | index66 | rt |
- | index67 | rt |
- | index68 | rt |
- | index69 | rt |
- | index7 | rt |
- | index70 | rt |
- | index71 | rt |
- | index72 | rt |
- | index73 | rt |
- | index74 | rt |
- | index75 | rt |
- | index76 | rt |
- | index77 | rt |
- | index78 | rt |
- | index79 | rt |
- | index8 | rt |
- | index80 | rt |
- | index81 | rt |
- | index82 | rt |
- | index83 | rt |
- | index84 | rt |
- | index85 | rt |
- | index86 | rt |
- | index87 | rt |
- | index88 | rt |
- | index89 | rt |
- | index9 | rt |
- | index90 | rt |
- | index91 | rt |
- | index92 | rt |
- | index93 | rt |
- | index94 | rt |
- | index95 | rt |
- | index96 | rt |
- | index97 | rt |
- | index98 | rt |
- | index99 | rt |
- | products | percolate |
- +------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table $(for i in $(seq 1 100); do echo -n "local='index${i}'"; done | sed 's/, $//');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
- +----------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Agent | Type |
- +----------+-------+
- | index1 | local |
- | index2 | local |
- | index3 | local |
- | index4 | local |
- | index5 | local |
- | index6 | local |
- | index7 | local |
- | index8 | local |
- | index9 | local |
- | index10 | local |
- | index11 | local |
- | index12 | local |
- | index13 | local |
- | index14 | local |
- | index15 | local |
- | index16 | local |
- | index17 | local |
- | index18 | local |
- | index19 | local |
- | index20 | local |
- | index21 | local |
- | index22 | local |
- | index23 | local |
- | index24 | local |
- | index25 | local |
- | index26 | local |
- | index27 | local |
- | index28 | local |
- | index29 | local |
- | index30 | local |
- | index31 | local |
- | index32 | local |
- | index33 | local |
- | index34 | local |
- | index35 | local |
- | index36 | local |
- | index37 | local |
- | index38 | local |
- | index39 | local |
- | index40 | local |
- | index41 | local |
- | index42 | local |
- | index43 | local |
- | index44 | local |
- | index45 | local |
- | index46 | local |
- | index47 | local |
- | index48 | local |
- | index49 | local |
- | index50 | local |
- | index51 | local |
- | index52 | local |
- | index53 | local |
- | index54 | local |
- | index55 | local |
- | index56 | local |
- | index57 | local |
- | index58 | local |
- | index59 | local |
- | index60 | local |
- | index61 | local |
- | index62 | local |
- | index63 | local |
- | index64 | local |
- | index65 | local |
- | index66 | local |
- | index67 | local |
- | index68 | local |
- | index69 | local |
- | index70 | local |
- | index71 | local |
- | index72 | local |
- | index73 | local |
- | index74 | local |
- | index75 | local |
- | index76 | local |
- | index77 | local |
- | index78 | local |
- | index79 | local |
- | index80 | local |
- | index81 | local |
- | index82 | local |
- | index83 | local |
- | index84 | local |
- | index85 | local |
- | index86 | local |
- | index87 | local |
- | index88 | local |
- | index89 | local |
- | index90 | local |
- | index91 | local |
- | index92 | local |
- | index93 | local |
- | index94 | local |
- | index95 | local |
- | index96 | local |
- | index97 | local |
- | index98 | local |
- | index99 | local |
- | index100 | local |
- +----------+-------+test/clt-tests/core/test-create-table-like-existing-table-with-data.rec––– input –––
echo "a => b" > /var/lib/manticore/wordforms1.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:25.001 2026] [23] watchdog: main process 24 forked ok
+ [Sun Mar 15 09:48:25.001 2026] [24] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:25.002 2026] [23] watchdog: main process 24 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
- +------+--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table2 | CREATE TABLE table2 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table2/exceptions.txt' stopwords='/var/lib/manticore/table2/stopwords_0.txt' wordforms='/var/lib/manticore/table2/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
- c => d
+ cat: /var/lib/manticore/table2/exceptions.txt: No such file or directory
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
- abcstop
+ cat: /var/lib/manticore/table2/stopwords_0.txt: No such file or directory
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
- a => b
+ cat: /var/lib/manticore/table2/wordforms_0.txt: No such file or directory
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE table1 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- +--------+------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table3 | CREATE TABLE table3 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table3/exceptions.txt' stopwords='/var/lib/manticore/table3/stopwords_0.txt' wordforms='/var/lib/manticore/table3/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- +--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table4 | CREATE TABLE table4 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table4/exceptions.txt' stopwords='/var/lib/manticore/table4/stopwords_0.txt' wordforms='/var/lib/manticore/table4/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- +--------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table5 | CREATE TABLE table5 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table5/exceptions.txt' stopwords='/var/lib/manticore/table5/stopwords_0.txt' wordforms='/var/lib/manticore/table5/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7 OPTION output_words = 'file';"
––– output –––
- +--------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- | table7 | rt |
- +--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table7 | CREATE TABLE table7 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table7/exceptions.txt' stopwords='/var/lib/manticore/table7/stopwords_0.txt' wordforms='/var/lib/manticore/table7/wordforms_0.txt' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5 OPTION output_words = 'file';"
––– output –––
- +---------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------+------+
- | table1 | rt |
- | table2 | rt |
- | table3 | rt |
- | table4 | rt |
- | table5 | rt |
- | table7 | rt |
- | table_5 | rt |
- +---------+------+
- +------+--------+------+
- | id | title | tag |
- +------+--------+------+
- | 1 | zxczxc | 77 |
- +------+--------+------+
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | table_5 | CREATE TABLE table_5 (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/table_5/exceptions.txt' stopwords='/var/lib/manticore/table_5/stopwords_0.txt' wordforms='/var/lib/manticore/table_5/wordforms_0.txt' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected tablename, expecting $end near 'WITH DATA abs'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/core/test-auto-schema.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:48:13.307 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:48:13.308 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:48:13.308 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "drop table if exists test"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists test2"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "drop table if exists test3"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (12345678901234, 56789012345678));"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: 12345678901234,56789012345678
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- | vector | mva64 | |
- +------------------+--------+----------------+
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test2 (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', '[0.773448, 0.312478, 0.137971, 0.459821]');"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test2\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
- vector: [0.773448,0.312478,0.137971,0.459821]
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test2 OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- | vector | json | |
- +------------------+--------+----------------+
––– input –––
curl -s -X POST "localhost:9308/sql?mode=raw" -d "INSERT INTO test3 (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (6775836565403860993, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '1591362342000', '[1,2,3]', '[523456764345678976, 987654098778666540, 1109876543450987650]', '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', 'null');"; echo $?
––– output –––
- [{"total":1,"error":"","warning":""}]0
+ 7
––– input –––
mysql -h0 -P9306 -e "select * from test3\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- id: 6775836565403860993
- model: iPhone 13 Pro
- color: silver
- date_added: 1591362342000
- vector: null
- storage_capacity: 256
- release_year: 2021
- price: 1099.989990
- discounted_price: 989.989990
- sold: 1
- product_codes: [1,2,3]
- values: [523456764345678976,987654098778666540,1109876543450987650]
- additional_info: {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]}
––– input –––
mysql -P9306 -h0 -e "DESCRIBE test3 OPTION force=1;"
––– output –––
- +------------------+--------+----------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Field | Type | Properties |
- +------------------+--------+----------------+
- | id | bigint | |
- | model | text | indexed stored |
- | color | text | indexed stored |
- | date_added | text | indexed stored |
- | vector | text | indexed stored |
- | storage_capacity | uint | |
- | release_year | uint | |
- | price | float | |
- | discounted_price | float | |
- | sold | uint | |
- | product_codes | json | |
- | values | json | |
- | additional_info | json | |
- +------------------+--------+----------------+test/clt-tests/core/test-alter-table.rec––– input –––
rm -rf /var/lib/manticore
––– output –––
OK
––– input –––
mkdir /tmp/test-alter/
––– output –––
OK
––– input –––
ln -s /tmp/test-alter/ /var/lib/manticore
––– output –––
OK
––– input –––
echo "a > b" > /tmp/test-alter/wordforms1.txt; echo "c > d" > /tmp/test-alter/exc.txt; echo "abcstop" > /tmp/test-alter/stop.txt
––– output –––
OK
––– input –––
ls -1 /var/lib/manticore/
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test3 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: settings
- Value: exceptions = /tmp/test-alter/test3/exceptions_chunk0_0.txt
- stopwords = /tmp/test-alter/test3/stopwords_chunk0_0.txt
- wordforms = /tmp/test-alter/test3/wordforms_chunk0_0.txt
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test3 exceptions = ''"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- Variable_name: settings
- Value: stopwords = /tmp/test-alter/test3/stopwords_chunk0_0.txt
- wordforms = /tmp/test-alter/test3/wordforms_chunk0_0.txttest/clt-tests/core/test-alter-rename.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2001(f text, s string); insert into index2001 values(01,'abc','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2002(f text, s string); insert into index2002 values(02,'def','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2003(f text, s string); insert into index2003 values(03,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2004(f text, s string); insert into index2004 values(04,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +-----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-----------+------+
- | index2001 | rt |
- | index2002 | rt |
- | index2003 | rt |
- | index2004 | rt |
- +-----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2001 RENAME new_index2001;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2002 RENAME new_index2002;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2003 RENAME new_index2003;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE index2004 RENAME new_index2004;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+------+
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2006(f text, s string); insert into index2006 values(3,'ghi','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2007(f text, s string); insert into index2007 values(4,'jkl','string');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index2006' local='index2007';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; DESC dist_table"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+-------------+
- +-----------+-------+
- | Agent | Type |
- +-----------+-------+
- | index2006 | local |
- | index2007 | local |
- +-----------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table RENAME new_dist_table;"
––– output –––
- ERROR 1064 (42000) at line 1: Table dist_table should be RT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- +---------------+-------------+
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(title text, meta json) type='pq';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +---------------+-------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +---------------+-------------+
- | dist_table | distributed |
- | index2006 | rt |
- | index2007 | rt |
- | new_index2001 | rt |
- | new_index2002 | rt |
- | new_index2003 | rt |
- | new_index2004 | rt |
- | products | percolate |
- +---------------+-------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products RENAME new_products;"
––– output –––
- ERROR 1064 (42000) at line 1: Table products should be RT
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE nonexistent RENAME new_nonexistent;"
––– output –––
- ERROR 1064 (42000) at line 1: Source table nonexistent not exists
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE invalid-name RENAME new_invalid_name;"
––– output –––
- ERROR 1064 (42000) at line 1: P03: syntax error, unexpected $undefined, expecting $end near '-name RENAME new_invalid_name'
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)test/clt-tests/core/test-alter-rename-http.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd $SEARCHD_FLAGS > /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!
+ Timeout or failed!
+ [Sun Mar 15 09:47:12.010 2026] [22] watchdog: main process 23 forked ok
+ [Sun Mar 15 09:47:12.010 2026] [23] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:47:12.010 2026] [22] watchdog: main process 23 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE articles(title text, content text); INSERT INTO articles VALUES(1,'test','content');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE products(name text, price float); INSERT INTO products VALUES(1,'laptop',999.99);"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +----------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +----------+------+
- | articles | rt |
- | products | rt |
- +----------+------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE products RENAME products_new"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles | rt |
- | products_new | rt |
- +--------------+------+
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+*+FROM+articles+LIMIT+1" | grep -o '"_id":1'
––– output –––
- "_id":1
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+title,+content+FROM+articles+WHERE+MATCH('test')+LIMIT+10" | grep -o '"title":"test"'
––– output –––
- "title":"test"
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER+TABLE+nonexistent+RENAME+new_name"
––– output –––
- {"error":"Source table nonexistent not exists"}
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT%20title+FROM+articles+WHERE%20MATCH('test')" | grep -o '"title":"test"'
––– output –––
- "title":"test"
––– input –––
mysql -h0 -P9306 -e "INSERT INTO articles(title,content) VALUES('test with spaces','content with special chars');"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+id,+title,+content+FROM+articles+ORDER+BY+id+DESC+LIMIT+10" | grep -o '"total":2'
––– output –––
- "total":2
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER%20TABLE%20articles%20RENAME%20articles2"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles2 | rt |
- | products_new | rt |
- +--------------+------+
––– input –––
curl -s "http://localhost:9308/sql?query=SELECT+COUNT(*)+AS+cnt+FROM+articles2" | grep -o '"cnt":2'
––– output –––
- "cnt":2
––– input –––
curl -s "http://localhost:9308/sql?query=ALTER%20TABLE%20articles2%20RENAME%20articles"
––– output –––
- [{"total":0,"error":"","warning":""}]
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES"
––– output –––
- +--------------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +--------------+------+
- | articles | rt |
- | products_new | rt |
- +--------------+------+test/clt-tests/core/test-external-files-handling-ramchunk.rec––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– 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!
+ Timeout or failed!
––– input –––
echo "z => w" > /var/lib/manticore/wordforms1.txt; echo "x => y" > /var/lib/manticore/wordforms2.txt; echo "c => d" > /var/lib/manticore/exc.txt; echo "abcstop" > /var/lib/manticore/stop1.txt; echo "defstop" > /var/lib/manticore/stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE t_ram (id BIGINT, title TEXT, tag INTEGER) stopwords = 'en, it, /var/lib/manticore/stop1.txt, /var/lib/manticore/stop2.txt' exceptions = '/var/lib/manticore/exc.txt' wordforms = '/var/lib/manticore/wordforms1.txt, /var/lib/manticore/wordforms2.txt' rt_mem_limit = '256M';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram OPTION output_words = 'file';"
––– output –––
- +-------+------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Table | Type |
- +-------+------+
- | t_ram | rt |
- +-------+------+
- +------+----------+------+
- | id | title | tag |
- +------+----------+------+
- | 2 | srthh | 88 |
- | 1 | zxczxc | 77 |
- | 3 | srthgrth | 99 |
- +------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | t_ram | CREATE TABLE t_ram (
- id bigint,
- title text,
- tag integer
- ) exceptions='/var/lib/manticore/t_ram/exceptions_chunk0_0.txt' stopwords='/var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt' wordforms='/var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
- +---------------+-------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+-------+
- | disk_chunks | 3 |
- +---------------+-------+
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd > /dev/null
––– output –––
OK
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:05.497 2026] [40] watchdog: main process 41 forked ok
+ [Sun Mar 15 09:50:05.497 2026] [41] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:05.498 2026] [40] watchdog: main process 41 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk0_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk0_0.txt /var/lib/manticore/t_ram/stopwords_chunk0_1.txt /var/lib/manticore/t_ram/stopwords_chunk0_2.txt /var/lib/manticore/t_ram/stopwords_chunk0_3.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk0_0.txt /var/lib/manticore/t_ram/wordforms_chunk0_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mkdir -p /var/lib/manticore/t/ && echo "x => z" > /var/lib/manticore/t/new_exc.txt && echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt && echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt && echo "newstop1" > /var/lib/manticore/t/new_stop1.txt && echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
echo "x => z" > /var/lib/manticore/t/new_exc.txt
––– output –––
OK
––– input –––
echo "apple => orange" > /var/lib/manticore/t/new_wordforms1.txt
––– output –––
OK
––– input –––
echo "banana => pear" > /var/lib/manticore/t/new_wordforms2.txt
––– output –––
OK
––– input –––
echo "newstop1" > /var/lib/manticore/t/new_stop1.txt
––– output –––
OK
––– input –––
echo "newstop2" > /var/lib/manticore/t/new_stop2.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop1.txt, /var/lib/manticore/t/new_stop2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms1.txt, /var/lib/manticore/t/new_wordforms2.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | exceptions = /var/lib/manticore/t_ram/exceptions_chunk2_0.txt
- stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt
- rt_mem_limit = 268435456 |
- +---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------+
- | settings | rt_mem_limit = 268435456 |
- +---------------+--------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:16.606 2026] [62] watchdog: main process 63 forked ok
+ [Sun Mar 15 09:50:16.606 2026] [63] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:16.607 2026] [62] watchdog: main process 63 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------+
- | settings | rt_mem_limit = 268435456 |
- +---------------+--------------------------+
––– input –––
echo "newstop3" > /var/lib/manticore/t/new_stop3.txt && echo "newstop4" > /var/lib/manticore/t/new_stop4.txt && echo "newstop5" > /var/lib/manticore/t/new_stop5.txt && echo "newstop6" > /var/lib/manticore/t/new_stop6.txt && echo "newstop7" > /var/lib/manticore/t/new_stop7.txt
––– output –––
OK
––– input –––
echo "word1 => replacement1" > /var/lib/manticore/t/new_wordforms3.txt && echo "word2 => replacement2" > /var/lib/manticore/t/new_wordforms4.txt && echo "word3 => replacement3" > /var/lib/manticore/t/new_wordforms5.txt && echo "word4 => replacement4" > /var/lib/manticore/t/new_wordforms6.txt && echo "word5 => replacement5" > /var/lib/manticore/t/new_wordforms7.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='/var/lib/manticore/t/new_stop3.txt, /var/lib/manticore/t/new_stop4.txt, /var/lib/manticore/t/new_stop5.txt, /var/lib/manticore/t/new_stop6.txt, /var/lib/manticore/t/new_stop7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='/var/lib/manticore/t/new_wordforms3.txt, /var/lib/manticore/t/new_wordforms4.txt, /var/lib/manticore/t/new_wordforms5.txt, /var/lib/manticore/t/new_wordforms6.txt, /var/lib/manticore/t/new_wordforms7.txt';"
––– output –––
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt /var/lib/manticore/t_ram/stopwords_chunk2_2.txt /var/lib/manticore/t_ram/stopwords_chunk2_3.txt /var/lib/manticore/t_ram/stopwords_chunk2_4.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt /var/lib/manticore/t_ram/wordforms_chunk2_2.txt /var/lib/manticore/t_ram/wordforms_chunk2_3.txt /var/lib/manticore/t_ram/wordforms_chunk2_4.txt
- rt_mem_limit = 268435456 |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– output –––
- precaching table 't_ram'
––– input –––
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!
+ Timeout or failed!
+ [Sun Mar 15 09:50:27.221 2026] [78] watchdog: main process 79 forked ok
+ [Sun Mar 15 09:50:27.221 2026] [79] FATAL: failed to create pid file '/run/manticore/searchd.pid': No such file or directory
+ [Sun Mar 15 09:50:27.222 2026] [78] watchdog: main process 79 exited cleanly (exit code 1), shutting down
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (111)
- | Variable_name | Value |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | settings | stopwords = /var/lib/manticore/t_ram/stopwords_chunk2_0.txt /var/lib/manticore/t_ram/stopwords_chunk2_1.txt /var/lib/manticore/t_ram/stopwords_chunk2_2.txt /var/lib/manticore/t_ram/stopwords_chunk2_3.txt /var/lib/manticore/t_ram/stopwords_chunk2_4.txt
- wordforms = /var/lib/manticore/t_ram/wordforms_chunk2_0.txt /var/lib/manticore/t_ram/wordforms_chunk2_1.txt /var/lib/manticore/t_ram/wordforms_chunk2_2.txt /var/lib/manticore/t_ram/wordforms_chunk2_3.txt /var/lib/manticore/t_ram/wordforms_chunk2_4.txt
- rt_mem_limit = 268435456 |
- +---------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
5b150df to
611e272
Compare
611e272 to
359180f
Compare
No description provided.