Skip to content

Commit 585d8f7

Browse files
committed
update:
2 parents dab0de9 + 0d58081 commit 585d8f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/src/main/java/org/elasticsearch/common/util/concurrent/TaskExecutionTimeTrackingPerIndexEsThreadPoolExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected void trackExecutionTime(Runnable r, long taskTime) {
119119
}
120120
}
121121

122-
//TODO Remove these methods once the NodeConstruction#searchLoadMetricsReporter is deleted
122+
// TODO Remove these methods once the NodeConstruction#searchLoadMetricsReporter is deleted
123123
/**
124124
* Gets the map of index execution times.
125125
*

server/src/main/java/org/elasticsearch/node/NodeConstruction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ private void construct(
707707

708708
var executor = (TaskExecutionTimeTrackingPerIndexEsThreadPoolExecutor) threadPool.executor(ThreadPool.Names.SEARCH);
709709
clusterService.addListener(new SearchIndexTimeTrackingCleanupService(executor));
710-
searchLoadMetricsReporter(executor);
710+
if(logger.isDebugEnabled()) searchLoadMetricsReporter(executor);
711711

712712
modules.bindToInstance(DocumentParsingProvider.class, documentParsingProvider);
713713

@@ -1279,7 +1279,6 @@ public void run() {
12791279
}
12801280
};
12811281

1282-
12831282
timer.scheduleAtFixedRate(task, 0, 4000);
12841283
}
12851284

0 commit comments

Comments
 (0)