HADOOP-15989. Synchronized at CompositeService#removeService is not required. Contributed by Prabhu Joseph.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
parent
8194a1196e
commit
371452e260
|
@ -93,7 +93,8 @@ public class CompositeService extends AbstractService {
|
|||
}
|
||||
}
|
||||
|
||||
protected synchronized boolean removeService(Service service) {
|
||||
protected boolean removeService(Service service) {
|
||||
LOG.debug("Removing service {}", service.getName());
|
||||
synchronized (serviceList) {
|
||||
return serviceList.remove(service);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue