datashim
datashim copied to clipboard
fix(csi-s3/issue-340): improve volume unmount reliability
- Make NodeUnpublishVolume idempotent by checking mount status before unmounting
- Ensure fuse process cleanup occurs even if unmount operation fails
- Improve error handling and logging during unmount operations
This prevents errors when kubelet retries unmounting already-unmounted volumes and ensures orphaned fuse processes are properly cleaned up.
The changes address two key issues:
- nodeserver.go:168 - Added check to prevent errors on retry attempts
- mounter.go:66 - Improved error handling to ensure fuse process cleanup happens regardless of unmount success