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

[pkg/stanza/adapter] Missing storage extension causes panic during shutdown #16212

Closed
djaglowski opened this issue Nov 9, 2022 · 0 comments · Fixed by #16213
Closed

[pkg/stanza/adapter] Missing storage extension causes panic during shutdown #16212

djaglowski opened this issue Nov 9, 2022 · 0 comments · Fixed by #16213
Assignees
Labels
bug Something isn't working pkg/stanza

Comments

@djaglowski
Copy link
Member

Component(s)

pkg/stanza

What happened?

Steps to Reproduce

receivers:
  filelog:
    storage: foo
    include: foo.log

exporters:
  logging:

service:
  pipelines:
    logs:
      receivers: [filelog]
      exporters: [logging]

Expected Result

2022-11-09T10:23:14.838-0500    info    service/service.go:129  Shutdown complete.
Error: cannot start pipelines: storage client: storage extension 'foo' not found
2022-11-09 10:23:14.838221 I | collector server run finished with error: cannot start pipelines: storage client: storage extension 'foo' not found

Actual Result

2022-11-09T10:22:15.859-0500    info    adapter/receiver.go:145 Stopping stanza receiver        {"kind": "receiver", "name": "filelog", "pipeline": "logs"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x105c78b9c]

goroutine 1 [running]:
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/adapter.(*receiver).Shutdown(0x1400101a6c0, {0x109df1ee0, 0x1400019c000})
        github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.64.0/adapter/receiver.go:151 +0x9c
go.opentelemetry.io/collector/service/internal/pipelines.(*Pipelines).ShutdownAll(0x140000c9090, {0x109df1ee0, 0x1400019c000})
        go.opentelemetry.io/collector@v0.64.0/service/internal/pipelines/pipelines.go:121 +0x378
go.opentelemetry.io/collector/service.(*service).Shutdown(0x14000acce80, {0x109df1ee0, 0x1400019c000})

Collector version

v0.63.1

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg/stanza
Projects
None yet
1 participant