Skip to content

Commit 1df66d2

Browse files
jsorefjavanna
authored andcommitted
Spelling: replace uknown with unknown (#37056)
1 parent 15c4d5b commit 1df66d2

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

modules/parent-join/src/test/java/org/elasticsearch/join/mapper/ParentJoinFieldMapperTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void testSingleLevel() throws Exception {
8686
assertEquals("1", doc.rootDoc().getBinaryValue("join_field#parent").utf8ToString());
8787
assertEquals("child", doc.rootDoc().getBinaryValue("join_field").utf8ToString());
8888

89-
// Unkwnown join name
89+
// Unknown join name
9090
MapperException exc = expectThrows(MapperParsingException.class,
9191
() -> docMapper.parse(new SourceToParse("test", "type", "1",
9292
BytesReference.bytes(XContentFactory.jsonBuilder().startObject()
@@ -202,7 +202,7 @@ public void testMultipleLevels() throws Exception {
202202
assertEquals("2", doc.rootDoc().getBinaryValue("join_field#child").utf8ToString());
203203
assertEquals("grand_child", doc.rootDoc().getBinaryValue("join_field").utf8ToString());
204204

205-
// Unkwnown join name
205+
// Unknown join name
206206
exc = expectThrows(MapperParsingException.class,
207207
() -> docMapper.parse(new SourceToParse("test", "type", "1",
208208
BytesReference.bytes(XContentFactory.jsonBuilder().startObject()

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/status/SnapshotIndexShardStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
189189
stage = SnapshotIndexShardStage.valueOf(rawStage);
190190
} catch (IllegalArgumentException iae) {
191191
throw new ElasticsearchParseException(
192-
"failed to parse snapshot index shard status [{}][{}], unknonwn stage [{}]",
192+
"failed to parse snapshot index shard status [{}][{}], unknown stage [{}]",
193193
shard.getIndex().getName(), shard.getId(), rawStage);
194194
}
195195
return new SnapshotIndexShardStatus(shard, stage, stats, nodeId, failure);

server/src/test/java/org/apache/lucene/queries/SpanMatchNoDocsQueryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void testQuery() throws Exception {
6060
IndexReader ir = DirectoryReader.open(iw);
6161
IndexSearcher searcher = new IndexSearcher(ir);
6262

63-
Query query = new SpanMatchNoDocsQuery("unkwown", "field not found");
63+
Query query = new SpanMatchNoDocsQuery("unknown", "field not found");
6464
assertEquals(searcher.count(query), 0);
6565

6666
ScoreDoc[] hits;

server/src/test/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverActionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void testCreateUpdateAliasRequest() {
165165
assertEquals(sourceAlias, ((AliasAction.Remove) action).getAlias());
166166
foundRemove = true;
167167
} else {
168-
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
168+
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
169169
}
170170
}
171171
assertTrue(foundAdd);
@@ -195,7 +195,7 @@ public void testCreateUpdateAliasRequestWithExplicitWriteIndex() {
195195
assertFalse(addAction.writeIndex());
196196
foundRemoveWrite = true;
197197
} else {
198-
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
198+
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
199199
}
200200
}
201201
assertTrue(foundAddWrite);

server/src/test/java/org/elasticsearch/ingest/ConfigurationUtilsTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ public void testReadProcessors() throws Exception {
137137
unknownTaggedConfig = new HashMap<>();
138138
unknownTaggedConfig.put("tag", "my_unknown");
139139
config2.add(Collections.singletonMap("unknown_processor", unknownTaggedConfig));
140-
Map<String, Object> secondUnknonwTaggedConfig = new HashMap<>();
141-
secondUnknonwTaggedConfig.put("tag", "my_second_unknown");
142-
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknonwTaggedConfig));
140+
Map<String, Object> secondUnknownTaggedConfig = new HashMap<>();
141+
secondUnknownTaggedConfig.put("tag", "my_second_unknown");
142+
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknownTaggedConfig));
143143
e = expectThrows(
144144
ElasticsearchParseException.class,
145145
() -> ConfigurationUtils.readProcessorConfigs(config2, scriptService, registry)

server/src/test/java/org/elasticsearch/search/aggregations/bucket/DoubleTermsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
692692
}
693693
}
694694

695-
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
695+
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
696696
for (String index : Arrays.asList("idx", "idx_unmapped")) {
697697
try {
698698
client().prepareSearch(index)

server/src/test/java/org/elasticsearch/search/aggregations/bucket/LongTermsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
690690
}
691691
}
692692

693-
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
693+
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
694694
for (String index : Arrays.asList("idx", "idx_unmapped")) {
695695
try {
696696
client().prepareSearch(index)

server/src/test/java/org/elasticsearch/search/aggregations/bucket/terms/StringTermsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
842842
}
843843
}
844844

845-
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
845+
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
846846
for (String index : Arrays.asList("idx", "idx_unmapped")) {
847847
try {
848848
SearchResponse response = client()

test/framework/src/main/java/org/elasticsearch/search/aggregations/BaseAggregationTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected void randomFieldOrScript(ValuesSourceAggregationBuilder<?, ?> factory,
213213
factory.script(mockScript("doc[" + field + "] + 1"));
214214
break;
215215
default:
216-
throw new AssertionError("Unknow random operation [" + choice + "]");
216+
throw new AssertionError("Unknown random operation [" + choice + "]");
217217
}
218218
}
219219

x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/config/ConfigTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void testDefaultTimeZone() {
8383
assertThat(config.getTimeZone(), equalTo(DateTimeZone.UTC.getID()));
8484
}
8585

86-
public void testUnkownTimeZone() {
86+
public void testUnknownTimeZone() {
8787
Exception e = expectThrows(IllegalArgumentException.class,
8888
() -> new DateHistogramGroupConfig("foo", DateHistogramInterval.HOUR, null, "FOO"));
8989
assertThat(e.getMessage(), equalTo("The datetime zone id 'FOO' is not recognised"));

0 commit comments

Comments
 (0)