Commit d8afa42
committed
controller: reuse error-state repair for non-pauseless; delete redundant reingest method
- Reuse repairSegmentsInErrorStateForPauselessConsumption() to repair errored
segments for both pauseless and non-pauseless tables
- Remove reingestCommittingSegmentsForPauselessDisabled() and route call sites
to the shared repair flow
- Keep a single reingestion entrypoint: reingestSegment(table, segment, instances)
with simple predicates (hasOnlineInstance, maybeResetIfNotInProgress)
- Update RealtimeSegmentValidationManager to always invoke the shared repair flow
(and preserve optional auto-reset behavior)
- Adjust RealtimeSegmentValidationManagerTest expectations accordingly
Behavioral notes:
- Only re-ingests COMMITTING LLC segments with start/end offsets and no download
URL when all replicas are in ERROR and the segment is ONLINE in IdealState
- Otherwise resets segments not in IN_PROGRESS to fetch from deep store/peer
- Applies only to tables without dedup or partial upsert unless explicitly allowed
via allowRepairOfErrorSegments()1 parent a7bd7e9 commit d8afa42
File tree
3 files changed
+110
-35
lines changed- pinot-controller/src
- main/java/org/apache/pinot/controller
- helix/core/realtime
- validation
- test/java/org/apache/pinot/controller/validation
3 files changed
+110
-35
lines changedLines changed: 35 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2401 | 2401 | | |
2402 | 2402 | | |
2403 | 2403 | | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
| 2404 | + | |
| 2405 | + | |
2407 | 2406 | | |
2408 | 2407 | | |
2409 | 2408 | | |
| |||
2607 | 2606 | | |
2608 | 2607 | | |
2609 | 2608 | | |
| 2609 | + | |
2610 | 2610 | | |
2611 | 2611 | | |
2612 | 2612 | | |
| |||
2615 | 2615 | | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | | - | |
2619 | | - | |
| 2618 | + | |
2620 | 2619 | | |
2621 | | - | |
2622 | | - | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
2623 | 2623 | | |
2624 | 2624 | | |
2625 | 2625 | | |
2626 | 2626 | | |
2627 | 2627 | | |
2628 | | - | |
2629 | | - | |
| 2628 | + | |
2630 | 2629 | | |
2631 | 2630 | | |
2632 | 2631 | | |
| |||
2673 | 2672 | | |
2674 | 2673 | | |
2675 | 2674 | | |
2676 | | - | |
2677 | | - | |
2678 | | - | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
2679 | 2683 | | |
2680 | 2684 | | |
2681 | 2685 | | |
| |||
2690 | 2694 | | |
2691 | 2695 | | |
2692 | 2696 | | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
2693 | 2713 | | |
2694 | 2714 | | |
2695 | 2715 | | |
| |||
2723 | 2743 | | |
2724 | 2744 | | |
2725 | 2745 | | |
2726 | | - | |
2727 | 2746 | | |
2728 | 2747 | | |
2729 | 2748 | | |
2730 | 2749 | | |
2731 | | - | |
| 2750 | + | |
2732 | 2751 | | |
2733 | | - | |
| 2752 | + | |
| 2753 | + | |
2734 | 2754 | | |
2735 | 2755 | | |
2736 | 2756 | | |
| |||
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
142 | 136 | | |
143 | 137 | | |
144 | 138 | | |
| |||
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | | - | |
| 180 | + | |
187 | 181 | | |
188 | 182 | | |
189 | 183 | | |
| |||
Lines changed: 70 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
67 | 116 | | |
68 | 117 | | |
69 | 118 | | |
| |||
77 | 126 | | |
78 | 127 | | |
79 | 128 | | |
80 | | - | |
81 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
82 | 134 | | |
83 | 135 | | |
84 | 136 | | |
85 | | - | |
86 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
87 | 141 | | |
88 | 142 | | |
89 | | - | |
90 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
91 | 148 | | |
92 | 149 | | |
93 | | - | |
94 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
95 | 155 | | |
96 | 156 | | |
97 | 157 | | |
| |||
101 | 161 | | |
102 | 162 | | |
103 | 163 | | |
104 | | - | |
| 164 | + | |
| 165 | + | |
105 | 166 | | |
106 | 167 | | |
107 | 168 | | |
| |||
0 commit comments