You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node silently exits with code 0, no error, when using a specific string for String.includes inside worker. This happens during my call to await Promise.all(worker_promises) where worker_promises is an array of Piscina runTask() promises.
If you change it to a different string and run, it will exit normally producing full output.
I can give you my script to test with, but the problem is that it's designed to parse log file data from DDoS attacks (to count occurrences of requests matching certain patterns) and the dataset causing the issue is about 20GiB (1,186 gzipped log files). I can send it to you if you're okay with this.
Here are the two relevant sections of code and the output when it works:
Here are the two relevant sections of code and the output when it silently fails:
The dataset remains the same between runs and there are no other code changes.
I'm on node v14.15.5, macOS 11.2 x86
The text was updated successfully, but these errors were encountered:
So I found that it works if I comment out two console.log()'s that were trying to log a variable that doesn't exist... though it never gave me any errors about it.
Could this console.log() have been somehow killing the worker threads and eventually it just stops and exits with 0 without continuing execution in main.js?
I apologize, it's just a quick and dirty script to get some insight into data.
Hey jasnell,
Node silently exits with code 0, no error, when using a specific string for String.includes inside worker. This happens during my call to await Promise.all(worker_promises) where worker_promises is an array of Piscina runTask() promises.
If you change it to a different string and run, it will exit normally producing full output.
I can give you my script to test with, but the problem is that it's designed to parse log file data from DDoS attacks (to count occurrences of requests matching certain patterns) and the dataset causing the issue is about 20GiB (1,186 gzipped log files). I can send it to you if you're okay with this.
Here are the two relevant sections of code and the output when it works:
Here are the two relevant sections of code and the output when it silently fails:
The dataset remains the same between runs and there are no other code changes.
I'm on node v14.15.5, macOS 11.2 x86
The text was updated successfully, but these errors were encountered: