Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NC | Noobaa Service Does Not Contain --unhandled-rejections=warn #8570

Open
shirady opened this issue Dec 2, 2024 · 2 comments
Open

NC | Noobaa Service Does Not Contain --unhandled-rejections=warn #8570

shirady opened this issue Dec 2, 2024 · 2 comments
Labels

Comments

@shirady
Copy link
Contributor

shirady commented Dec 2, 2024

Environment info

  • NooBaa Version: current, 5.18.0
  • Platform: NC

Actual behavior

  1. When looking at noobaa.service file we have this line:
    ExecStart=/usr/local/noobaa-core/bin/node /usr/local/noobaa-core/src/cmd/nsfs.js

Expected behavior

  1. When looking at the package.json file we are running node js scripts with --unhandled-rejections=warn:
    "nsfs": "node --unhandled-rejections=warn src/cmd/nsfs",

Steps to reproduce

  1. none

More information - Screenshots / Logs / Other output

none

@shirady shirady added NS-FS Non Containerized Non containerized labels Dec 2, 2024
@romayalon
Copy link
Contributor

romayalon commented Dec 3, 2024

@dannyzaken @guymguym @shirady
We discussed it a few weeks ago when had the previous PANIC - (due to process.memoryUsage() failure)
Danny offered an idea that without --unhandled-rejections=warn we actually handle the issues we observe and not just getting warnings that later on being ignored.

Also, there was a suggestion to have another listener for unhandled rejections on panic.js similarly to
process.on('uncaughtException', err => panic('process uncaughtException', err));

@shirady
Copy link
Contributor Author

shirady commented Dec 3, 2024

I would add that I think that if we decide not to add the flag, a comment about it can be useful - when reading it and comparing to package.json examples and also noobaa-cli we always have this --unhandled-rejections=warn.

./bin/node --unhandled-rejections=warn ./src/cmd/manage_nsfs.js "$@"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants