HDFS-16235. Fix Deadlock in LeaseRenewer for static remove method (#3472)
(cherry picked from commit 5f9321a5d4
)
This commit is contained in:
parent
cfd0265975
commit
1df3b3de46
|
@ -96,8 +96,10 @@ public class LeaseRenewer {
|
|||
* @param renewer Instance to be cleared from Factory
|
||||
*/
|
||||
public static void remove(LeaseRenewer renewer) {
|
||||
synchronized (renewer) {
|
||||
Factory.INSTANCE.remove(renewer);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A factory for sharing {@link LeaseRenewer} objects
|
||||
|
|
Loading…
Reference in New Issue