Skip to content

Commit 0d58081

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 9f0ec33 commit 0d58081

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
import org.elasticsearch.common.settings.SettingsModule;
8181
import org.elasticsearch.common.util.BigArrays;
8282
import org.elasticsearch.common.util.PageCacheRecycler;
83-
import org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingEsThreadPoolExecutor;
8483
import org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingPerIndexEsThreadPoolExecutor;
8584
import org.elasticsearch.common.util.set.Sets;
8685
import org.elasticsearch.core.IOUtils;
@@ -707,7 +706,7 @@ private void construct(
707706

708707
var executor = (TaskExecutionTimeTrackingPerIndexEsThreadPoolExecutor) threadPool.executor(ThreadPool.Names.SEARCH);
709708
clusterService.addListener(new SearchIndexTimeTrackingCleanupService(executor));
710-
if(logger.isDebugEnabled()) searchLoadMetricsReporter(executor);
709+
if (logger.isDebugEnabled()) searchLoadMetricsReporter(executor);
711710

712711
modules.bindToInstance(DocumentParsingProvider.class, documentParsingProvider);
713712

@@ -1279,7 +1278,6 @@ public void run() {
12791278
}
12801279
};
12811280

1282-
12831281
timer.scheduleAtFixedRate(task, 0, 4000);
12841282
}
12851283

0 commit comments

Comments
 (0)