Skip to content

log_event_decoder: improved group metadata fields are availability - #10151

Merged
edsiper merged 2 commits into
masterfrom
leonardo-master-log_event_decoder_group_metadata_improvement
Mar 31, 2025
Merged

log_event_decoder: improved group metadata fields are availability#10151
edsiper merged 2 commits into
masterfrom
leonardo-master-log_event_decoder_group_metadata_improvement

Conversation

@leonardo-albertovich

Copy link
Copy Markdown
Contributor

This PR tweaks the log event decoder logic to ensure that regardless of if the client code chose to receive meta records or not regular records always contain the appropriate group metadata fields to improve the code update process.

Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
When a single event was read and the unpacked record data was copied to
the unpacked group record structure it would cause a double free when
destroying the decoder.

To handle this we need to ensure that the zone pointers in those
instances do not match or otherwise re-initialize one to avoid
performing the spurious free.

Signed-off-by: Leonardo Alminana <leonardo.alminana@chronosphere.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants