piscinajs / piscina

A fast, efficient Node.js Worker Thread Pool implementation

Home Page:https://piscinajs.github.io/piscina/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RangeError in Piscina -> RecordableHistogram

0xgeert opened this issue · comments

I'm getting the following error sporadically on Piscina 4.3.0

RangeError [ERR_OUT_OF_RANGE]: The value of "val" is out of range. It must be >= 1 && <= 9007199254740991. Received 0
    at RecordableHistogram.record (node:internal/histogram:283:5)
    at ThreadPool.runTask (/root/xxx/server/node_modules/piscina/dist/src/index.js:699:23)
    at Piscina.run (/root/xxx/server/node_modules/piscina/dist/src/index.js:912:65)

It's weird since I've been running similar code for ages and never seen this. Now overnight I'm seeing a couple dozen occurences.

(For now hopefully mitigated using the very timely Piscina 4.4.0 release with recordTiming: false)

👋
Do you have an
Minimum Reproducible Example that can be used?

This issue has been marked as stale because it has been opened 30 days without activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.