forked from netdata/netdata
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] master from netdata:master #304
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* log stream_info payload when it cannot be parsed * log incorrect status information in stream info parsing
Cleanup during shutdown if needed (address coverity warning)
Reviewer's Guide by SourceryThis pull request introduces several bug fixes and improvements to the Netdata Agent. It fixes memory allocation issues in the metadata event loop, corrects the handling of status codes in stream info parsing, swaps the order of glibc and Netdata memory maps in the pulse daemon, and updates issue templates. Sequence diagram for stream info error handling flowsequenceDiagram
participant Client
participant StreamParent
participant JSONParser
Client->>StreamParent: Request stream info
StreamParent->>JSONParser: Parse stream info response
alt Status not OK
JSONParser-->>StreamParent: Return false with error
StreamParent->>StreamParent: Reset DB parameters
StreamParent-->>Client: Log detailed error with JSON payload
end
Class diagram for metadata cleanup structureclassDiagram
class CleanupData {
+JudyL* JudyL
+char* machine_guid
}
class HostCtxCleanup {
+string* context
}
class PendingList {
+JudyL* JudyL
}
CleanupData --> PendingList
HostCtxCleanup --> PendingList
note for CleanupData "Added memory cleanup"
note for HostCtxCleanup "Added context cleanup"
Flow diagram for metadata event loop cleanupgraph TD
A[Start Cleanup] --> B{Check cl_cleanup_data}
B -->|Exists| C[Free machine_guid]
C --> D[Free JudyL array]
D --> E{Check pending_ae_list}
B -->|Not exists| E
E -->|Exists| F[Free JudyL array]
F --> G{Check pending_ctx_cleanup}
E -->|Not exists| G
G -->|Exists| H[Free context]
H --> I[Free cleanup structure]
G -->|Not exists| J[End Cleanup]
I --> J
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Fix memory leaks in the metadata event loop, stream parents, and pulse daemon memory system. Correctly report glibc and Netdata memory maps in the pulse daemon. Add issue type to issue templates.
Bug Fixes:
Enhancements: