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

[VFS-683] Class loader thread safety #367

Merged
merged 6 commits into from
Jan 18, 2023
Merged

Conversation

ivakegg
Copy link
Contributor

@ivakegg ivakegg commented Jan 13, 2023

  • To ensure that the closing of files does not interfere with
  • reading the content, the FileObjectUtils read methods must
  • be synchronized on the underlying filesystem just like the
  • close AbstractFileObject close and detach methods.
  • Added a test case that demostrated the issue.

@ivakegg ivakegg force-pushed the master branch 2 times, most recently from 7a3bed6 to 185c16c Compare January 13, 2023 21:21
Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

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

The build is quite possibly failing randomly because of this PR... maybe.

@ivakegg
Copy link
Contributor Author

ivakegg commented Jan 17, 2023

I will try to track down the fails in the macos vms. I will have to instrument the test case to see what is going on.

@ivakegg
Copy link
Contributor Author

ivakegg commented Jan 17, 2023

Well, everything appears to have passed this time. I will up the number of threads in the test to see if I can force the failures again.

* To ensure that the closing of files does not interfere with
*   reading the content, the FileObjectUtils read methods must
*   be synchronized on the underlying filesystem just like the
*   close AbstractFileObject close and detach methods.
* Added a test case that demostrated the issue.
clear that out, possibly which the getHeadMethod is being called.
@ivakegg ivakegg marked this pull request as ready for review January 18, 2023 03:00
@ivakegg
Copy link
Contributor Author

ivakegg commented Jan 18, 2023

This is ready for a final review. I can squash the commits into one when you are ready.

@garydgregory garydgregory changed the title fixes #VFS-683: class loader thread safety [VFS-683] Class loader thread safety Jan 18, 2023
@garydgregory garydgregory merged commit 781a915 into apache:master Jan 18, 2023
asfgit pushed a commit that referenced this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants