-
Notifications
You must be signed in to change notification settings - Fork 577
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
broken pipe driver issue #844
Comments
Mentioning here @jkaflik for attention to this issue . Similar issue was reported in ClickHouse/ClickHouse#17446 |
also getting similar issues such as
|
What's your estimated block size? You are using the HTTP protocol, right? Do you know if that's reproducible on native? |
I'm also getting |
Just wanted to chime in and say that I also ran across this same error today. Before today I've not had this error before. My insert code looks like this if err := batch.Send(); err != nil && err != clickhouse.ErrBatchAlreadySent {
log.Println("Failed inserting batch of flows, retrying: ", err)
if err := batch.Send(); err != nil {
lostFlowCount += flowCount
log.Println("Retry insert failed, continuing to next batch: ", err)
log.Println("Number of lost flows: ", lostFlowCount)
}
} The first insert attempt fails with: The retry fails with: I'll add a batch already sent error check, but I just wanted to add that this was something I saw as well. |
@vnazarenko @rtkaratekid @rtkaratekid |
|
I don't think anything has changed, but I'm also poking away at this to see if it's my fault. |
@vnazarenko @rtkaratekid can you have a look if it's reproducible on a recent client version? |
@jkaflik today I dug into this more, what I found was happening was that as clickhouse was setting up (I have a bit of db migration code as well) there would be about 100 to 200 failed inserts and then after that everything worked fine. I don't think it's a timing issue because my migration code blocks until the migration is found to be successful, but it could be? I'll probably be able to get around to trying it with an updated client tomorrow, but it's kind of tricky for me to replicate the issue consistently. It's not a huge deal for me right now, just wanted to chime in and help if I could. |
@rtkaratekid sure. I want to get as many details from you, so I can also get prepared to have a reproducible environment. |
I'll try new version on days |
Hi @vnazarenko @rtkaratekid @piyushdatazip , I will continue to work on finding a better answer to what happens and fix it. |
Nice to hear that @jkaflik , since It was an urgent issue for my implementation, we routed towards using the native interface instead of sql, and the problem was resolved. |
@piyushdatazip our finding is indeed it's caused by the |
Hi @vnazarenko @rtkaratekid @piyushdatazip Any updates on this topic? I hope you don't encounter such issues anymore. If no new reports arrive, I will close this ticket. |
@jkaflik you can close the issue |
Issue description
Getting this error while making an insert query to clickhouse, Batch Insert, 10000 object in single batch
Interface: E.g.
database/sql
Driver version: v2.4.3
Go version: go version go1.19.1 darwin/arm64
ClickHouse Server version: Tried latest as well as 4 month old release
The text was updated successfully, but these errors were encountered: