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:
Prabhu Joseph 2019-06-21 17:02:54 -07:00 committed by Wei-Chiu Chuang
parent 8194a1196e
commit 371452e260
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ protected boolean addIfService(Object object) {
}
}
protected synchronized boolean removeService(Service service) {
protected boolean removeService(Service service) {
LOG.debug("Removing service {}", service.getName());
synchronized (serviceList) {
return serviceList.remove(service);
}