* prevent crash when sqlite has null uuid
* simplify parsing rfc3339 timestamps
* prepare for separating dedup from status file
* split status file dedup to a separate file - no code changes
* split status-file-io
* save deduplication hashes to a separate file
* keep a hash of the deduplication slots, to ensure the file cannot be tampered
* added machine guid timestamp to status file
* do not sent zero machine guid timestamp
* check for NULL rd on retention
* fix worker_job_id parsing
* added worker last job id to status file
* added worker last job id to sentry
* send sentry breadcrumb on all events
* fix potential crash in pluginsd_acquire_dimension()
* verify uuids loaded from sql are valid
* add fatal conditions for missing journalfile, datafile, and datafile->ctx
* make sure we check for datafile->ctx on all uses of it
* add magic numbers to datafiles to find the race condition
Prepopulate UUIDs to MRG to improve startup times.
- [x] Pre-populate UUIDs to MRG on start (from SQLite)
- [x] Cleanup obsolete UUIDs from MRG once finished
This improves startup times by 3x to 5x.
---------
Co-authored-by: vkalintiris <vasilis@netdata.cloud>
Co-authored-by: Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com>
* allow users to install any version; stop netdata before installing the update
* fix compatibility with wix 4
* fix-msi: Remove conflict between options (https://docs.firegiant.com/wix3/xsd/wix/majorupgrade/)
* fix-msi: Comment not allowed code. We cannot have more than one primary key listed (FileInUse)
* fix-msi: Add Power Shell script to be called after installation
* fix-msi: Copy power shell script to installer.
* fix-msi: Add option to do download and move PS file
* fix-msi: First try run at the end
* iis_ad: Fix wrong execution order and call to powershell
* fix-msi: Add messages and test to Power Shell script
---------
Co-authored-by: thiagoftsm <thiagoftsm@gmail.com>
* Refactor ACLK sync shutdown process
* Mark all pending queries as cancelled
Wait at most 5 seconds for queries to timeout before force stopping the ACLK sync thread
* Refactor logging in ACLK synchronization process
* Improve logging message for ACLK request snapshot creation
* no status should not be reported as crash
* save and restore errno when saving status file
---------
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
* Centralize cache path handling.
* Add better debugging support for static build infrastructure.
* Centralize handling of git repository fetching for static builds.
* Centralize build directory handling in the static build.
And quit using a sub-directory of packaging/makeself from the source
tree for it.
* Remove version numbers from static build jobs.
* Better organize static build jobs.
0x numbers for non-build prep-work
1x numbers for libraries that potentially impact multiple other things
we vendor.
2x numbers for libraries that are direct dependencies of Netdata
3x numbers for combined libraries and tooling used by Netdata
4x numbers for general tooling used by Netdata
5x numbers for tooling used by single specific components
6x numbers for non-build prep-work for the Netdata build
7x numbers for the actual build of Netdata
8x numbers for post-build checks
9x numbers for the actual packaging
* Clean up variable handling in Netdata build job.
* Split post-build handling steps to their own jobs.
This will make it easier to see what is actually going on in the build
process.
* Clean up CI messages.
* Split archive creation sub-steps into indivudal jobs.
* Disable shell tracing for archive creation job.
It’s not needed in 99.9% of cases, and should only be enabled locally if
it is needed.
* Assorted fixes for code restructuring.
* Tidy up paths for runtime check.
* Fix CI handling of artifacts.
Without this, the way our build works causes it to get updated and
rebuilt (and thus trigger relinking of multiple parts of the agent) when
`cmake --install` is called, which in turn makes installs take much
longer.