Skip to content

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

Merged
ssalinas merged 4 commits into
masterfrom
check-file-open-timeout
Sep 26, 2018
Merged

ssalinas merged 4 commits into
masterfrom
check-file-open-timeout

Conversation

@baconmania

Copy link
Copy Markdown
Contributor

No description provided.

this.configuration = configuration;
this.exceptionNotifier = exceptionNotifier;

this.checkFileOpenLock = new ReentrantLock();

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

🚢

@ssalinas

Copy link
Copy Markdown
Contributor

🚢

@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