forked from awslabs/mountpoint-s3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue preventing reads after flush on a file handle (awslabs#751)
* Add test to reproduce bad descriptor issue Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Fix issue preventing reads after flush on a file handle Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Initialize file handle type at open Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Ignore overwrite after read test Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Add entry in CHANGELOG Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Raise logging of file handle type choice to debug Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Fix panic message in read test Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Ensure consistent behavior in read test Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> * Add test for write-only handle opening empty file and closing it Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com> * Add changelog entry refering to eager file handle initialization Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com> --------- Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk> Signed-off-by: Daniel Carl Jones <djonesoa@amazon.com> Co-authored-by: Daniel Carl Jones <djonesoa@amazon.com>
- Loading branch information
1 parent
77ee71d
commit dd901f3
Showing
6 changed files
with
181 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.