ClickHouse / clickhouse-js

Official JS client for ClickHouse DB
https://clickhouse.com
Apache License 2.0
225 stars 27 forks source link

write EPIPE Error #147

Closed sky505 closed 1 year ago

sky505 commented 1 year ago

Example Insert 100,000 pieces of data in a batch,Error

"err":{"type":"Error","message":"write EPIPE","stack":"Error: write EPIPE\n at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)\n at WriteWrap.callbackTrampoline (internal/async_hooks.js:134:14)","errno":-32,"code":"EPIPE","syscall":"write"},"msg":"write EPIPE"}

await this.client.insert({ table, values: data, format: 'JSONEachRow', })

slvrtrn commented 1 year ago
  1. Does it happen with smaller batches? (10k, 20k, 50k)?
  2. Could you provide a minimal reproduction scenario?