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

fix(inputs.procstat): Do not report dead processes as running for orphan PID files #15260

Merged
merged 1 commit into from
May 2, 2024

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Apr 29, 2024

Summary

Change code to report only running processes as running if an orphan PID-files is used, which can happen if the process died unexpectedly.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #15107

@telegraf-tiger telegraf-tiger bot added area/procstat fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Apr 29, 2024
@telegraf-tiger
Copy link
Contributor

@srebhan srebhan self-assigned this Apr 30, 2024
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 2, 2024
@srebhan srebhan assigned powersj and DStrand1 and unassigned srebhan May 2, 2024
@powersj powersj removed their assignment May 2, 2024
@DStrand1 DStrand1 merged commit 920f92f into influxdata:master May 2, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.30.3 milestone May 2, 2024
@powersj powersj modified the milestones: v1.30.3, v1.31.0 Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/procstat fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Procstat Lookup reports PID as running even though the process is dead
3 participants