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

Implement method SnapshotCreateWaitForCompletion for AdStorage type #2494

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

viveksinghggits
Copy link
Contributor

Change Overview

The method SnapshotCreateWaitForCompletion for AdStorage was just returning nil. Which caused some problems because we were not able to wait for snapshot to complete, successfully.
This PR fixes that by implementing the mentioned method.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

The method `SnapshotCreateWaitForCompletion` for `AdStorage` was just returning
`nil`. Which caused some problems because we were not able to wait for snapshot
to complete, successfully.
This commit fixes that by implementing the mentioned method.
Copy link
Contributor

@ankitjain235 ankitjain235 left a comment

Choose a reason for hiding this comment

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

LGTM.

Kanister automation moved this from In Progress to Reviewer approved Nov 24, 2023
We checked if the snapshot was succeeded by making sure that these two
conditions were false

- err!=nil
- provisioningState!=succeeded

second condition can be false even if the provisioning state is pending,
let's say. and because of that we would return success even in the case
of err being not nil and provisioningStaet being pending. Which would
be a problem.
This fixes that.
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM

@pavannd1 pavannd1 added the kueue label Nov 27, 2023
@pavannd1 pavannd1 removed the kueue label Nov 27, 2023
@mergify mergify bot merged commit 0fe1346 into master Nov 28, 2023
15 checks passed
Kanister automation moved this from Reviewer approved to Done Nov 28, 2023
@mergify mergify bot deleted the wait-az-snapshot branch November 28, 2023 11:20
@leuyentran leuyentran mentioned this pull request Dec 6, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants