Commit 51f7ea0
[Backport 2.x] Backport SegmentReplication test muting missing from 2.x. (#5945)
* [Segment Replication] Add snapshot and restore tests for segment replication feature (#3993)
* [Segment Replication] Add snapshots tests with segment replication enabled
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Fix spotless failures
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Add changelog entry, address review comments, add failover test
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Fix spotless failures
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Address review comments 2
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Remove changelog update.
Signed-off-by: Marc Handalian <handalm@amazon.com>
* Mute flaky test testStartReplicaAfterPrimaryIndexesDocs. (#5714)
Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Marc Handalian <handalm@amazon.com>
* Fix flaky Segment Replication test testStartReplicaAfterPrimaryIndexesDocs. (#5722)
* Fix flaky SR test testStartReplicaAfterPrimaryIndexesDocs.
This test was failing because we are validating post recovery if a shard is able to perform segrep while also performing validation if a passed in checkopint. In the post recovery test this checkpoint is always empty, yet the shard will be ahead of this checkpoint after docs are indexed. This change differentiates shard validation from checkpoint validation.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Fix spotless.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Fix testIsSegmentReplicationAllowed_WrongEngineType.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Update warn logs in isSegmentReplicationAllowed.
Signed-off-by: Marc Handalian <handalm@amazon.com>
* PR feedback.
Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Marc Handalian <handalm@amazon.com>
* [Segment Replication] Mute flaky tests (#5739)
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* [Segment Replication] Mute flaky tests (#5742)
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
* Fix spotless.
Signed-off-by: Marc Handalian <handalm@amazon.com>
* Muting flaky SegmentReplication ITs. (#5700)
Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Marc Handalian <handalm@amazon.com>
Co-authored-by: Suraj Singh <surajrider@gmail.com>1 parent 95d7895 commit 51f7ea0
5 files changed
Lines changed: 417 additions & 21 deletions
File tree
- server/src
- internalClusterTest/java/org/opensearch
- indices/replication
- snapshots
- main/java/org/opensearch
- index/shard
- indices/cluster
- test/java/org/opensearch/index/shard
Lines changed: 88 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
94 | 118 | | |
95 | 119 | | |
96 | 120 | | |
| |||
132 | 156 | | |
133 | 157 | | |
134 | 158 | | |
| 159 | + | |
135 | 160 | | |
136 | 161 | | |
137 | 162 | | |
| |||
266 | 291 | | |
267 | 292 | | |
268 | 293 | | |
| 294 | + | |
269 | 295 | | |
270 | 296 | | |
271 | 297 | | |
| |||
497 | 523 | | |
498 | 524 | | |
499 | 525 | | |
| 526 | + | |
500 | 527 | | |
501 | 528 | | |
502 | 529 | | |
| |||
598 | 625 | | |
599 | 626 | | |
600 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
601 | 683 | | |
602 | 684 | | |
603 | 685 | | |
| |||
689 | 771 | | |
690 | 772 | | |
691 | 773 | | |
692 | | - | |
| 774 | + | |
693 | 775 | | |
694 | 776 | | |
695 | 777 | | |
| |||
706 | 788 | | |
707 | 789 | | |
708 | 790 | | |
709 | | - | |
| 791 | + | |
710 | 792 | | |
711 | 793 | | |
712 | 794 | | |
| |||
0 commit comments