Skip to content

"drop table if exists t; create table t" via /cli hangs #275

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

Closed
8 tasks done
sanikolaev opened this issue May 7, 2024 · 8 comments
Closed
8 tasks done

"drop table if exists t; create table t" via /cli hangs #275

sanikolaev opened this issue May 7, 2024 · 8 comments
Assignees
Labels
bug Something isn't working rel::6.3.2 Released in daemon 6.3.2

Comments

@sanikolaev
Copy link
Collaborator

sanikolaev commented May 7, 2024

Bug Description:

MRE:

snikolaev@dev2:~$ sudo systemctl restart manticore
snikolaev@dev2:~$ time curl localhost:9308/cli -d 'drop table if exists t; create table t'
{"error":"file_get_contents(http://127.0.0.1:9312/sql?mode=raw): Failed to open stream: HTTP request failed!"}
real	1m0.069s
user	0m0.009s
sys	0m0.000s

Notes:

  • Note, it hangs for exactly 1 minute
  • 2nd/3rd run sometimes also hangs, but sometimes it's fast for a few consecutive runs. It seems that restarting the daemon helps it hang again.
  • The same via /cli_json works fast:
     snikolaev@dev2:~$ time curl localhost:9308/cli_json -d 'drop table if exists t; create table t'
     {"error":"P03: syntax error, unexpected $undefined, expecting tablename or MODIFY near '; create table '"}
     real	0m0.010s
     user	0m0.008s
     sys	0m0.000s
    

Manticore Search Version:

Manticore 6.2.13 e12bc4f67@24050620 dev (columnar 2.2.5 0c18998@240424) (secondary 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
@sanikolaev sanikolaev added the bug Something isn't working label May 7, 2024
@sanikolaev
Copy link
Collaborator Author

Blocked by #274 as it seems they have the same origin.

@sanikolaev
Copy link
Collaborator Author

The likely root cause is #274 (comment)

@Nick-S-2018
Copy link
Contributor

@sanikolaev
Copy link
Collaborator Author

Tests developed

Tests will be implemented within #274

@sanikolaev
Copy link
Collaborator Author

@Nick-S-2018
Copy link
Contributor

@sanikolaev
Copy link
Collaborator Author

@sanikolaev sanikolaev reopened this May 28, 2024
@Nick-S-2018
Copy link
Contributor

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rel::6.3.2 Released in daemon 6.3.2
Projects
None yet
Development

No branches or pull requests

2 participants