YARN-8826. Fix lingering timeline collector after serviceStop in TimelineCollectorManager. Contributed by Prabha Manepalli.
(cherry picked from commit 0b62983c5a
)
This commit is contained in:
parent
0cb184d6e9
commit
3e3b088856
|
@ -220,7 +220,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();
|
||||
|
|
Loading…
Reference in New Issue