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
grpc query hangs in ClickHouse 21.3 and 21.6 #27024
Comments
Can you please provide a bit more information about how you called ClickHouse via gRPC? There could be multiple ways to do that, I mean in the service defined in |
Sorry I forgot to mention here. I use
I didn't get a chance to try that, as I'm still testing the Java client. You can use below docker image to reproduce the issue(assume your clickhouse server is docker run --rm -it zhicwu/clickhouse-java-test bash
# usage:
# -t <threads>
# -p connection=<reuse|new> whether to reuse connection for queries or not
java -DdbHost="my-server" -jar benchmarks.jar jmh -t 2 -p connection=reuse Simple
# in case you need to review the modified IDL
unzip -p benchmarks.jar clickhouse_grpc.proto |
Your benchmark was very useful, it helped me to reproduce the issue. So now I know how to fix that. |
I've changed type of those and some other fields from string to bytes in our repository too, thanks for the idea. #27431 |
Confirmed that this has been fixed. Below is the test results(using 16 threads) against
|
Sending simple queries like
insert into test_insert(i) values(<random number>)
orselect toUInt32(<random number>) as n
via grpc(non-ssl) using multiple threads, often some of them hang in ClickHouse for ever. Using JDBC driver, which uses http protocol, won't run into this issue.I posted some more information at here but not sure if that helps.
Expected Behavior
No query hangs in server - if we have to live with that, at least they can be killed.
The text was updated successfully, but these errors were encountered: