mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1885] [MERGED] Fixed test_external_directory_creation test when cache enabled #2230
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2230
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1885
Author: @ggtakec
Created: 2/6/2022
Status: ✅ Merged
Merged: 2/13/2022
Merged by: @ggtakec
Base:
master← Head:fix_test_ext_mod📝 Commits (1)
8f93090Fixed test_external_directory_creation test when cache enabled📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
test/integration-test-main.sh(+11 -0)📄 Description
Relevant Issue (if applicable)
#1884
Details
It is a correction of the defect detected by the correction of #1884.
The
test_external_modificationtest checks the reflection of the updated file from the external program (awscli).However, if s3fs currently has the stat cache and cache directory enabled, this test will fail.
This is because the time value of the file timestamp does not change before and after the change.
When using the stat cache and the file does not update after modifying, the cache hit and reading contents from local cache file.
Then the test is failed.
To fix this test, use sleep in
test_external_modification.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
use_sse=custom#2400