Commit 77ecc4c
Add time-range based segment reload to controller API (#17627)
* Add time-range segment reload API
- Add controller endpoint to reload segments in a time range
- Select segments via metadata and dispatch per instance
- Add unit tests for time range reload behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Unify reload job ID handling: use single shared job ID for instanceToSegmentsMap path
The existing `instanceToSegmentsMap` reload path was creating per-instance ZK entries
with per-instance Helix message IDs, while the new time-range reload path used a single
shared UUID across all servers. Unify them by generating one UUID per logical reload
operation in reloadSegmentsForTable and storing a single ZK entry, consistent with the
time-range path.
Remove the now-unused 3-arg reloadSegments overload in PinotHelixResourceManager.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1bf528e commit 77ecc4c
11 files changed
Lines changed: 856 additions & 74 deletions
File tree
- pinot-common/src
- main/java/org/apache/pinot/common
- messages
- restlet/resources
- test/java/org/apache/pinot/common/messages
- pinot-controller/src
- main/java/org/apache/pinot/controller
- api/resources
- helix/core
- services
- test/java/org/apache/pinot/controller
- helix/core
- services
- pinot-spi/src/main/java/org/apache/pinot/spi/utils
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
| |||
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
143 | 153 | | |
144 | 154 | | |
145 | 155 | | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
149 | | - | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| |||
Lines changed: 29 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2608 | 2608 | | |
2609 | 2609 | | |
2610 | 2610 | | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
2611 | 2628 | | |
2612 | 2629 | | |
2613 | 2630 | | |
| |||
2618 | 2635 | | |
2619 | 2636 | | |
2620 | 2637 | | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
2621 | 2642 | | |
2622 | 2643 | | |
2623 | 2644 | | |
| |||
2976 | 2997 | | |
2977 | 2998 | | |
2978 | 2999 | | |
2979 | | - | |
2980 | | - | |
| 3000 | + | |
| 3001 | + | |
2981 | 3002 | | |
2982 | 3003 | | |
2983 | 3004 | | |
2984 | 3005 | | |
2985 | | - | |
| 3006 | + | |
2986 | 3007 | | |
2987 | 3008 | | |
2988 | | - | |
| 3009 | + | |
| 3010 | + | |
2989 | 3011 | | |
2990 | 3012 | | |
2991 | 3013 | | |
| |||
2994 | 3016 | | |
2995 | 3017 | | |
2996 | 3018 | | |
2997 | | - | |
| 3019 | + | |
2998 | 3020 | | |
2999 | 3021 | | |
3000 | 3022 | | |
| |||
3014 | 3036 | | |
3015 | 3037 | | |
3016 | 3038 | | |
3017 | | - | |
| 3039 | + | |
3018 | 3040 | | |
3019 | 3041 | | |
3020 | 3042 | | |
| |||
3033 | 3055 | | |
3034 | 3056 | | |
3035 | 3057 | | |
3036 | | - | |
| 3058 | + | |
3037 | 3059 | | |
3038 | 3060 | | |
3039 | 3061 | | |
| |||
0 commit comments