Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ttl calculation due to getting 0 createtime #18680

Open
coderwf opened this issue Sep 3, 2024 · 0 comments
Open

Wrong ttl calculation due to getting 0 createtime #18680

coderwf opened this issue Sep 3, 2024 · 0 comments
Labels
type-bug This issue is about a bug

Comments

@coderwf
Copy link

coderwf commented Sep 3, 2024

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

@coderwf coderwf added the type-bug This issue is about a bug label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

No branches or pull requests

1 participant