Skip to content

Commit 2e523c3

Browse files
fix: stored source mode not supported in 8.16
We also update a few error messages to account for a few minor differences.
1 parent b3e3421 commit 2e523c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/DataFrameAnalyticsSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public DataFrameAnalyticsSource(
9696
}
9797
this.queryProvider = queryProvider == null ? QueryProvider.defaultQuery() : queryProvider;
9898
if (sourceFiltering != null && sourceFiltering.fetchSource() == false) {
99-
throw new IllegalArgumentException("source._source cannot be disabled");
99+
throw new IllegalArgumentException("source._source can not be disabled");
100100
}
101101
this.sourceFiltering = sourceFiltering;
102102
this.runtimeMappings = runtimeMappings == null ? Collections.emptyMap() : Collections.unmodifiableMap(runtimeMappings);

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/DataFrameAnalyticsSourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void testConstructor_GivenDisabledSource() {
104104
IllegalArgumentException.class,
105105
() -> new DataFrameAnalyticsSource(new String[] { "index" }, null, FetchSourceContext.DO_NOT_FETCH_SOURCE, null)
106106
);
107-
assertThat(e.getMessage(), equalTo("source._source cannot be disabled"));
107+
assertThat(e.getMessage(), equalTo("source._source can not be disabled"));
108108
}
109109

110110
public void testConstructor_GivenInvalidRuntimeMappings() {

0 commit comments

Comments
 (0)