mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Disable dynamic mapping update in testTransportBulkTasks (#38073)
If a replica does not have a right mapping yet, we will retry the index request on that replica; then the actual tasks is higher than the expected tasks. Since #31140 this happens more frequently for we no longer require acking on the dynamic mapping of index requests. Relates #31140 Closes #37893
This commit is contained in:
parent
28b5c7ce78
commit
237fcda2cc
@ -291,7 +291,6 @@ public class TasksIT extends ESIntegTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/37893")
|
||||
public void testTransportBulkTasks() {
|
||||
registerTaskManageListeners(BulkAction.NAME); // main task
|
||||
registerTaskManageListeners(BulkAction.NAME + "[s]"); // shard task
|
||||
@ -299,6 +298,8 @@ public class TasksIT extends ESIntegTestCase {
|
||||
registerTaskManageListeners(BulkAction.NAME + "[s][r]"); // shard task on replica
|
||||
createIndex("test");
|
||||
ensureGreen("test"); // Make sure all shards are allocated to catch replication tasks
|
||||
// ensures the mapping is available on all nodes so we won't retry the request (in case replicas don't have the right mapping).
|
||||
client().admin().indices().preparePutMapping("test").setType("doc").setSource("foo", "type=keyword").get();
|
||||
client().prepareBulk().add(client().prepareIndex("test", "doc", "test_id")
|
||||
.setSource("{\"foo\": \"bar\"}", XContentType.JSON)).get();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user