Skip to content

Commit 00f75a4

Browse files
authored
Disable dynamic mapping testSimpleGetFieldMappingsWithDefaults (#38045)
Since #31140 we no longer require acking on the dynamic mapping of index requests. Thus, a returned mapping from a get mapping request does not necessarily contain the dynamic updates from the index request. This commit replaces the dynamic mapping update with a manual put mapping. Relates #31140 Closes #37928
1 parent 81a6c1d commit 00f75a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/test/java/org/elasticsearch/indices/mapping/SimpleGetFieldMappingsIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ public void testGetFieldMappings() throws Exception {
134134
@SuppressWarnings("unchecked")
135135
public void testSimpleGetFieldMappingsWithDefaults() throws Exception {
136136
assertAcked(prepareCreate("test").addMapping("type", getMappingForType("type")));
137-
138-
client().prepareIndex("test", "type", "1").setSource("num", 1).get();
137+
client().admin().indices().preparePutMapping("test").setType("type").setSource("num", "type=long").get();
139138

140139
GetFieldMappingsResponse response = client().admin().indices().prepareGetFieldMappings()
141140
.setFields("num", "field1", "obj.subfield").includeDefaults(true).get();

0 commit comments

Comments
 (0)