Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void testSingleLevel() throws Exception {
assertEquals("1", doc.rootDoc().getBinaryValue("join_field#parent").utf8ToString());
assertEquals("child", doc.rootDoc().getBinaryValue("join_field").utf8ToString());

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

// Unkwnown join name
// Unknown join name
exc = expectThrows(MapperParsingException.class,
() -> docMapper.parse(new SourceToParse("test", "type", "1",
BytesReference.bytes(XContentFactory.jsonBuilder().startObject()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
stage = SnapshotIndexShardStage.valueOf(rawStage);
} catch (IllegalArgumentException iae) {
throw new ElasticsearchParseException(
"failed to parse snapshot index shard status [{}][{}], unknonwn stage [{}]",
"failed to parse snapshot index shard status [{}][{}], unknown stage [{}]",
shard.getIndex().getName(), shard.getId(), rawStage);
}
return new SnapshotIndexShardStatus(shard, stage, stats, nodeId, failure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void testQuery() throws Exception {
IndexReader ir = DirectoryReader.open(iw);
IndexSearcher searcher = new IndexSearcher(ir);

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

ScoreDoc[] hits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void testCreateUpdateAliasRequest() {
assertEquals(sourceAlias, ((AliasAction.Remove) action).getAlias());
foundRemove = true;
} else {
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
}
}
assertTrue(foundAdd);
Expand Down Expand Up @@ -195,7 +195,7 @@ public void testCreateUpdateAliasRequestWithExplicitWriteIndex() {
assertFalse(addAction.writeIndex());
foundRemoveWrite = true;
} else {
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
}
}
assertTrue(foundAddWrite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ public void testReadProcessors() throws Exception {
unknownTaggedConfig = new HashMap<>();
unknownTaggedConfig.put("tag", "my_unknown");
config2.add(Collections.singletonMap("unknown_processor", unknownTaggedConfig));
Map<String, Object> secondUnknonwTaggedConfig = new HashMap<>();
secondUnknonwTaggedConfig.put("tag", "my_second_unknown");
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknonwTaggedConfig));
Map<String, Object> secondUnknownTaggedConfig = new HashMap<>();
secondUnknownTaggedConfig.put("tag", "my_second_unknown");
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknownTaggedConfig));
e = expectThrows(
ElasticsearchParseException.class,
() -> ConfigurationUtils.readProcessorConfigs(config2, scriptService, registry)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
}
}

public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
for (String index : Arrays.asList("idx", "idx_unmapped")) {
try {
client().prepareSearch(index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
}
}

public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
for (String index : Arrays.asList("idx", "idx_unmapped")) {
try {
client().prepareSearch(index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ public void testSingleValuedFieldOrderedByNonMetricsOrMultiBucketSubAggregation(
}
}

public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
for (String index : Arrays.asList("idx", "idx_unmapped")) {
try {
SearchResponse response = client()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected void randomFieldOrScript(ValuesSourceAggregationBuilder<?, ?> factory,
factory.script(mockScript("doc[" + field + "] + 1"));
break;
default:
throw new AssertionError("Unknow random operation [" + choice + "]");
throw new AssertionError("Unknown random operation [" + choice + "]");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void testDefaultTimeZone() {
assertThat(config.getTimeZone(), equalTo(DateTimeZone.UTC.getID()));
}

public void testUnkownTimeZone() {
public void testUnknownTimeZone() {
Exception e = expectThrows(IllegalArgumentException.class,
() -> new DateHistogramGroupConfig("foo", DateHistogramInterval.HOUR, null, "FOO"));
assertThat(e.getMessage(), equalTo("The datetime zone id 'FOO' is not recognised"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public enum IndexType {
INDEX("BASE TABLE"),
ALIAS("ALIAS"),
// value for user types unrecognized
UNKNOWN("UKNOWN");
UNKNOWN("UNKNOWN");

public static final EnumSet<IndexType> VALID = EnumSet.of(INDEX, ALIAS);

Expand Down