Skip to content

Commit

Permalink
Tests/show threads (#1509)
Browse files Browse the repository at this point in the history
Add tests "SHOW THREADS"

* Exposed searchd launch into a separate block.

---------

Co-authored-by: Pavel_Shilin <[email protected]>
  • Loading branch information
PavelShilin89 and Pavel_Shilin authored Oct 16, 2023
1 parent 445ecda commit 181365f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/clt-tests/base/start-searchd-1.recb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
––– input –––
searchd --cpustats
––– output –––
Manticore 6.2.13 #!/[A-Za-z0-9]{9}@[0-9]{6}/!# dev (columnar 2.2.5 #!/[A-Za-z0-9]{9}@[0-9]{6}/!#) (secondary 2.2.5 [A-Za-z0-9]{9}@[0-9]{6}/!#)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2023, Manticore Software LTD (https://manticoresearch.com)
#!/[0-9]{2}:[0-9]{2}\.[0-9]{3}/!# [%{NUMBER}] using config file '/etc/manticoresearch/manticore.conf' (457 chars)...
starting daemon version '6.2.13 #!/[A-Za-z0-9]{9}@[0-9]{6}/!# dev (columnar 2.2.5 #!/[A-Za-z0-9]{9}@[0-9]{6}/!#) (secondary 2.2.5 #!/[A-Za-z0-9]{9}@[0-9]{6}/!#)' ...
listening on all interfaces for mysql, port=9306
listening on UNIX socket /var/run/mysqld/mysqld.sock
listening on all interfaces for sphinx and http(s), port=9312
listening on all interfaces for sphinx and http(s), port=9308
16 changes: 16 additions & 0 deletions test/clt-tests/core/show-threads.rec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
––– block: ../base/start-searchd-1 –––
––– input –––
mysql -h0 -P9306 -e "SHOW THREADS\G;"
––– output –––
*************************** 1. row ***************************
TID: %{NUMBER}
Name: work_%{NUMBER}
Proto: mysql
State: query
Connection from: 127.0.0.1:%{NUMBER}
ConnID: %{NUMBER}
This/prev job time, s: %{NUMBER}ms
CPU activity: %{NUMBER}.%{NUMBER}%
Jobs done: %{NUMBER}
Thread status: working
Info: SHOW THREADS

0 comments on commit 181365f

Please sign in to comment.