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

Wait for file completed in fuse getAttr (#8192) #9496

Merged
merged 4 commits into from
Jul 19, 2019

Conversation

calvinjia
Copy link
Contributor

@calvinjia calvinjia commented Jul 18, 2019

cherry-pick of #8192
cherry-pick commits are:
change fuse get attr : fb36eea63268
change the error message : 9c78eaa12b36
update status after file completed : 70eb188fa485
fix the getAttr error : c270a101fad6

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4616/
Test FAILed.

@gpang
Copy link
Contributor

gpang commented Jul 18, 2019

jenkins, test this please

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4617/
Test FAILed.

@gpang
Copy link
Contributor

gpang commented Jul 18, 2019

Failed tests: 
  AlluxioFuseFileSystemTest.getattr:153 expected:<0> but was:<-14>

@calvinjia
Copy link
Contributor Author

@gpang looks like I need this change first #9499 (though this one might also need this current one?)


URIStatus status = mFileSystem.getStatus(turi);
if (!status.isCompleted()) {
if (!waitForFileCompleted(turi)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we consider the mOpenFiles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean to check if it is in mOpenFiles? The file could be closed during the wait period.

Copy link
Contributor

@gpang gpang left a comment

Choose a reason for hiding this comment

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

LGTM

@gpang
Copy link
Contributor

gpang commented Jul 19, 2019

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit d233c1c into Alluxio:branch-1.8 Jul 19, 2019
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.

6 participants