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

fix(CSI-241): fix unmountWithOptions to use map key rather than options.String() #317

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

sergeyberezansky
Copy link
Collaborator

@sergeyberezansky sergeyberezansky commented Sep 3, 2024

TL;DR

Updated nfsMounter to use AsMapKey() method for mount options.

What changed?

Modified the nfsMounter struct in nfsmounter.go to use the AsMapKey() method instead of String() when accessing and manipulating the mountMap. This change affects the NewMount and unmountWithOptions functions.

How to test?

  1. Create a new mount using NewMount with various mount options.
  2. Verify that the mount is correctly added to the mountMap using the AsMapKey() method.
  3. Attempt to unmount using unmountWithOptions and ensure the correct mount is accessed and removed from the map.
  4. Test with different filesystem names and mount options to ensure consistency.

Why make this change?

The AsMapKey() method likely provides a more consistent or appropriate key for the mountMap than the String() method. This change may improve the reliability of mount tracking and management, potentially avoiding issues related to inconsistent key generation or comparison.


Copy link

graphite-app bot commented Sep 3, 2024

Graphite Automations

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

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

@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from 34ecc36 to 8ba8f94 Compare September 11, 2024 10:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from 8ba8f94 to 1ee9988 Compare September 11, 2024 11:11
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from 1ee9988 to e7e8ebf Compare September 11, 2024 11:34
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from e7e8ebf to 16800ea Compare September 11, 2024 11:51
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from 16800ea to ec3c387 Compare September 11, 2024 13:02
@sergeyberezansky sergeyberezansky force-pushed the sergey/csi-245-configurable-client-group branch from ec3c387 to 221116b Compare September 11, 2024 14:25
Copy link
Collaborator Author

sergeyberezansky commented Sep 12, 2024

Merge activity

@sergeyberezansky sergeyberezansky changed the base branch from sergey/csi-245-configurable-client-group to graphite-base/317 September 12, 2024 11:42
@sergeyberezansky sergeyberezansky changed the base branch from graphite-base/317 to dev September 12, 2024 12:44
@sergeyberezansky sergeyberezansky merged commit 09fd3a2 into dev Sep 12, 2024
6 checks passed
@sergeyberezansky sergeyberezansky deleted the sergey/csi-241-nfs-sync-map-fix 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