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

[extension/sumologic] Skip zombie processes on Windows #36772

Merged

Conversation

pjanotti
Copy link
Contributor

@pjanotti pjanotti commented Dec 10, 2024

Description

On Windows it consistently fails to get the name of certain processes, likely zombie process, reporting: "A device attached to the system is not functioning."

My long term recommendation will be for the owners to directly use the Win32 API to get process information instead of the library: while it uses the correct permissions to get the process name it is not using the flag that allows to get the device name path which should avoid this issue even for zombie processes, I'm not sure if that is desirable or not.

Link to tracking issue

Fixes #36481

Testing

Repro the failure locally and checked that the test passed locally with the change.
I couldn't lint it locally on Windows (tool crash, will use CI to check that)

Documentation

Added changelog

@pjanotti pjanotti added Run Windows Enable running windows test on a PR and removed extension/sumologic labels Dec 10, 2024
@pjanotti pjanotti changed the title [extension/sumologic] Skip certain processes on Windows [extension/sumologic] Skip zombie processes on Windows Dec 10, 2024
@pjanotti pjanotti marked this pull request as ready for review December 10, 2024 18:48
@pjanotti pjanotti requested a review from a team as a code owner December 10, 2024 18:48
@pjanotti pjanotti requested a review from ChrsMark December 10, 2024 18:48
@pjanotti
Copy link
Contributor Author

@pjanotti
Copy link
Contributor Author

One possibility that I didn't investigate is if these zombie processes are being created by the test itself. That can happen if the test somehow opens a handle to the process and the process ends, but the handle was not closed yet.

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks ok to me, pinging code owners @rnishtala-sumo @chan-tim-sumo for review

@dmitryax dmitryax merged commit 43d345e into open-telemetry:main Dec 16, 2024
176 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 16, 2024
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…y#36772)

#### Description
On Windows it consistently fails to get the name of certain processes,
likely zombie process, reporting: "A device attached to the system is
not functioning."

My long term recommendation will be for the owners to directly use the
Win32 API to get process information instead of the library: while it
uses the correct permissions to get the process name it is not using the
flag that allows to get the device name path which should avoid this
issue even for zombie processes, I'm not sure if that is desirable or
not.


#### Link to tracking issue
Fixes open-telemetry#36481

#### Testing
Repro the failure locally and checked that the test passed locally with
the change.
I couldn't lint it locally on Windows (tool crash, will use CI to check
that)

#### Documentation

Added changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension/sumologic Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[broken test][sumologicextension] several tests failed on Windows
7 participants