pinojs / thread-stream

A streaming way to send data to a Node.js Worker Thread
MIT License
229 stars 23 forks source link

Is data lost if _flushSync took too long? #138

Open user20230119 opened 9 months ago

user20230119 commented 9 months ago

What can we do after catching Error: _flushSync took too long?

Can we retry flushing or is the data lost from write?

mcollina commented 9 months ago

The data is likely lost, and the process is in a bad/irrecoverable/unobservable state. Essentially the destination stream cannot pick it up.