Stat command get different mtime in alluxio fuse mount point
See original GitHub issueAlluxio Version:
2.6 or newer
Describe the bug
Touch a new file, and using stat
command to get file’s mtime in the alluxio fuse mount point, the mtime shows different result in the first and second stat
command.
To Reproduce Prerequisite:
- Start an alluxio cluster
- Alluxio fuse has been mount to a local dir(e.g. /mnt/alluxio-fuse)
Execute the following commands:
$ cd /mnt/alluxio-fuse/
$ touch a; stat a
$ stat a
The two stat commands will show different mtime and the ctime is 1970.
Expected behavior The two stat commands will show the same mtime and atime since we just touch a file.
Urgency Urgent
Are you planning to fix it We need to fix after discussion.
Additional context This problem only occurs in the linux environment, the Mac os seems alright. SImple analysis: The close() function in linux will call a async release API, so the touch process maybe exit before the file complete, and the stat may get an incomplete state, then the async release will complete the file and update the mtime, so the next stat will get a different atime.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (17 by maintainers)
Top GitHub Comments
The latest master
Ext4
Looks like the behavior changed and now the behavior matched
@bzheng888 i didn’t fix the issue, but in latest testing surprising find the atime and mtime matches the EXT4 behavior