We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f22e28 commit 5386fb8Copy full SHA for 5386fb8
server/src/test/java/org/elasticsearch/index/IndexSettingsTests.java
@@ -942,5 +942,16 @@ public void testVectorsUseGpuSetting() {
942
943
settings.updateIndexMetadata(newIndexMeta("index", Settings.EMPTY));
944
assertEquals(IndexSettings.GpuMode.AUTO, settings.useGpuForVectorsIndexing());
945
+
946
+ IllegalArgumentException e = expectThrows(
947
+ IllegalArgumentException.class,
948
+ () -> settings.updateIndexMetadata(
949
+ newIndexMeta("index", Settings.builder().put("index.vectors.indexing.use_gpu", "unknown").build())
950
+ )
951
+ );
952
+ assertThat(
953
+ e.getMessage(),
954
+ Matchers.containsString("illegal value can't update [index.vectors.indexing.use_gpu] from [AUTO] to [unknown]")
955
956
}
957
0 commit comments