HADOOP-11603. Metric Snapshot log can be changed #MetricsSystemImpl.java since all the services will be initialized. Contributed By Brahma Reddy Battula.
(cherry picked from commit 13501053dd
)
This commit is contained in:
parent
01e3b0dae8
commit
1e25fd6b3b
|
@ -33,7 +33,6 @@ import javax.management.ObjectName;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import java.util.Locale;
|
|
||||||
import static com.google.common.base.Preconditions.*;
|
import static com.google.common.base.Preconditions.*;
|
||||||
|
|
||||||
import org.apache.commons.configuration.PropertiesConfiguration;
|
import org.apache.commons.configuration.PropertiesConfiguration;
|
||||||
|
@ -372,7 +371,8 @@ public class MetricsSystemImpl extends MetricsSystem implements MetricsSource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, millis, millis);
|
}, millis, millis);
|
||||||
LOG.info("Scheduled snapshot period at "+ (period/1000) +" second(s).");
|
LOG.info("Scheduled Metric snapshot period at " + (period / 1000)
|
||||||
|
+ " second(s).");
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized void onTimerEvent() {
|
synchronized void onTimerEvent() {
|
||||||
|
|
Loading…
Reference in New Issue