Alluxio / alluxio

Alluxio, data orchestration for analytics and machine learning in the cloud
https://www.alluxio.io
Apache License 2.0
6.87k stars 2.94k forks source link

Wrong ttl calculation due to getting 0 createtime #18680

Open coderwf opened 2 months ago

coderwf commented 2 months ago

Alluxio Version: 2.9.6

Describe the bug LocalCacheManager will invalidate cache(a Page) if expiration time reached,so a ttl of file will be calculated by currentTimeMS - creationTimeMS. This is the way used to get createTime of one file: (FileTime) Files.getAttribute(path, "creationTime"); but some file system like ext4 or so dot not support the attribute 'creationTime' so a zero value will be got,

To Reproduce a filesystem like juice-fs doesnt support birthtime image

Expected behavior if a zero createTime got, use a lastest modified time intead?

Urgency P0

Are you planning to fix it my pleasure

Additional context no more