Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevent crash due to concurrent map access in Go plugin log proc…
…essing (#1284) This commit resolves a critical concurrency issue in the Go plugin log processing that could lead to a crash. The problem was identified as a "concurrent map read and map write" error stemming from shared context map usage without proper isolation. During high log volume situations, the concurrent modification of the context map in the ReceiveLogGroup function and simultaneous access in the Add function caused the crash. The fix introduces a shallow copy of the context map for each log instance, ensuring that each processor works with an independent map and preventing the concurrent access conflicts that could lead to runtime crashes.
- Loading branch information