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

searchd hangs on stop after FREEZE and FLUSH RAMCHUNK #2184

Open
1 of 8 tasks
sanikolaev opened this issue May 15, 2024 · 0 comments
Open
1 of 8 tasks

searchd hangs on stop after FREEZE and FLUSH RAMCHUNK #2184

sanikolaev opened this issue May 15, 2024 · 0 comments
Assignees

Comments

@sanikolaev
Copy link
Collaborator

Bug Description:

If you start Manticore, FREEZE a table, attempt FLUSH RAMCHUNK and try to stop Manticore, it will hang.

MRE:

snikolaev@dev2:~$ mysql -P9315 -h0 -e "drop table if exists t; create table t; freeze t; flush ramchunk t;"
+-------------------+-----------------------------------+
| file              | normalized                        |
+-------------------+-----------------------------------+
| data/t/t.meta     | /home/snikolaev/data/t/t.meta     |
| data/t/t.ram      | /home/snikolaev/data/t/t.ram      |
| data/t/t.settings | /home/snikolaev/data/t/t.settings |
+-------------------+-----------------------------------+
^C^C -- query aborted
^Z
[5]+  Stopped                 mysql -P9315 -h0 -e "drop table if exists t; create table t; freeze t; flush ramchunk t;"

snikolaev@dev2:~$ searchd -c configless.conf --stop
Manticore 6.2.13 9e99cea35@24051504 dev (columnar 2.2.5 0c18998@240424) (knn 2.2.5 0c18998@240424)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2024, Manticore Software LTD (https://manticoresearch.com)

[23:07.232] [3565243] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
[23:07.232] [3565243] using config file '/home/snikolaev/configless.conf' (176 chars)...
[23:07.233] [3565243] stop: successfully sent SIGTERM to pid 3327014

snikolaev@dev2:~$ tail searchd.log
[Wed May 15 09:22:19.856 2024] [3327014] starting daemon version '6.2.13 9e99cea35@24051504 dev (columnar 2.2.5 0c18998@240424) (knn 2.2.5 0c18998@240424)' ...
[Wed May 15 09:22:19.856 2024] [3327014] listening on all interfaces for mysql, port=9315
[Wed May 15 09:22:19.887 2024] [3327021] prereading 0 tables
[Wed May 15 09:22:19.887 2024] [3327014] WARNING: [BUDDY] no SPHINX or HTTP listeners found, disabled
[Wed May 15 09:22:19.888 2024] [3327021] preread 0 tables in 0.001 sec
[Wed May 15 09:22:19.888 2024] [3327014] accepting connections
[Wed May 15 09:22:51.525 2024] [3327035] WARNING: got ident_all
[Wed May 15 09:22:57.044 2024] [3327017] WARNING: got ident_all
[Wed May 15 09:23:07.233 2024] [3327014] caught SIGTERM, shutting down
[Wed May 15 09:23:10.238 2024] [3327014] WARNING: still 1 alive tasks during shutdown, after 3.004 sec

Manticore Search Version:

Manticore 6.2.13 9e99cea35@24051504 dev (columnar 2.2.5 0c18998@240424) (knn 2.2.5 0c18998@240424)

Operating System Version:

Ubuntu Jammy (dev2)

Have you tried the latest development version?

  • Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Task estimated
  • Specification created, reviewed, and approved
  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation proofread
  • Changelog updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants