Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

that is the WIP for the auth branch #2828

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

that is the WIP for the auth branch #2828

wants to merge 3 commits into from

Conversation

tomatolog
Copy link
Contributor

to make sure all for #2808 and part of user management from the #2748 builds and work

Copy link

github-actions bot commented Dec 8, 2024

Linux debug test results

   10 files   10 suites   9m 34s ⏱️
1 017 tests 967 ✅ 50 💤 0 ❌
1 031 runs  981 ✅ 50 💤 0 ❌

Results for commit d2879e1.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 8, 2024

clt

👎 CLT tests in test/clt-tests/plugins/
✅ OK: 0
❌ Failed: 1
⏳ Duration: 10s
👉 Check Action Results for commit 9cc1e9a
Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
Buddy started!
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES"
––– output –––
- ERROR 1064 (42000) at line 1: Plugin 'show' is disabled
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
-
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+

Copy link

github-actions bot commented Dec 8, 2024

clt

👎 CLT tests in test/clt-tests/optimisation-and-update/
✅ OK: 0
❌ Failed: 1
⏳ Duration: 23s
👉 Check Action Results for commit 9cc1e9a
Failed tests:

test/clt-tests/optimisation-and-update/test-optimisation-and-update.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
Buddy started!
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
0
––– input –––
apt-get install -y bc > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
chmod +x ./test/clt-tests/scripts/load_names_attr.php > /dev/null; echo $?
––– output –––
0
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=100000 --concurrency=4 --docs=2000000 --start-id=1 --drop-table > /dev/null; echo $?
––– output –––
- 0
+ 255
––– input –––
mysql -h0 -P9306 -e "FLUSH RAMCHUNK name;"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
sleep 1 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=2;"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
sleep 5 && mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | count(*) |
- +----------+
- |  4000000 |
- +----------+
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
- precaching table 'name'
+ Buddy started!
- precached 1 tables in #!/[0-9]{1}.[0-9]{3}/!# sec
- Buddy started!
––– input –––
mysql -h0 -P9306 -e "SHOW TABLES;"
––– output –––
- +-------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | Table | Type |
- +-------+------+
- | name  | rt   |
- +-------+------+
––– input –––
mysql -h0 -P9306 -e "show table name status like '%chunk%';"
––– output –––
- +--------------------------+-------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username       | s    |
- +------+----------------+------+
- |    1 | TARRA NORTH    | a    |
- |    2 | CARSON BALL    | a    |
- |    3 | TALIA TEAGUE   | a    |
- |    4 | ALAYNA KIMBALL | a    |
- |    5 | ZULMA RINEHART | a    |
- +------+----------------+------+
––– input –––
start_optimize=$(date +%s); time mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=1;" &
––– output –––
[%{NUMBER}] %{NUMBER}
––– 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.
+ [1]+  Exit 1                  time mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1, cutoff=1;"
+ Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+-------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username    | s    |
- +------+-------------+------+
- |    1 | TARRA NORTH | b    |
- +------+-------------+------+
––– input –––
start_update=$(date +%s); time_taken_update=$( { time mysql -h0 -P9306 -e "UPDATE name SET s=123 WHERE id=1;" > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'); update_duration=$(echo "$time_taken_update" | awk -F'm' '{print ($1 * 60) + $2}'); if (( $(echo "$update_duration > 1" | bc -l) )); then echo "FAIL: Update took longer than 1 second!"; exit 1; else echo "Update completed within acceptable time."; fi
––– output –––
Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+-------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username    | s    |
- +------+-------------+------+
- |    1 | TARRA NORTH | b    |
- +------+-------------+------+
––– input –––
start_update=$(date +%s); time_taken_update=$( { time mysql -h0 -P9306 -e "UPDATE name SET s='b' WHERE id > 0;" > /dev/null 2>&1; } 2>&1 | grep real | awk '{print $2}'); update_duration=$(echo "$time_taken_update" | awk -F'm' '{print ($1 * 60) + $2}'); if (( $(echo "$update_duration > 3" | bc -l) )); then echo "FAIL: Update took longer than 3 seconds!"; false; else echo "Update completed within acceptable time."; fi
––– output –––
Update completed within acceptable time.
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE s='b' ORDER BY id ASC LIMIT 5;"
––– output –––
- +------+----------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username       | s    |
- +------+----------------+------+
- |    1 | TARRA NORTH    | b    |
- |    2 | CARSON BALL    | b    |
- |    3 | TALIA TEAGUE   | b    |
- |    4 | ALAYNA KIMBALL | b    |
- |    5 | ZULMA RINEHART | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username       | s    |
- +------+----------------+------+
- |    1 | TARRA NORTH    | b    |
- |    2 | CARSON BALL    | b    |
- |    3 | TALIA TEAGUE   | b    |
- |    4 | ALAYNA KIMBALL | b    |
- |    5 | ZULMA RINEHART | b    |
- +------+----------------+------+
––– input –––
{ command time wait > /dev/null 2>&1; } 2>&1 | grep -v "real" | grep -v "user" | grep -v "sys"; end_optimize=$(date +%s); optimize_duration=$((end_optimize - start_optimize)); echo "OPTIMIZE duration: $optimize_duration seconds"
––– output –––
OPTIMIZE duration: %{NUMBER} seconds

Copy link

github-actions bot commented Dec 8, 2024

clt

👎 CLT tests in test/clt-tests/replication/
✅ OK: 0
❌ Failed: 2
⏳ Duration: 33s
👉 Check Action Results for commit 9cc1e9a
Failed tests:

test/clt-tests/replication/replication-test.rec
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=3
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=4
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=5
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- Counter: cluster_#!/[a-z]+/!#_status
- Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- Counter: cluster_#!/[a-z]+/!#_status
- Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';"
––– output –––
- +-----------------------------+--------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | Counter                     | Value  |
- +-----------------------------+--------+
- | cluster_replication_indexes | testrt |
- +-----------------------------+--------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
––– input –––
export INSTANCE=5
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
- 0
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ 1
––– input –––
export INSTANCE=5
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
––– input –––
export INSTANCE=2
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
- 0
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ 1
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860993
- title: List of HP business laptops
- content: Elitebook Probook
- gid: 1
- *************************** 2. row ***************************
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Latitude Precision Vostro
- gid: 2
- *************************** 3. row ***************************
- id: 6775836565403860995
- title: List of HP business laptops
- content: Macbook
- gid: 3
- *************************** 4. row ***************************
- id: 6775836565403860996
- title: NEW
- content: TABLE
- gid: 4
––– input –––
export INSTANCE=4
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
––– input –––
sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $?
––– output –––
- 0
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ 1
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
export INSTANCE=4
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on all interfaces for mysql, port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt;
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
0
––– input –––
mysql -h0 -P1306 -e "REPLACE INTO replication:testrt SET content='Updated Content', title='List of Dell business laptops', gid=2 WHERE id=6775836565403860994;"; echo $?
––– output –––
- 0
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+ 1
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860994
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM replication:testrt WHERE id=6775836565403860994\G"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- id: 6775836565403860994
+
- title: List of Dell business laptops
- content: Updated Content
- gid: 2
-
test/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 –––
––– input –––
searchd
––– output –––
Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on 127.0.0.1:9306 for mysql
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)

Copy link

github-actions bot commented Dec 8, 2024

clt

👎 CLT tests in test/clt-tests/buddy/
✅ OK: 0
❌ Failed: 3
⏳ Duration: 46s
👉 Check Action Results for commit 9cc1e9a
Failed tests:

test/clt-tests/buddy/test-fuzzy-search-negative.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
Buddy started!
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('j', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE(123, 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Failed to parse query
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('@#$', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('thisisaverylonginputstring', 'name', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'non_existing_table', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: no such table 'non_existing_table'
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 123 AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
test/clt-tests/buddy/test-fuzzy-search-non-min-infix-len.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
Buddy started!
––– input –––
mysql -h0 -P9306 -e "create table test (id bigint, value text);"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);"
––– output –––
- ERROR 1064 (42000) at line 1: Autocomplete requires min_infix_len to be set
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test min_infix_len='2';"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
sleep 30; mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'test', 'us' AS layouts);"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM test WHERE MATCH('RICH') OPTION fuzzy=1;"
––– output –––
-
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+
test/clt-tests/buddy/test-fuzzy-search.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; 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 %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
[#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
listening on %{IPADDR}:9312 for sphinx and http(s)
listening on %{IPADDR}:9306 for mysql
listening on %{IPADDR}:9308 for sphinx and http(s)
Buddy started!
––– input –––
apt-get update -y > /dev/null; echo $?
––– output –––
0
––– input –––
apt-get install jq -y > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
php -d memory_limit=2G ./test/clt-tests/scripts/load_names_attr.php --batch-size=100000 --concurrency=4 --docs=1000000 --start-id=1 --min-infix-len=2 > /dev/null; echo $?
––– output –––
- 0
+ 255
––– 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'
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM name;"
––– output –––
- +----------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | count(*) |
- +----------+
- |  1000000 |
- +----------+
––– input –––
mysql -h0 -P9306 -e "OPTIMIZE TABLE name OPTION sync=1;"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('RICH') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username          | s    |
- +------+-------------------+------+
- |  196 | BRICE MULLIN      | a    |
- |  307 | GRICELDA SKELTON  | a    |
- |  363 | LAURICE SOLIZ     | a    |
- |  478 | ERICH LLAMAS      | a    |
- |  490 | LATRICE MANCILLA  | a    |
- |  608 | MAURICE PRATHER   | a    |
- |  659 | BRICE OLIVARES    | a    |
- |  697 | PATRICE WOOD      | a    |
- |  822 | JUNITA RICHARD    | a    |
- |  835 | AUREA RICO        | a    |
- |  854 | ROXANNE BRICE     | a    |
- | 1122 | RICH MOLL         | a    |
- | 1134 | JOELLA RICHARD    | a    |
- | 1160 | MINDY HEINRICH    | a    |
- | 1224 | YADIRA RICHARDSON | a    |
- | 1379 | BRICE ALLMAN      | a    |
- | 1574 | RICO VALENZUELA   | a    |
- | 1602 | BEATRICE LOVE     | a    |
- | 1822 | RICHELLE ROE      | a    |
- | 2136 | CHIQUITA RICHTER  | a    |
- +------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('EBGRNA') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+----------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username             | s    |
- +------+----------------------+------+
- |  675 | CONCEPTION ABERNATHY | a    |
- |  964 | BERNARDINA OSHEA     | a    |
- | 1354 | VERNA VITALE         | a    |
- | 1784 | BERNADETTE HALES     | a    |
- | 1839 | BERNARDINA MCMILLAN  | a    |
- | 1864 | ERNA ULLOA           | a    |
- | 1948 | SAMIRA ABERNATHY     | a    |
- | 2238 | JUDI BERNAL          | a    |
- | 2446 | MERNA GAITHER        | a    |
- | 3065 | BERNADINE HIBBARD    | a    |
- | 3195 | BERNADETTE SHELTON   | a    |
- | 3688 | VERNA GASTON         | a    |
- | 3781 | BERNARDINE WILKINS   | a    |
- | 4370 | ERNA VITALE          | a    |
- | 4637 | TARSHA HERNANDEZ     | a    |
- | 4662 | FERNANDO HOUCK       | a    |
- | 5044 | CONSTANCE ABERNATHY  | a    |
- | 5580 | LAVERNA GORMAN       | a    |
- | 5582 | FERNANDE ISRAEL      | a    |
- | 5798 | LAVERNA STORM        | a    |
- +------+----------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('ANT') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username          | s    |
- +------+-------------------+------+
- |    8 | DAMIAN SOMERS     | a    |
- |   16 | TAMI WHELAN       | a    |
- |   19 | DARCY SANDBERG    | a    |
- |   20 | RANEE BROUGHTON   | a    |
- |   21 | STEPHEN ALLMAN    | a    |
- |   30 | AMANDA KEY        | a    |
- |   37 | ELFRIEDA HANKS    | a    |
- |   41 | NANNIE WILLINGHAM | a    |
- |   42 | YOULANDA TROUT    | a    |
- |   44 | ANTHONY SMOOT     | a    |
- |   47 | FRANCIE BUNDY     | a    |
- |   51 | LATASHA POLAND    | a    |
- |   53 | SHEMEKA DURAND    | a    |
- |   54 | LATANYA ARNDT     | a    |
- |   56 | JANELLE LASTER    | a    |
- |   57 | NANNIE HANNON     | a    |
- |   58 | GRANVILLE VALDEZ  | a    |
- |   59 | DEDE SPANN        | a    |
- |   60 | DANIEL MERRITT    | a    |
- |   63 | SAUL HOWLAND      | a    |
- +------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('tony') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+--------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username           | s    |
- +------+--------------------+------+
- |  118 | ANTONIA VANWINKLE  | a    |
- |  220 | ANTONIA MELGAR     | a    |
- |  391 | KARYL TONEY        | a    |
- |  761 | TONYA SHERRILL     | a    |
- | 1527 | LEONE TONEY        | a    |
- | 2132 | TONIA RAPP         | a    |
- | 2195 | TONIE HOANG        | a    |
- | 2333 | LATONIA VILLASENOR | a    |
- | 2357 | TONIE BARNHILL     | a    |
- | 2430 | TONIA BOSTICK      | a    |
- | 2584 | TONI SPENCE        | a    |
- | 2725 | ANTONIETTA CINTRON | a    |
- | 2881 | ANTONINA HASKELL   | a    |
- | 3318 | TONY DUPRE         | a    |
- | 3582 | ANTONIETTA BAEZ    | a    |
- | 3858 | TONEY SCHOEN       | a    |
- | 4366 | ROCHEL TONEY       | a    |
- | 4608 | ANTONIA DRISCOLL   | a    |
- | 4657 | TONYA PARRIS       | a    |
- | 4800 | TONY WEISS         | a    |
- +------+--------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id     | username          | s    |
- +--------+-------------------+------+
- | 999973 | KEITH SNOW        | a    |
- | 999855 | DOROTHA WISEMAN   | a    |
- | 999723 | SCOTT OLSON       | a    |
- | 999264 | RUTHANN GREENE    | a    |
- | 999250 | MINH LANDERS      | a    |
- | 999127 | MALENA RUTHERFORD | a    |
- | 999120 | RUTHANNE CARDOSO  | a    |
- | 998893 | IRWIN SOUTHARD    | a    |
- | 998691 | MITCHELL SEITZ    | a    |
- | 998539 | ELSA SEITZ        | a    |
- | 998526 | SCOTT CARRION     | a    |
- | 997945 | RUTHE SCHENK      | a    |
- | 997815 | MINH GOODWIN      | a    |
- | 997558 | ARTIE SOUTH       | a    |
- | 997189 | BETTY SOUTHERN    | a    |
- | 997187 | SUSAN SCOTT       | a    |
- | 997098 | OTHA FAJARDO      | a    |
- | 997074 | SCOTT FLANDERS    | a    |
- | 996804 | SCOTT ENOS        | a    |
- | 996461 | EDRA HIGGINBOTHAM | a    |
- +--------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id     | username          | s    |
- +--------+-------------------+------+
- | 999973 | KEITH SNOW        | a    |
- | 999855 | DOROTHA WISEMAN   | a    |
- | 999723 | SCOTT OLSON       | a    |
- | 999264 | RUTHANN GREENE    | a    |
- | 999250 | MINH LANDERS      | a    |
- | 999127 | MALENA RUTHERFORD | a    |
- | 999120 | RUTHANNE CARDOSO  | a    |
- | 998893 | IRWIN SOUTHARD    | a    |
- | 998691 | MITCHELL SEITZ    | a    |
- | 998539 | ELSA SEITZ        | a    |
- | 998526 | SCOTT CARRION     | a    |
- | 997945 | RUTHE SCHENK      | a    |
- | 997815 | MINH GOODWIN      | a    |
- | 997558 | ARTIE SOUTH       | a    |
- | 997189 | BETTY SOUTHERN    | a    |
- | 997187 | SUSAN SCOTT       | a    |
- | 997098 | OTHA FAJARDO      | a    |
- | 997074 | SCOTT FLANDERS    | a    |
- | 996804 | SCOTT ENOS        | a    |
- | 996461 | EDRA HIGGINBOTHAM | a    |
- +--------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMYTH') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id     | username          | s    |
- +--------+-------------------+------+
- | 999973 | KEITH SNOW        | a    |
- | 999964 | CANDACE BOOTH     | a    |
- | 999855 | DOROTHA WISEMAN   | a    |
- | 999723 | SCOTT OLSON       | a    |
- | 999264 | RUTHANN GREENE    | a    |
- | 999197 | HEATH MCNAMARA    | a    |
- | 999127 | MALENA RUTHERFORD | a    |
- | 999120 | RUTHANNE CARDOSO  | a    |
- | 999013 | HEATHER HAMMOCK   | a    |
- | 998893 | IRWIN SOUTHARD    | a    |
- | 998526 | SCOTT CARRION     | a    |
- | 998000 | EDYTH CARLISLE    | a    |
- | 997945 | RUTHE SCHENK      | a    |
- | 997558 | ARTIE SOUTH       | a    |
- | 997544 | HEATHER CLAUSEN   | a    |
- | 997189 | BETTY SOUTHERN    | a    |
- | 997187 | SUSAN SCOTT       | a    |
- | 997098 | OTHA FAJARDO      | a    |
- | 997074 | SCOTT FLANDERS    | a    |
- | 996804 | SCOTT ENOS        | a    |
- +--------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SMITH') ORDER BY id DESC, username ASC OPTION fuzzy="1";"
––– output –––
- +--------+-------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id     | username          | s    |
- +--------+-------------------+------+
- | 999973 | KEITH SNOW        | a    |
- | 999855 | DOROTHA WISEMAN   | a    |
- | 999723 | SCOTT OLSON       | a    |
- | 999264 | RUTHANN GREENE    | a    |
- | 999250 | MINH LANDERS      | a    |
- | 999127 | MALENA RUTHERFORD | a    |
- | 999120 | RUTHANNE CARDOSO  | a    |
- | 998893 | IRWIN SOUTHARD    | a    |
- | 998691 | MITCHELL SEITZ    | a    |
- | 998539 | ELSA SEITZ        | a    |
- | 998526 | SCOTT CARRION     | a    |
- | 997945 | RUTHE SCHENK      | a    |
- | 997815 | MINH GOODWIN      | a    |
- | 997558 | ARTIE SOUTH       | a    |
- | 997189 | BETTY SOUTHERN    | a    |
- | 997187 | SUSAN SCOTT       | a    |
- | 997098 | OTHA FAJARDO      | a    |
- | 997074 | SCOTT FLANDERS    | a    |
- | 996804 | SCOTT ENOS        | a    |
- | 996461 | EDRA HIGGINBOTHAM | a    |
- +--------+-------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('john') ORDER BY id DESC, username ASC OPTION fuzzy=1;"
––– output –––
- +--------+------------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id     | username               | s    |
- +--------+------------------------+------+
- | 999961 | JONELL ENRIGHT         | a    |
- | 999932 | JONELL NIX             | a    |
- | 999926 | JONAH BURNSIDE         | a    |
- | 999922 | LAVONNA JONAS          | a    |
- | 999860 | JOHNETTA DO            | a    |
- | 999552 | JOHNNY CARNES          | a    |
- | 999548 | JOHNATHAN PEPPER       | a    |
- | 999509 | JOHNATHAN STUBBLEFIELD | a    |
- | 999171 | JOHNNY ABRAMS          | a    |
- | 999033 | AGNUS STJOHN           | a    |
- | 998835 | SCARLETT JONAS         | a    |
- | 998798 | JOHNATHON READ         | a    |
- | 998467 | JOHNSON JEAN           | a    |
- | 998393 | JOHN BACH              | a    |
- | 998306 | JOHNNY TAFOYA          | a    |
- | 998304 | JONG SAUER             | a    |
- | 998303 | JONATHON DUPRE         | a    |
- | 998278 | JOHNNIE LOR            | a    |
- | 998181 | JONA ELROD             | a    |
- | 998154 | JONG YORK              | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id    | username           | s    |
- +-------+--------------------+------+
- | 10028 | ANJANETTE PORTILLO | a    |
- | 10056 | JANETTE LYNCH      | a    |
- | 10629 | LANETTE SWAIN      | a    |
- | 10874 | JANESSA MONTEZ     | a    |
- | 10977 | RUTHANN LANEY      | a    |
- | 11038 | DESIRE LANE        | a    |
- | 11056 | LANELLE WATTS      | a    |
- | 11397 | MELITA LANE        | a    |
- | 11415 | MARYJANE HOLTZ     | a    |
- | 11569 | JANETH SELBY       | a    |
- | 11758 | JANETTE GANTT      | a    |
- | 11834 | JANELLE DRIGGERS   | a    |
- | 12100 | JAE COBLE          | a    |
- | 12171 | JAE MEARS          | a    |
- | 12185 | JANESSA BALTAZAR   | a    |
- | 12237 | JANENE APODACA     | a    |
- | 12490 | LANELLE ARNDT      | a    |
- | 12536 | JANENE WALDRON     | a    |
- | 12540 | ANJANETTE STAGGS   | a    |
- | 12642 | HERSHEL LANEY      | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username            | s    |
- +------+---------------------+------+
- | 1354 | VERNA VITALE        | a    |
- | 1784 | BERNADETTE HALES    | a    |
- | 1839 | BERNARDINA MCMILLAN | a    |
- | 1864 | ERNA ULLOA          | a    |
- | 1948 | SAMIRA ABERNATHY    | a    |
- +------+---------------------+------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM name WHERE MATCH('SARA') ORDER BY id ASC, username ASC OPTION fuzzy=1;"
––– output –––
- +------+------------------+------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | username         | s    |
- +------+------------------+------+
- |  188 | LARA KIRK        | a    |
- |  207 | CLARA MORRIS     | a    |
- |  351 | KLARA DONALDSON  | a    |
- |  990 | ELAINE SARABIA   | a    |
- | 1409 | LARA FREDERICK   | a    |
- | 1661 | SARA GARNER      | a    |
- | 1831 | SARAI ESPINAL    | a    |
- | 2074 | VALENTIN SARABIA | a    |
- | 2930 | LARA CINTRON     | a    |
- | 3045 | KLARA ANDRES     | a    |
- | 3373 | KLARA NORTON     | a    |
- | 3741 | CRUZ SARABIA     | a    |
- | 3780 | RUSSEL LARA      | a    |
- | 4700 | HEE SARABIA      | a    |
- | 4933 | KLARA GOODING    | a    |
- | 5830 | SARAI LINDLEY    | a    |
- | 5865 | SARAN KNAPP      | a    |
- | 5918 | SARA WAITE       | a    |
- | 6635 | CLARA BEALE      | a    |
- | 6836 | CLARA BAZAN      | a    |
- +------+------------------+------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 0 AS prepend);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnson |
- | jonas   |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend, 1 AS append);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe   |
- | john  |
- | jose  |
- | joy   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 1 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'us' AS layouts);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('jo', 'name', 'ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | joe     |
- | john    |
- | johnie  |
- | johnson |
- | jordan  |
- | jose    |
- | joseph  |
- | joshua  |
- | joy     |
- | joyce   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('al', 'name', 0 AS fuzziness);" | tail -n +4 | sort
––– output –––
- +-----------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | albert    |
- | alexander |
- | allen     |
- | dale      |
- | dallas    |
- | donald    |
- | gale      |
- | kendall   |
- | marshall  |
- | walter    |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('mi', 'name', 0 AS append, 1 AS prepend);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | ami     |
- | britni  |
- | brittni |
- | cami    |
- | choi    |
- | darci   |
- | eleni   |
- | jami    |
- | jani    |
- | jeni    |
- | joi     |
- | kaci    |
- | kami    |
- | kimi    |
- | laci    |
- | lani    |
- | luci    |
- | mancini |
- | marci   |
- | martini |
- | melani  |
- | muoi    |
- | nanci   |
- | neomi   |
- | noemi   |
- | nohemi  |
- | ricci   |
- | shani   |
- | staci   |
- | tammi   |
- | toi     |
- | tomi    |
- | traci   |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('ch', 'name', 1 AS fuzziness, 3 AS expansion_len);" | tail -n +4 | sort
––– output –––
- +-------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | chang |
- | chi   |
- | chong |
- | chung |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us,ru' AS layouts);" | tail -n +4 | sort
––– output –––
- +---------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | page    |
- | paige   |
- | palma   |
- | palmer  |
- | paris   |
- | parker  |
- | pat     |
- | patrick |
- | paul    |
- | paz     |
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('зф', 'name', 'us' AS layouts);" | tail -n +4 | sort
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | grace      |
- | gracia     |
- | grady      |
- | graham     |
- | grant      |
- | gregg      |
- | gregory    |
- | griffin    |
- | grover     |
- | montenegro |
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "select * from t where match('somethin') option fuzzy=0;"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | query     |
- +-----------+
- | some      |
- | something |
- +-----------+
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(a int);"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "select * from t option fuzzy=1;"
––– output –––
- ERROR 1064 (42000) at line 1: unknown option 'fuzzy'
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– 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 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "insert into comment_28798446 values (1, 'business Manticore interaction'), (2, 'buisness Manticore interation'), (3, 'other text content');"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('buisness Manticore interation') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   |
- +------+
- |    1 |
- |    2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('business Manticore interaction') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   |
- +------+
- |    1 |
- |    2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "SELECT id FROM comment_28798446 WHERE MATCH('Manticore') OPTION fuzzy = 1, layouts = '';"
––– output –––
- +------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   |
- +------+
- |    1 |
- |    2 |
- +------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', 'ru,us,ua' AS layouts);"
––– output –––
- +----------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | query    |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "CALL AUTOCOMPLETE('bus', 'comment_28798446', '' AS layouts);"
––– output –––
- +----------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | query    |
- +----------+
- | business |
- +----------+
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS t; CREATE TABLE t(f TEXT) min_infix_len='2';"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "INSERT INTO t VALUES (1, 'abcdef'), (2, 'abcd efgh');"
––– output –––
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcdef'); SHOW META;"
––– output –––
- +------+--------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | f      |
- +------+--------+
- |    1 | abcdef |
- +------+--------+
- +----------------+--------+
- | Variable_name  | Value  |
- +----------------+--------+
- | total          | 1      |
- | total_found    | 1      |
- | total_relation | eq     |
- | time           | #!/[0-9]{1}.[0-9]{3}/!#  |
- | keyword[0]     | abcdef |
- | docs[0]        | 1      |
- | hits[0]        | 1      |
- +----------------+--------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1; SHOW META;"
––– output –––
- +------+-----------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | f         |
- +------+-----------+
- |    1 | abcdef    |
- |    2 | abcd efgh |
- +------+-----------+
- +----------------+-------+
- | Variable_name  | Value |
- +----------------+-------+
- | total          | 2     |
- | total_found    | 2     |
- | total_relation | eq    |
- | time           | #!/[0-9]{1}.[0-9]{3}/!# |
- +----------------+-------+
––– input –––
grep -A3 "SELECT \* FROM t WHERE MATCH('abcdef')" /var/log/manticore/query.log
––– output –––
- /* #!/[A-Za-z]{3}\s+[A-Za-z]{3}\s+[0-9]{1,2}\s+[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\s+[0-9]{4}/!# conn %{NUMBER} (127.0.0.1:%{NUMBER}) real #!/[0-9]{1}.[0-9]{3}/!# wall #!/[0-9]{1}.[0-9]{3}/!# found 1 */ SELECT * FROM t WHERE MATCH('abcdef');
- /* #!/[A-Za-z]{3}\s+[A-Za-z]{3}\s+[0-9]{1,2}\s+[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\s+[0-9]{4}/!# conn %{NUMBER} (127.0.0.1:%{NUMBER}) real #!/[0-9]{1}.[0-9]{3}/!# wall #!/[0-9]{1}.[0-9]{3}/!# found 2 */ SELECT * FROM t WHERE MATCH('abcef') OPTION fuzzy=1;
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('nonexistent'); SHOW META;"
––– output –––
- +----------------+-------------+
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
- | 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 1047 (08S01): Access denied for user 'root' (using password: NO)
- | id   | f         |
- +------+-----------+
- |    1 | abcdef    |
- |    2 | abcd efgh |
- +------+-----------+
––– input –––
mysql -h0 -P9306 -e "SELECT * FROM t WHERE MATCH('\$#@\!') OPTION fuzzy=1;"
––– output –––
-
+ ERROR 1047 (08S01): Access denied for user 'root' (using password: NO)
+

Copy link

github-actions bot commented Dec 8, 2024

Linux release test results

   10 files   10 suites   7m 19s ⏱️
1 017 tests 967 ✅ 50 💤 0 ❌
1 031 runs  981 ✅ 50 💤 0 ❌

Results for commit d2879e1.

♻️ This comment has been updated with latest results.

…s; added base64 encoder and decoder; fixed ubertest to pass
…e; added stop to the daemon at startup in case of no user read from the auth file; added check of the auth_user_file permissions on linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant