Remove testMappingsPropagatedToMasterNodeImmediately

This test is obsolete since #31140 where an index request with dynamic
mapping update no longer requires acking.

Closes #37816
This commit is contained in:
Nhat Nguyen 2019-01-24 21:48:50 -05:00
parent a30ce6a00a
commit 3ccd488755
1 changed files with 0 additions and 17 deletions

View File

@ -34,8 +34,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 {
@Override
@ -75,21 +73,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];