-
Notifications
You must be signed in to change notification settings - Fork 8
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
goroutine error on query #11
Comments
@x0rzkov Hello. Can you please provide the script/code snippet which we can use to reproduce this issue? |
Hi, Hope you are all well and thanks for the reply ! I just made you a repository in order to test my use case. How to run: Pre-requisites
Beforetar xvf manticore-dump.sql.tar.gz Rundocker-compose up --build Importer (options)% importer -h
-h, --help display help
-f, --input-file string input-file (default "/opt/manticore/data/manticore-dump.sql")
-m, --manticore-host string input-file (default "localhost")
-p, --manticore-port uint16 input-file (default 9312)
-j, --parallel-jobs int parallel-jobs (default 2) Quick important note: Cheers, |
Hi @x0rzkov I get the following error and backtrace:
Since it's different from the mentioned in this issue's body I want to ask - is the the error which concerns you now?
It's already there:
What query do you mean? |
Now I have another error, manticore-importer | time="2020-02-24T07:22:08Z" level=info msg="query:REPLACE into limotopic (id,remote_id,service_id,url,tag) VALUES ('5d10614167fa5e88a26b78d1e16283cd', '43965481','github','https://github.com/0010-IO/gealts.git','elixir')"
manticore-importer | time="2020-02-24T07:22:08Z" level=info msg="query error: REPLACE into limotopic (id,remote_id,service_id,url,tag) VALUES ('5d10614167fa5e88a26b78d1e16283cd', '43965481','github','https://github.com/0010-IO/gealts.git','elixir')"
manticore-importer | time="2020-02-24T07:22:08Z" level=fatal msg=EOF
manticore-importer exited with code 1 So the idea is to check if manticore's go-sdk can absorb lots of data. That's simply it, and this repo is a good occasion to test your sdk. For Thanks in advance for your insights per advance. Ps. It is quite urgent as we have to decide if we have to continue to use manticore or not. |
Try
|
Hi, Thanks a lot for the reply, I am working with @x0rzkov and will try out now the query for tags. When do you think that the sdk can be fixed ? Best Regards, |
@lucmichalski
I'm afraid not today. Perhaps not even this week. What I can recommend is you could just use a mysql Go library to connect to the mysql's Manticore port (9306 in your docker compose). The binary protocol which the SDK implements might give very insignificant performance benefit, what it gives is mostly just an abstraction layer for more convenient development, but it seems that in your app (at least what you have shared) it may be not that important. Also if you're looking for max INSERT/REPLACE throughput and you have lots of incoming docs make sure you do batching as it increases the throughput significantly. Here is what we recently measured on one of our customers's single server with standard linux mysql client + GNU parallel:
You can additional enable sharding:
Caution: it doesn't include time to OPTIMIZE. |
It works fine with the mysql driver, even with 15 parallel jobs ! Please, update us when you have fixed the sdk. Thanks in advance |
Hello. So, you just need to create an instance of client for every separate coro. Then each one will have own connection which is not shared with anothers, and the crashes must go out. |
I tried with only one thread, and the bug is also triggered, at list with the go-sdk. |
I've just tried minute ago:
and get Full test clause looking like this:
it works as expected. |
the latest version from the docker container |
Hi,
Hope you are all well !
I cannot insert this query, and I have an error
Manticore Config
Any reason why ?
Cheers,
X.
The text was updated successfully, but these errors were encountered: