Skip to content
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

processor/servicegraphprocessor paniced due to concurrent map iteration and map write #16850

Closed
kebe7jun opened this issue Dec 12, 2022 · 1 comment · Fixed by #16851
Closed
Labels
bug Something isn't working needs triage New item requiring triage processor/servicegraph Service graph processor

Comments

@kebe7jun
Copy link
Contributor

Component(s)

processor/servicegraph

What happened?

Description

collector paniced.

fatal error: concurrent map iteration and map write

goroutine 164 [running]:
github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor.(*processor).cleanCache(0xc0005476b0)
	github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor@v0.64.0/processor.go:478 +0x8c
github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor.(*processor).cacheLoop(0xc0005476b0, 0x0?)
	github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor@v0.64.0/processor.go:467 +0x36
created by github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor.(*processor).Start
	github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor@v0.64.0/processor.go:126 +0x42d

Steps to Reproduce

Expected Result

Actual Result

Collector version

v0.64.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

Ubuntu 20.04

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@kebe7jun kebe7jun added bug Something isn't working needs triage New item requiring triage labels Dec 12, 2022
@JaredTan95
Copy link
Member

/label processor/servicegraph

@github-actions github-actions bot added the processor/servicegraph Service graph processor label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage processor/servicegraph Service graph processor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants