Skip to content

Commit 3ccd488

Browse files
committed
Remove testMappingsPropagatedToMasterNodeImmediately
This test is obsolete since #31140 where an index request with dynamic mapping update no longer requires acking. Closes #37816
1 parent a30ce6a commit 3ccd488

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

server/src/test/java/org/elasticsearch/index/mapper/DynamicMappingIT.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
import java.util.concurrent.CountDownLatch;
3535
import java.util.concurrent.atomic.AtomicReference;
3636

37-
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
38-
3937
public class DynamicMappingIT extends ESIntegTestCase {
4038

4139
@Override
@@ -75,21 +73,6 @@ private static void assertMappingsHaveField(GetMappingsResponse mappings, String
7573
assertTrue("Could not find [" + field + "] in " + typeMappingsMap.toString(), properties.containsKey(field));
7674
}
7775

78-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/37816")
79-
public void testMappingsPropagatedToMasterNodeImmediately() throws IOException {
80-
assertAcked(prepareCreate("index"));
81-
82-
// works when the type has been dynamically created
83-
client().prepareIndex("index", "type", "1").setSource("foo", 3).get();
84-
GetMappingsResponse mappings = client().admin().indices().prepareGetMappings("index").setTypes("type").get();
85-
assertMappingsHaveField(mappings, "index", "type", "foo");
86-
87-
// works if the type already existed
88-
client().prepareIndex("index", "type", "1").setSource("bar", "baz").get();
89-
mappings = client().admin().indices().prepareGetMappings("index").setTypes("type").get();
90-
assertMappingsHaveField(mappings, "index", "type", "bar");
91-
}
92-
9376
public void testConcurrentDynamicUpdates() throws Throwable {
9477
createIndex("index");
9578
final Thread[] indexThreads = new Thread[32];

0 commit comments

Comments
 (0)