Open ats1999 opened 4 months ago
Good day, @ats1999 ! I think, I know where problem is.
You are using ClickHousePipedOutputStream that internally has queue of buffers and current buffer. The last one is not submitted to the queue until full or stream is closed. The exception is a bit confusing but stack trace tell that procedure that sends bytes to server have not got anything from provided input stream for 30seconds.
Please, add stream.close();
(to close output buffer where you are writing data) before f.get()
. It will push buffer to the queue and further to server. Please let me know if you have questions.
@ats1999 did it help to add stream.close();
?
I am using clickhouse docker on local machine. just testing out things, nothing else is connected with clickhouse. I have even tried starting and restarting the clickhouse, but didn’t work.
Java Code
Error
Although, below code is working fine.