Component(s)
receiver/otlp, config/confighttp
What happened?
Describe the bug
An error occurs with snappy decompression.
Steps to reproduce
Configure snappy compression for the OTLP receiver
What did you expect to see?
No errors
What did you see instead?
See error log
Collector version
v0.151.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
fatal error: sync: unlock of unlocked mutex
goroutine 48499 [running]:
internal/sync.fatal({0xa4032ec?, 0x373e910417c0?})
GOROOT/src/runtime/panic.go:1191 +0x18
internal/sync.(*Mutex).unlockSlow(0x373e910417d4, 0xffffffff)
GOROOT/src/internal/sync/mutex.go:204 +0x35
internal/sync.(*Mutex).Unlock(...)
GOROOT/src/internal/sync/mutex.go:198
sync.(*Mutex).Unlock(...)
GOROOT/src/sync/mutex.go:65
sync.(*Once).doSlow(0x373e91c44f50?, 0x373eadc29fed?)
GOROOT/src/sync/once.go:80 +0xe4
sync.(*Once).Do(...)
GOROOT/src/sync/once.go:69
go.opentelemetry.io/collector/internal/grpccompression/snappy.(*reader).Read(0x373e910417c0, {0x373eadc29fed?, 0x373e4d674300?, 0x8000?})
external/io_opentelemetry_go_collector/internal/grpccompression/snappy/snappy.go:96 +0x65
io.(*LimitedReader).Read(0x373eaa8bc6c0, {0x373eadc29fed?, 0x373e4d6526c0?, 0x373eaa8bc6c0?})
GOROOT/src/io/io.go:479 +0x43
google.golang.org/grpc/mem.ReadAll({0xad75ec0, 0x373eaa8bc6c0}, {0xadfedd8, 0x373e4d6526c0})
external/org_golang_google_grpc/mem/buffer_slice.go:268 +0x188
google.golang.org/grpc.decompress({0xae3eea0, 0x373e4d66a320}, {0x373e4d836c60?, 0x373e68b4c8b0?, 0x425745?}, {0x0?, 0x0?}, 0x40000000, {0xadfedd8, 0x373e4d6526c0})
external/org_golang_google_grpc/rpc_util.go:999 +0x15c
google.golang.org/grpc.recvAndDecompress(0x373e9e41f170, {0xad7dfa0, 0x373e96992820}, {0x0, 0x0}, 0x40000000, 0x373e91041d00, {0xae3eea0, 0x373e4d66a320}, 0x1)
external/org_golang_google_grpc/rpc_util.go:947 +0x2ab
google.golang.org/grpc.(*Server).processUnaryRPC(0x373e4f182008, {0xae516e0, 0x373e9e41f0b0}, 0x373e96992820, 0x373e4e86a060, 0x10da6290, 0x0)
external/org_golang_google_grpc/server.go:1386 +0xf25
google.golang.org/grpc.(*Server).handleStream(0x373e4f182008, {0xae53b28, 0x373e4d859d40}, 0x373e96992820)
external/org_golang_google_grpc/server.go:1856 +0xc2e
google.golang.org/grpc.(*Server).serveStreams.func2.1()
external/org_golang_google_grpc/server.go:1065 +0x7f
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 302
external/org_golang_google_grpc/server.go:1076 +0x11d
Additional context
Likely cause: ee41084
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Component(s)
receiver/otlp, config/confighttp
What happened?
Describe the bug
An error occurs with snappy decompression.
Steps to reproduce
Configure snappy compression for the OTLP receiver
What did you expect to see?
No errors
What did you see instead?
See error log
Collector version
v0.151.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
fatal error: sync: unlock of unlocked mutex goroutine 48499 [running]: internal/sync.fatal({0xa4032ec?, 0x373e910417c0?}) GOROOT/src/runtime/panic.go:1191 +0x18 internal/sync.(*Mutex).unlockSlow(0x373e910417d4, 0xffffffff) GOROOT/src/internal/sync/mutex.go:204 +0x35 internal/sync.(*Mutex).Unlock(...) GOROOT/src/internal/sync/mutex.go:198 sync.(*Mutex).Unlock(...) GOROOT/src/sync/mutex.go:65 sync.(*Once).doSlow(0x373e91c44f50?, 0x373eadc29fed?) GOROOT/src/sync/once.go:80 +0xe4 sync.(*Once).Do(...) GOROOT/src/sync/once.go:69 go.opentelemetry.io/collector/internal/grpccompression/snappy.(*reader).Read(0x373e910417c0, {0x373eadc29fed?, 0x373e4d674300?, 0x8000?}) external/io_opentelemetry_go_collector/internal/grpccompression/snappy/snappy.go:96 +0x65 io.(*LimitedReader).Read(0x373eaa8bc6c0, {0x373eadc29fed?, 0x373e4d6526c0?, 0x373eaa8bc6c0?}) GOROOT/src/io/io.go:479 +0x43 google.golang.org/grpc/mem.ReadAll({0xad75ec0, 0x373eaa8bc6c0}, {0xadfedd8, 0x373e4d6526c0}) external/org_golang_google_grpc/mem/buffer_slice.go:268 +0x188 google.golang.org/grpc.decompress({0xae3eea0, 0x373e4d66a320}, {0x373e4d836c60?, 0x373e68b4c8b0?, 0x425745?}, {0x0?, 0x0?}, 0x40000000, {0xadfedd8, 0x373e4d6526c0}) external/org_golang_google_grpc/rpc_util.go:999 +0x15c google.golang.org/grpc.recvAndDecompress(0x373e9e41f170, {0xad7dfa0, 0x373e96992820}, {0x0, 0x0}, 0x40000000, 0x373e91041d00, {0xae3eea0, 0x373e4d66a320}, 0x1) external/org_golang_google_grpc/rpc_util.go:947 +0x2ab google.golang.org/grpc.(*Server).processUnaryRPC(0x373e4f182008, {0xae516e0, 0x373e9e41f0b0}, 0x373e96992820, 0x373e4e86a060, 0x10da6290, 0x0) external/org_golang_google_grpc/server.go:1386 +0xf25 google.golang.org/grpc.(*Server).handleStream(0x373e4f182008, {0xae53b28, 0x373e4d859d40}, 0x373e96992820) external/org_golang_google_grpc/server.go:1856 +0xc2e google.golang.org/grpc.(*Server).serveStreams.func2.1() external/org_golang_google_grpc/server.go:1065 +0x7f created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 302 external/org_golang_google_grpc/server.go:1076 +0x11dAdditional context
Likely cause: ee41084
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.