Skip to content

Commit 71991ad

Browse files
javannaareek
authored andcommitted
Internal: fixed typo in NodeService s/disovery/discovery
1 parent e625e53 commit 71991ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/elasticsearch/node/service/NodeService.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class NodeService extends AbstractComponent {
5656

5757
private final Version version;
5858

59-
private final Discovery disovery;
59+
private final Discovery discovery;
6060

6161
@Inject
6262
public NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery,
@@ -67,7 +67,7 @@ public NodeService(Settings settings, ThreadPool threadPool, MonitorService moni
6767
this.monitorService = monitorService;
6868
this.transportService = transportService;
6969
this.indicesService = indicesService;
70-
this.disovery = discovery;
70+
this.discovery = discovery;
7171
discovery.setNodeService(this);
7272
this.version = version;
7373
this.pluginService = pluginService;
@@ -104,7 +104,7 @@ public ImmutableMap<String, String> attributes() {
104104
}
105105

106106
public NodeInfo info() {
107-
return new NodeInfo(version, Build.CURRENT, disovery.localNode(), serviceAttributes,
107+
return new NodeInfo(version, Build.CURRENT, discovery.localNode(), serviceAttributes,
108108
settings,
109109
monitorService.osService().info(),
110110
monitorService.processService().info(),
@@ -119,7 +119,7 @@ public NodeInfo info() {
119119

120120
public NodeInfo info(boolean settings, boolean os, boolean process, boolean jvm, boolean threadPool,
121121
boolean network, boolean transport, boolean http, boolean plugin) {
122-
return new NodeInfo(version, Build.CURRENT, disovery.localNode(), serviceAttributes,
122+
return new NodeInfo(version, Build.CURRENT, discovery.localNode(), serviceAttributes,
123123
settings ? this.settings : null,
124124
os ? monitorService.osService().info() : null,
125125
process ? monitorService.processService().info() : null,
@@ -135,7 +135,7 @@ public NodeInfo info(boolean settings, boolean os, boolean process, boolean jvm,
135135
public NodeStats stats() {
136136
// for indices stats we want to include previous allocated shards stats as well (it will
137137
// only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
138-
return new NodeStats(disovery.localNode(), System.currentTimeMillis(),
138+
return new NodeStats(discovery.localNode(), System.currentTimeMillis(),
139139
indicesService.stats(true),
140140
monitorService.osService().stats(),
141141
monitorService.processService().stats(),
@@ -153,7 +153,7 @@ public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, bo
153153
boolean fs, boolean transport, boolean http, boolean circuitBreaker) {
154154
// for indices stats we want to include previous allocated shards stats as well (it will
155155
// only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
156-
return new NodeStats(disovery.localNode(), System.currentTimeMillis(),
156+
return new NodeStats(discovery.localNode(), System.currentTimeMillis(),
157157
indices.anySet() ? indicesService.stats(true, indices) : null,
158158
os ? monitorService.osService().stats() : null,
159159
process ? monitorService.processService().stats() : null,

0 commit comments

Comments
 (0)