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

Add PropertyKey for file not found metadata cache #18491

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

maobaolong
Copy link
Contributor

What changes are proposed in this pull request?

Add PropertyKey for file not found metadata cache

Why are the changes needed?

Without this PR, dora fuse cannot copy a file to dora cluster through dora fuse

Does this PR introduce any user facing changes?

Add a new PropertyKey alluxio.user.metadata.cache.not.found.cache.enabled

@@ -73,6 +73,7 @@ public void before() throws Exception {
mConf.set(PropertyKey.USER_METADATA_CACHE_MAX_SIZE, 1000, Source.RUNTIME);
// Avoid async update file access time to call getStatus to mess up the test results
mConf.set(PropertyKey.USER_UPDATE_FILE_ACCESSTIME_DISABLED, true);
mConf.set(PropertyKey.USER_METADATA_CACHE_NOT_FOUND_CACHE_ENABLED, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the default value for USER_METADATA_CACHE_NOT_FOUND_CACHE_ENABLED is false, add a unit test to test that when it's not enabled, a missing file won't be cached.

maobaolong and others added 4 commits February 2, 2024 10:59
Co-authored-by: Bowen Ding <6999708+dbw9580@users.noreply.github.com>
Co-authored-by: Bowen Ding <6999708+dbw9580@users.noreply.github.com>
Co-authored-by: Bowen Ding <6999708+dbw9580@users.noreply.github.com>
@maobaolong maobaolong closed this Feb 2, 2024
@maobaolong maobaolong reopened this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants