YARN-8826. Fix lingering timeline collector after serviceStop in TimelineCollectorManager. Contributed by Prabha Manepalli.

(cherry picked from commit 0b62983c5a)
This commit is contained in:
Rohith Sharma K S 2018-10-23 12:58:41 +05:30
parent 56a27284a7
commit dbf36dbb8d
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ public class TimelineCollectorManager extends CompositeService {
@Override
protected void serviceStop() throws Exception {
if (collectors != null && collectors.size() > 1) {
if (collectors != null && collectors.size() > 0) {
synchronized (collectors) {
for (TimelineCollector c : collectors.values()) {
c.serviceStop();