HDFS-16235. Fix Deadlock in LeaseRenewer for static remove method (#3472)
(cherry picked from commit 5f9321a5d4
)
This commit is contained in:
parent
06954af6f0
commit
4475d8bfe7
@ -96,7 +96,9 @@ public static LeaseRenewer getInstance(final String authority,
|
|||||||
* @param renewer Instance to be cleared from Factory
|
* @param renewer Instance to be cleared from Factory
|
||||||
*/
|
*/
|
||||||
public static void remove(LeaseRenewer renewer) {
|
public static void remove(LeaseRenewer renewer) {
|
||||||
Factory.INSTANCE.remove(renewer);
|
synchronized (renewer) {
|
||||||
|
Factory.INSTANCE.remove(renewer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user