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

Use a lock & a timeout when checking whether an upload target file is open. #1852

Merged
merged 4 commits into from
Sep 26, 2018

Conversation

baconmania
Copy link
Contributor

No description provided.

@@ -68,6 +72,8 @@
this.logIdentifier = String.format("[%s]", metadataPath.getFileName());
this.configuration = configuration;
this.exceptionNotifier = exceptionNotifier;

this.checkFileOpenLock = new ReentrantLock();
Copy link
Member

Choose a reason for hiding this comment

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

Just checking, is this class always a singleton? Want to make sure we aren't just creating multiple locks. I had thought the singleton was the uploader driver, not the uploader

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Fixed.

@ssalinas
Copy link
Member

🚢

@ssalinas
Copy link
Member

🚢

@ssalinas ssalinas merged commit 3eca071 into master Sep 26, 2018
@ssalinas ssalinas deleted the check-file-open-timeout branch September 26, 2018 13:28
@ssalinas ssalinas added this to the 0.21.0 milestone Sep 26, 2018
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.

2 participants