Skip to content

Fixes required to make the agent work without crashes on MacOS#14304

Merged
vkalintiris merged 2 commits into
netdata:masterfrom
vkalintiris:small-fixes
Jan 20, 2023
Merged

Fixes required to make the agent work without crashes on MacOS#14304
vkalintiris merged 2 commits into
netdata:masterfrom
vkalintiris:small-fixes

Conversation

@vkalintiris
Copy link
Copy Markdown
Contributor

Summary

The agent would crash on startup on MacOS systems because:

  1. The default soft limit of open file descriptors was too low,
  2. journalfile_v2_mounted_data_unmount() would iterate tiers that have not been initialized.
Test Plan
  • CI jobs
  • Build the agent and run it on MacOS.

On systems with a low soft-limit for open file descriptors, the agent
would fail to initialize all dbengine tiers.
For whatever reason, this was causing a crash on MacOS but it was
running "correctly" on Linux systems.
Copy link
Copy Markdown
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have Mac, but on FreeBSD everything is working as expected, LGTM!

@vkalintiris vkalintiris merged commit 790ef9d into netdata:master Jan 20, 2023
@vkalintiris vkalintiris deleted the small-fixes branch July 5, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants