HDFS-8116. Cleanup uncessary if LOG.isDebugEnabled() from RollingWindowManager. Contributed by Brahma Reddy Battula.
This commit is contained in:
parent
71de367c5e
commit
b61b489995
|
@ -606,6 +606,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-8432. Introduce a minimum compatible layout version to allow downgrade
|
HDFS-8432. Introduce a minimum compatible layout version to allow downgrade
|
||||||
in more rolling upgrade use cases. (cnauroth)
|
in more rolling upgrade use cases. (cnauroth)
|
||||||
|
|
||||||
|
HDFS-8116. Cleanup uncessary if LOG.isDebugEnabled() from
|
||||||
|
RollingWindowManager. (Brahma Reddy Battula via xyao)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
|
|
@ -187,11 +187,9 @@ public class RollingWindowManager {
|
||||||
*/
|
*/
|
||||||
public TopWindow snapshot(long time) {
|
public TopWindow snapshot(long time) {
|
||||||
TopWindow window = new TopWindow(windowLenMs);
|
TopWindow window = new TopWindow(windowLenMs);
|
||||||
if (LOG.isDebugEnabled()) {
|
|
||||||
Set<String> metricNames = metricMap.keySet();
|
Set<String> metricNames = metricMap.keySet();
|
||||||
LOG.debug("iterating in reported metrics, size={} values={}",
|
LOG.debug("iterating in reported metrics, size={} values={}",
|
||||||
metricNames.size(), metricNames);
|
metricNames.size(), metricNames);
|
||||||
}
|
|
||||||
for (Map.Entry<String, RollingWindowMap> entry : metricMap.entrySet()) {
|
for (Map.Entry<String, RollingWindowMap> entry : metricMap.entrySet()) {
|
||||||
String metricName = entry.getKey();
|
String metricName = entry.getKey();
|
||||||
RollingWindowMap rollingWindows = entry.getValue();
|
RollingWindowMap rollingWindows = entry.getValue();
|
||||||
|
|
Loading…
Reference in New Issue