pinax-network / substreams-sink-clickhouse

Substreams ClickHouse Sink
MIT License
3 stars 0 forks source link

Error: Too many open files #117

Closed DenisCarriere closed 8 months ago

DenisCarriere commented 8 months ago
POST - http://substreams-sink-clickhouse-service:3000/webhook failed
│ 343 |     value(instance) {
│ 344 |       return instance instanceof InternalReadStream;
│ 345 |     }
│ 346 |   });
│ 347 | }(class ReadStream2 extends Stream._getNativeReadableStreamPrototype(2, Stream.Readable) {
│ 348 |   constructor(pathOrFd, options = defaultReadStreamOptions) {
│                       ^
│ EMFILE: Too many open files
│    errno: -24
│  syscall: "open"
│    path: "buffer.txt"
│
│       at new ReadStream2 (node:fs:348:27)
│       at new ReadStream3 (node:fs:339:45)
│       at node:fs:45:61
│       at /home/bun/app/src/buffer.ts:12:17
│       at read (/home/bun/app/src/buffer.ts:8:28)
│       at /home/bun/app/src/buffer.ts:32:24
│       at flush (/home/bun/app/src/buffer.ts:29:29)
│       at /home/bun/app/src/clickhouse/handleSinkRequest.ts:14:11
│       at handleSinkRequest (/home/bun/app/src/clickhouse/handleSinkRequest.ts:6:41)
DenisCarriere commented 8 months ago

Should be fixed in v0.3.6