weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes
https://www.weave.works/oss/scope/
Apache License 2.0
5.84k stars 708 forks source link

fix: copy report before modifying #3856

Closed bboreham closed 3 years ago

bboreham commented 3 years ago

We call UnsafeRemovePartMergedNodes() which modifies the data, so all implementations of Report() must ensure they return a new object, not one which is cached or shared across goroutines.

Fixes #3855