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 disable are descendants loaded property #16813

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

tcrain
Copy link
Contributor

@tcrain tcrain commented Jan 23, 2023

What changes are proposed in this pull request?

This adds a property to the list status call to disable the are descendants loaded check.

Why are the changes needed?

Currently before a recursive listing happens, the entire enclosed set of files are traversed to see if they all have the descendants loaded flag set in order to check if a metadata sync is needed. This can be costly especially if doing batch or partial listings. By setting this property the check can be avoided. This is, for example, recommended to set to true on the calls following the first call of a batch listing.

Note that this is recommended as more of a temporary fix for internal libraries, until a new logic design for the metadata sync is completed.

Does this PR introduce any user facing changes?

New property in the list status options proto.

Copy link
Contributor

@jja725 jja725 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the improvement

@LuQQiu
Copy link
Contributor

LuQQiu commented Jan 24, 2023

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 5a7cfe7 into Alluxio:master Jan 24, 2023
jja725 pushed a commit to jja725/alluxio that referenced this pull request Jan 27, 2023
### What changes are proposed in this pull request?

This adds a property to the list status call to disable the are
descendants loaded check.

### Why are the changes needed?

Currently before a recursive listing happens, the entire enclosed set of
files are traversed to see if they all have the descendants loaded flag
set in order to check if a metadata sync is needed. This can be costly
especially if doing batch or partial listings. By setting this property
the check can be avoided. This is, for example, recommended to set to
true on the calls following the first call of a batch listing.

Note that this is recommended as more of a temporary fix for internal
libraries, until a new logic design for the metadata sync is completed.

### Does this PR introduce any user facing changes?

New property in the list status options proto.

pr-link: Alluxio#16813
change-id: cid-bd1fdbc4be0cadd9dda1a4115043db4b6a89c6a5
@Xenorith Xenorith added the area-master Alluxio master label Feb 28, 2023
jja725 pushed a commit to jja725/alluxio that referenced this pull request Mar 11, 2023
This adds a property to the list status call to disable the are
descendants loaded check.

Currently before a recursive listing happens, the entire enclosed set of
files are traversed to see if they all have the descendants loaded flag
set in order to check if a metadata sync is needed. This can be costly
especially if doing batch or partial listings. By setting this property
the check can be avoided. This is, for example, recommended to set to
true on the calls following the first call of a batch listing.

Note that this is recommended as more of a temporary fix for internal
libraries, until a new logic design for the metadata sync is completed.

New property in the list status options proto.

pr-link: Alluxio#16813
change-id: cid-bd1fdbc4be0cadd9dda1a4115043db4b6a89c6a5
alluxio-bot pushed a commit that referenced this pull request Mar 11, 2023
Cherry-pick of existing commit.
orig-pr: #16813
orig-commit: 5a7cfe7
orig-commit-author: Tyler Crain <tycrain@gmail.com>

pr-link: #17051
change-id: cid-bd1fdbc4be0cadd9dda1a4115043db4b6a89c6a5
alluxio-bot added a commit that referenced this pull request May 16, 2023
### What changes are proposed in this pull request?
This PR cherry picks missing changes from `master-2.x` in the latter half of 2023/01, namely 2023/01/16~2023/01/31.
The missing commits can be found at main...master-2.x

Two PRs were left out because they have been manually cherry-picked to the dora/main branch:
#16813
#16122

			pr-link: #17432
			change-id: cid-4c33092ccaae3302eb0f944183aa81ac08df226b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-master Alluxio master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants