Remove testMappingsPropagatedToMasterNodeImmediately
This test is obsolete since where an index request with dynamic
mapping update no longer requires acking.
Closes
@@ -30,8 +30,6 @@ import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;
-import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
-
public class DynamicMappingIT extends ESIntegTestCase {
public void testConflictingDynamicMappings() {
@@ -66,21 +64,6 @@ public class DynamicMappingIT extends ESIntegTestCase {
assertTrue("Could not find [" + field + "] in " + typeMappingsMap.toString(), properties.containsKey(field));
}
- @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/37816")
- public void testMappingsPropagatedToMasterNodeImmediately() throws IOException {
- assertAcked(prepareCreate("index"));
-
- // works when the type has been dynamically created
- client().prepareIndex("index", "type", "1").setSource("foo", 3).get();
- GetMappingsResponse mappings = client().admin().indices().prepareGetMappings("index").setTypes("type").get();
- assertMappingsHaveField(mappings, "index", "type", "foo");
-
- // works if the type already existed
- client().prepareIndex("index", "type", "1").setSource("bar", "baz").get();
- mappings = client().admin().indices().prepareGetMappings("index").setTypes("type").get();
- assertMappingsHaveField(mappings, "index", "type", "bar");
- }
-
public void testConcurrentDynamicUpdates() throws Throwable {
createIndex("index");
final Thread[] indexThreads = new Thread[32];
