Skip to content

Fix: Revert Changes to Socket Exist Check#79

Merged
falfaroc merged 2 commits into
mainfrom
usr/falfaroc/revert-sock-check
Apr 29, 2025
Merged

Fix: Revert Changes to Socket Exist Check#79
falfaroc merged 2 commits into
mainfrom
usr/falfaroc/revert-sock-check

Conversation

@falfaroc

@falfaroc falfaroc commented Apr 29, 2025

Copy link
Copy Markdown

Description

After various scale testing, it was identified that removing of the socket was not properly occurring. It is a common misconception that Stat returns of opposite if the file exists for the error, but that is not the case. A common practice is to negate the NotExist check for checking a files existence.

Reference:

After reverting this change, upon a CLBO, the controller pods recover as expected.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Ensure that all tests run.
  • Run a scale test that causes the controller pod to crash and ensure that the tests succeed.

@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/gocsi/utils 91.32% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/gocsi/utils/utils.go 89.87% (ø) 227 204 23

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@falfaroc falfaroc merged commit c3d2d8e into main Apr 29, 2025
6 checks passed
@falfaroc falfaroc deleted the usr/falfaroc/revert-sock-check branch April 29, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants