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

Updated condition for IoInProgress call #82

Merged
merged 5 commits into from
May 19, 2022

Conversation

Sakshi-dell
Copy link
Collaborator

Description

Added condition to check for IOinProgress only when volumes IDs are present in the ValidateVolumeHostConnectivity request as the field is required only in the case when volumeID is present in the request, also to reduce the number of calls to the API making it efficient.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#262

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

  • Ran integration and scalability test with resiliency
  • Ran unit test in csi-powerscale

log.Error("Failed to get Isilon config with error ", err.Error())
return nil, err
}
//Check for IOinProgress only when volumes IDs are present in the request as the field is required only in the latter case also to reduce number of calls to the API making it efficient
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be more readable if this code in another function and called here.

@randeepdell randeepdell merged commit 6977968 into main May 19, 2022
@randeepdell randeepdell deleted the Update-IOinProgress-condition branch May 19, 2022 05:49
@meggm meggm requested a review from hoppea2 May 25, 2022 14:04
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.

3 participants