Skip to content

Facing "use of closed network connection." #166

@shubham19may

Description

@shubham19may

Hello Go-Clickhouse team,

Facing following error :

database: xx
table: xxxxxxx
statement: INSERT INTO ....
objects count: 10000
values of 1st object: {...}
}, cause: doRequest: transport failed to send a request to ClickHouse: write tcp [instance-ip]-> [ck-load-balancer-ip]: use of closed network connection. Process will be killed

I have Clickhouse hosted in EKS (kubernetes) and i am inserting data from other kubernetes pod.
Clickhouse is exposed to other pods by load balancer.

Few more information points :

  1. I am inserting 10000 rows in one go, average row size is quite big (200 columns).
  2. Its taking 3-4 seconds averagely to do one insert. (This includes flattening of record 2 sec, actual insert 1.5-2 sec)
  3. Everything is running on AWS EKS
  4. Using go-clickhouse version v1.8.0
  5. Error happens randomly. No specific pattern noticed, sometimes it happens after 2 mins, sometime after 30 mins.
  6. My program works by inserting data in batches of 10000. inserting millions of rows in few hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions