Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix thread deadlocks when running metasync for more than 5 minutes. (#283) #284

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/tree/TreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ public List<Tree> call(final List<Tree> loaded_trees)
local_trees = new ArrayList<Tree>(trees.size());
local_trees.addAll(trees);
}


trees_lock.unlock();

return local_trees;
}

Expand Down Expand Up @@ -547,6 +549,8 @@ public Object call(final Exception e) throws Exception {
final List<Tree> local_trees;
if (trees.isEmpty()) {
LOG.debug("No trees were found to process the meta through");
trees_lock.unlock();

return Deferred.fromResult(true);
}

Expand Down