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

Add more explict error messages for hardlink operations #30913

Conversation

xiangzhu70
Copy link
Contributor

@xiangzhu70 xiangzhu70 commented Mar 27, 2023

Problem

Observed that when account_path was missing, there was IO failures without explicit error messages pin-pointing the exact error and location.

This is part of the work in #28745. Specifically the code in #30171 should be refined with more explicit error messages.

Summary of Changes

Map the dir and file operation errors to the errors with more explicit error messages for easier debugging.

Fixes #

@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #30913 (143267b) into master (49b8ea7) will increase coverage by 0.0%.
The diff coverage is 28.5%.

@@           Coverage Diff           @@
##           master   #30913   +/-   ##
=======================================
  Coverage    81.5%    81.5%           
=======================================
  Files         727      727           
  Lines      205150   205166   +16     
=======================================
+ Hits       167273   167301   +28     
+ Misses      37877    37865   -12     

@xiangzhu70 xiangzhu70 marked this pull request as ready for review March 28, 2023 02:29
Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

Lgtm

@xiangzhu70 xiangzhu70 merged commit bf986d6 into solana-labs:master Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants