hashicorp / hashicorp/envconsul

"Kill failed: os: process already finished" error log on normal shutdown

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.1k
Forks
194
PR merge metrics
No merged PRs in 30d

Description

### Envconsul version
0.13.2

### Problem
I saw the following in my application's logs:
```
2024-03-26T18:36:31.644Z [INFO] envconsul: (child) receiving signal "interrupt"
2024-03-26T18:36:31.650474Z [INFO] my_app: Received SIGINT. Gracefully shutting down...
2024-03-26T18:36:31.651763Z [INFO] my_app: Gracefully shutdown.
Cleaning up...
2024-03-26T18:36:31.656Z [INFO] envconsul.runner: stopping
2024-03-26T18:36:31.656Z [INFO] envconsul: (child) stopping process
2024-03-26T18:36:34.034Z [ERROR] envconsul: (child) Kill failed: os: process already finished
```

### Expected behavior
No error log should've been emitted.

### Actual behavior
An error log was emitted, but no actual error occurred. The process shut down as it should. This doesn't happen every time, but sometimes. It seems like the process exited so quickly that envconsul thought something went wrong? But it just exited as it should.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.