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

Some time panic Option::unwrap() when clickhouse restarts #200

Closed
igorivaniuk opened this issue Oct 4, 2023 · 4 comments
Closed

Some time panic Option::unwrap() when clickhouse restarts #200

igorivaniuk opened this issue Oct 4, 2023 · 4 comments

Comments

@igorivaniuk
Copy link

v 1.1.0-alpha.1
When clickhouse server restarts, getting panics.

thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', src/types/query_result/mod.rs:94:44

Same for insert queries

In all places are some like

let transport = c.inner.take().unwrap();
@igorivaniuk
Copy link
Author

Found that there no pong message

2023-10-04T14:51:05.019627Z  INFO clickhouse_rs: [ping]    
2023-10-04T14:51:05.019808Z  INFO clickhouse_rs::types::query_result: [send query] select .................... 
thread 'tokio-runtime-worker' panicked at 'called `Option::unwrap()` on a `None` value', src/types/query_result/mod.rs:94:44

Usual there are pong response

2023-10-04T14:42:48.402376Z  INFO clickhouse_rs: [ping]    
2023-10-04T14:42:48.402662Z  INFO clickhouse_rs: [pong]    
2023-10-04T14:42:48.402688Z  INFO clickhouse_rs::types::query_result: [send query] select ..........

@amitassaraf
Copy link

Happens to me too

@suharev7
Copy link
Owner

suharev7 commented Oct 9, 2023

I've pushed a fix for this big.

@igorivaniuk
Copy link
Author

Thank you.
I checked it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants