Skip to content

concurrent map writes fatal error  #588

Description

@awwwd

Added 2 sinks and it started crashing with the following -

fatal error: concurrent map writes

goroutine 15 [running]:
runtime.throw({0x1ad93f7?, 0x1ac253c?})
	/opt/bitnami/go/src/runtime/panic.go:992 +0x71 fp=0xc0005c6c58 sp=0xc0005c6c28 pc=0x435c51
runtime.mapassign_faststr(0x0?, 0x8000101?, {0x1ac42cd, 0x7})
	/opt/bitnami/go/src/runtime/map_faststr.go:212 +0x39c fp=0xc0005c6cc0 sp=0xc0005c6c58 pc=0x4132dc
github.com/wavefronthq/wavefront-collector-for-kubernetes/internal/wf.(*Point).OverrideTag(0xc0004ce5f0?, {0x1ac42cd?, 0xc000200c00?}, {0xc000155b00, 0x12})
	/workspace/internal/wf/point.go:61 +0x98 fp=0xc0005c6cf0 sp=0xc0005c6cc0 pc=0x7770d8
github.com/wavefronthq/wavefront-collector-for-kubernetes/plugins/sinks/wavefront.(*wavefrontSink).Export(0xc000200c00, 0xc0002140c0)
	/workspace/plugins/sinks/wavefront/wavefront.go:189 +0x21c fp=0xc0005c6f08 sp=0xc0005c6cf0 pc=0x157211c
github.com/wavefronthq/wavefront-collector-for-kubernetes/plugins/sinks.NewSinkManager.func1({{0x1d574e0, 0xc000200c00}, 0xc00024e540, 0xc00024e5a0, 0xc00024e600})
	/workspace/plugins/sinks/manager.go:79 +0x110 fp=0xc0005c6fa8 sp=0xc0005c6f08 pc=0x166dcb0
github.com/wavefronthq/wavefront-collector-for-kubernetes/plugins/sinks.NewSinkManager.func2()
	/workspace/plugins/sinks/manager.go:90 +0x3e fp=0xc0005c6fe0 sp=0xc0005c6fa8 pc=0x166e19e
runtime.goexit()
	/opt/bitnami/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0005c6fe8 sp=0xc0005c6fe0 pc=0x468281
created by github.com/wavefronthq/wavefront-collector-for-kubernetes/plugins/sinks.NewSinkManager
	/workspace/plugins/sinks/manager.go:75 +0x2fe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions