Conversation
…t options for create table statement to provide inline values; fixed show create table to provide inlined values
…topwords_list \ hitless_words_list; documented format_ext_files option of SHOW CREATE TABLE statement
|
this implemets #2046 and slack discussion https://manticoresearch.slack.com/archives/C5EEXJG31/p1766690770372619 added new configuration options of the CREATE TABLE these accept inline values:
after these got saved into Also fixed but also added option to that statement Ask @sanikolaev and @klirichek to review and provide the feedback as you discuss this feature and have strong opinion about it |
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI: 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt |
+-------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 2 | srthh | 88 |
| 1 | zxczxc | 77 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; z => w; a => b' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK |
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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| t_disk | rt |
+--------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 1 | zxczxc | 77 |
| 2 | srthh | 88 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OKtest/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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
| table5 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
| table5 | rt |
| table7 | rt |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5;"
––– output –––
+---------+------+
| 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 | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
OKtest/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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt |
+-------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 2 | srthh | 88 |
| 1 | zxczxc | 77 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK |
…ep master version of the test 479
… with values file, list
…riptions with the form; removed duplicated part of the wordforms_list description
already discussed changes I just pushed
clt❌ CLT tests in Failed tests:🔧 Edit failed tests in UI: 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt |
+-------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 2 | srthh | 88 |
| 1 | zxczxc | 77 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; z => w; a => b' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK |
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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_disk (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_disk;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_disk; SHOW CREATE TABLE t_disk;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| t_disk | rt |
+--------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 1 | zxczxc | 77 |
| 2 | srthh | 88 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' |
- +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+---------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_disk STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_disk WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_disk'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_disk SETTINGS;"
––– output –––
OKtest/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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO table1 (id, title, tag) values (1, 'zxczxc', 77);"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM table1;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table2` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table2; SHOW CREATE TABLE table2;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
cat /var/lib/manticore/table2/exceptions.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/stopwords_0.txt
––– output –––
OK
––– input –––
cat /var/lib/manticore/table2/wordforms_0.txt
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE table1;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not exists `table3` LIKE `table2` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table3; SHOW CREATE TABLE table3;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if NOT exists `table4` LIKE `table1` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table4; SHOW CREATE TABLE table4;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE if not EXISTS `table5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table5; SHOW CREATE TABLE table5;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
| table5 | rt |
+--------+------+
+------+--------+------+
| id | title | tag |
+------+--------+------+
| 1 | zxczxc | 77 |
+------+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'create table iF NoT ExIstS `table7` like `table4` with data;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table7; SHOW CREATE TABLE table7;"
––– output –––
+--------+------+
| Table | Type |
+--------+------+
| table1 | rt |
| table2 | rt |
| table3 | rt |
| table4 | rt |
| table5 | rt |
| table7 | rt |
+--------+------+
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +--------+--------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA;'
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM table_5; SHOW CREATE TABLE table_5;"
––– output –––
+---------+------+
| 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 | 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' |
+ ) exceptions_list='c => d' stopwords_list='abcstop' wordforms_list='a => b' |
- +---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +---------+---------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'CREATE TABLE IF NOT EXISTS `table_5` LIKE `table3` WITH DATA abs;'
––– output –––
OKtest/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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (1, 'zxczxc', 77); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (2, 'srthh', 88); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t_ram (id, title, tag) VALUES (3, 'srthgrth', 99); FLUSH RAMCHUNK t_ram;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES; SELECT * FROM t_ram; SHOW CREATE TABLE t_ram;"
––– output –––
+-------+------+
| Table | Type |
+-------+------+
| t_ram | rt |
+-------+------+
+------+----------+------+
| id | title | tag |
+------+----------+------+
| 2 | srthh | 88 |
| 1 | zxczxc | 77 |
| 3 | srthgrth | 99 |
+------+----------+------+
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
- | Table | Create Table |
+ | 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' |
+ ) exceptions_list='c => d' wordforms_list='z => w; x => y' rt_mem_limit='268435456' |
- +-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+ +-------+---------------------------------------------------------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE t_ram STATUS LIKE 'disk_chunks';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='/var/lib/manticore/t/new_exc.txt';"
––– output –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram STOPWORDS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram EXCEPTIONS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE t_ram WORDFORMS='';"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– 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 –––
OK
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd 2>&1 | grep -i 't_ram'
––– 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 –––
OK
––– input –––
mysql -h0 -P9306 -e "SHOW INDEX t_ram SETTINGS;"
––– output –––
OK |
to run all CI stages and auto-translator