Commit 8f5a686
committed
Reduce work in
No need to try and index 300 documents if we're splitting each one into
its own bulk, and indeed it can take more than the allowed 10s to do so
many separate bulks. With this change we sometimes try larger
watermarks, and only ever try and index up to roughly twice as many docs
as needed to trigger a split.
Closes #144579testBulkIndexingRequestSplitting (#145188)1 parent 57c510f commit 8f5a686
1 file changed
Lines changed: 11 additions & 3 deletions
File tree
- modules/transport-netty4/src/internalClusterTest/java/org/elasticsearch/http/netty4
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
| 562 | + | |
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
| |||
0 commit comments