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

Backport of needed fixes to 5.18 #8589

Merged
merged 6 commits into from
Dec 10, 2024

Conversation

nimrod-becker
Copy link
Contributor

Explain the changes

shirady and others added 6 commits December 10, 2024 10:47
1. The function clusterMetrics might throw an error (with an error message Operation timed out.), in case it fails, there is no try-catch block, and will end with uncaughtException. To avoid that we wrap it with try-catch block, log an error message and return from the function (we can't proceed with undefined metrics variable). Also added a json response with the details of the error in case it happens.
2. I noticed that the call prom_reporting.start_server(metrics_port, true); in fork_utils.js did not have await and added it - had to change the function signature of start_workers to have async and update its JSDoc @returns part, and also separate the call and the condition in endpoint.js.
3. Add a comment in the endpoint main for developers regarding implementation (running on the main process, running with multiple forks).
4. Change the handing under the function gather_metrics so we will print the json error object that we returned from the server.
5. Change the printing of "_create_nsfs_report: nsfs_report" so we can see the object (we used to see: "core.server.analytic_services.prometheus_reporting:: _create_nsfs_report: nsfs_report [object Object]").
6. Rename a function (we had a minor typo) from nsfs_io_state_handler to nsfs_io_stats_handler.
7. Change the order inside the function start_server in prometheus_reporting.js and set the if (req.url === '/metrics/nsfs_stats') { because it doesn't use metrics.

Signed-off-by: shirady <[email protected]>
(cherry picked from commit 09c4c45)
- Bumping deps to avoid CVE (01/12/2024)

Signed-off-by: liranmauda <[email protected]>
(cherry picked from commit d550756)
Signed-off-by: jackyalbo <[email protected]>
(cherry picked from commit da6d28c)
…m `console.warn` to `console.error`

Signed-off-by: shirady <[email protected]>
(cherry picked from commit 43849a3)
Signed-off-by: Romy <[email protected]>
(cherry picked from commit a451243)
@nimrod-becker nimrod-becker merged commit 7593023 into noobaa:5.18 Dec 10, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants