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

feat(CSI-239): moveToTrash does not return error to upper layers #312

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Sep 2, 2024

TL;DR

Improved error handling in volume garbage collection process.

What changed?

  • Modified triggerGcVolume and moveVolumeToTrash functions to return errors.
  • Updated Trash method in Volume struct to handle the error returned by triggerGcVolume.
  • Removed synchronous comment from triggerGcVolume as it's no longer relevant.

How to test?

  1. Attempt to trash a volume that requires garbage collection.
  2. Verify that any errors during the process are properly propagated and handled.
  3. Test scenarios where moving the volume to trash might fail (e.g., permission issues, disk full) and ensure errors are returned.

Why make this change?

This change improves error handling and propagation in the volume garbage collection process. By returning errors from triggerGcVolume and moveVolumeToTrash, we can better detect and respond to issues that may occur during the trashing process. This enhancement allows for more robust error handling and logging, potentially improving debugging and system reliability.


Copy link

graphite-app bot commented Sep 2, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (09/02/24)

1 reviewer was added to this PR based on Sergey Berezansky's automation.

Copy link
Collaborator Author

sergeyberezansky commented Sep 12, 2024

Merge activity

  • Sep 12, 6:10 AM EDT: @sergeyberezansky started a stack merge that includes this pull request via Graphite.
  • Sep 12, 7:16 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 12, 7:18 AM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 12, 7:23 AM EDT: @sergeyberezansky merged this pull request with Graphite.

@sergeyberezansky sergeyberezansky changed the base branch from sergey/csi-243_remove-pull-secret to graphite-base/312 September 12, 2024 11:06
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/312 to dev September 12, 2024 11:14
@sergeyberezansky sergeyberezansky merged commit ded86a2 into dev Sep 12, 2024
11 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/move-to-trash-error-prop branch September 12, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant