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
Fixed false error for implicit dir in rename and remove directory flow #1186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment.
Please add details of manual testing in the description - mount command, test directory structure, command run and output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check all the flows. (List, Create, Delete, Compose, Stat, Update, Copy) to confirm nothing breaks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also add manual testing details around implicitDir inside explicitDir and what happens when you try to delete/rename explicitDir.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of things:
- Manually test and add in description about delete and rename flows where you create explicitDir inside implicitDir. Also test
rmdir
- Add execute-perf-tests to this PR which will run e2e tests and perf tests(which will indirectly cover read and write flows)
b1d6f0c
to
12f604d
Compare
12f604d
to
5fb9f96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit tests for rename also.
5fb9f96
to
686f53b
Compare
Added the requested changes in a separate file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor formatting comments. LGTM
686f53b
to
9e025b4
Compare
9e025b4
to
f293635
Compare
Description
While running
rm -r
command on an implicit directory, we were getting the following error:rm: cannot remove 'implicitSubDirectory/': Input/output error
While running
mv
command on an implicit directory, we were getting the following error:mv: cannot stat 'implicitDirectory/': No such file or directory
Cause: for implicit directory, the 0 byte directory backing object did not exist on gcsfuse but we were still making a deleteObject request in DeleteChildDir() method.
Link to the issue in case of a bug fix.
NA
Testing details
Manual - Manually tested recursive delete and rename flows.
Details:
Mount Command: go run ./ --implicit-dirs --debug_fuse --debug_gcs --foreground ashmeenbkt /tmp/testnew/
Mount Command: go run ./ --implicit-dirs --debug_fuse --debug_gcs --foreground --rename-dir-limit=3 ashmeenbkt /tmp/testnew/
Unit tests - Added unit tests.
Integration tests - Ran all existing integration tests.