Skip to content

Panic during shutdown of multiple aggregators #5637

@KevinJoiner

Description

@KevinJoiner

Relevant telegraf.conf:

[[outputs.file]]
        files = ["stdout"]
[[inputs.exec]]
        commands = ["python -c print(5)"]
        interval = "1s"
        data_format = "value"
        data_type = "integer"
[[aggregators.valuecounter]]
        drop_original = false
        period = "5s"
        fields = ["value"]
[[aggregators.valuecounter]]
        drop_original = false
        period = "5s"
        fields = ["value"]

System info:

Telegraf 1.9.1
OS: RHEL 7.6

Steps to reproduce:

  1. Run Telegraf with two or more aggregator plugins.
  2. Stop Telegraf with kill -SIGTERM <PID> or keyboard interrupt

Expected behavior:

Telegraf gracefully stops

Actual behavior:

"panic: send on closed channel"

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behaviorpanicissue that results in panics from Telegraf

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions