Commit ea6152c
authored
Deprecate serializing PipelineAggregators (#54926)
`PipelineAggregator`s are only sent across the wire for backwards
compatibility with 7.7.0. `PipelineAggregator` needs to continue to
implement `NamedWriteable` for backwards compatibility but pipeline
aggregations created after 7.7.0 need not implement any of the methods
in that interface because we'll never attempt to call them. So this
creates implementations in `PipelineAggregator` (the base class) that
just throw exceptions.1 parent b5c5002 commit ea6152c
File tree
4 files changed
+104
-29
lines changed- server/src/main/java/org/elasticsearch
- plugins
- search
- aggregations
- pipeline
4 files changed
+104
-29
lines changedLines changed: 48 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
371 | 376 | | |
372 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
373 | 412 | | |
374 | 413 | | |
375 | 414 | | |
| |||
380 | 419 | | |
381 | 420 | | |
382 | 421 | | |
| 422 | + | |
| 423 | + | |
383 | 424 | | |
| 425 | + | |
384 | 426 | | |
385 | 427 | | |
386 | 428 | | |
| |||
399 | 441 | | |
400 | 442 | | |
401 | 443 | | |
| 444 | + | |
| 445 | + | |
402 | 446 | | |
| 447 | + | |
403 | 448 | | |
404 | 449 | | |
405 | 450 | | |
| |||
466 | 511 | | |
467 | 512 | | |
468 | 513 | | |
469 | | - | |
| 514 | + | |
| 515 | + | |
470 | 516 | | |
| 517 | + | |
471 | 518 | | |
472 | 519 | | |
473 | 520 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
593 | 595 | | |
594 | 596 | | |
595 | 597 | | |
| |||
Lines changed: 11 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
158 | | - | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
| 169 | + | |
168 | 170 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 171 | | |
179 | 172 | | |
180 | 173 | | |
| |||
216 | 209 | | |
217 | 210 | | |
218 | 211 | | |
219 | | - | |
220 | | - | |
| 212 | + | |
221 | 213 | | |
222 | 214 | | |
223 | 215 | | |
224 | 216 | | |
225 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
226 | 222 | | |
227 | 223 | | |
228 | 224 | | |
| |||
333 | 329 | | |
334 | 330 | | |
335 | 331 | | |
336 | | - | |
337 | | - | |
338 | 332 | | |
339 | | - | |
340 | 333 | | |
341 | 334 | | |
342 | 335 | | |
343 | 336 | | |
344 | 337 | | |
345 | | - | |
| 338 | + | |
346 | 339 | | |
347 | 340 | | |
348 | 341 | | |
| |||
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
116 | 118 | | |
| 119 | + | |
117 | 120 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
123 | 134 | | |
| 135 | + | |
124 | 136 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
129 | 163 | | |
130 | 164 | | |
131 | | - | |
132 | 165 | | |
133 | 166 | | |
134 | 167 | | |
| |||
0 commit comments