goofys icon indicating copy to clipboard operation
goofys copied to clipboard

File content not updated when the object is overwritten in bucket

Open yujunz opened this issue 4 years ago • 3 comments

Step to reproduce

  1. mount goofys with goofys --region us-west-1 --stat-cache-ttl 1m0s --type-cache-ttl 1m0s --dir-mode 0755 --file-mode 0644 --uid 0 --gid 0 -o allow_other bucket /mnt/s3
  2. check file timestamp and content
  3. modify object in s3 bucket
  4. check file timestamp and content
  5. remount goofys
  6. check file timestamp and content

Expected

File content get updated as well as timestamp

Observed

Timestamp is updated but the content is old

-rw-r--r--    1 root     root           621 May 24 17:47 index.html 
Screen Shot 2021-05-26 at 1 21 08 PM

The content is the same as the version when goofys is mounted, not the latest one. It get updated after remount.

Other information

❯ goofys -v
goofys version 0.24.0-45b8d78375af1b24604439d2e60c567654bcdf88

yujunz avatar May 26 '21 06:05 yujunz

did you check file within 1 minute or after 1 minute?

kahing avatar Jul 12 '21 00:07 kahing

@kahing is there any way to prevent caching certain file? because i need to update an certain file several times in a min.., but i still need cache

with-kim avatar Mar 29 '22 08:03 with-kim

Hey @with-kim did you find a solution? I ran into the same issue even without using any cache options

JaneSoo avatar Mar 28 '24 11:03 JaneSoo