Commit 3ad33d2
[BUG] Fix remote shards balancer when filtering throttled nodes (#11724)
* fix remote shards balancer
Signed-off-by: panguixin <panguixin@bytedance.com>
* add change log
Signed-off-by: panguixin <panguixin@bytedance.com>
---------
Signed-off-by: panguixin <panguixin@bytedance.com>
Signed-off-by: Andrew Ross <andrross@amazon.com>
Co-authored-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 9f649e0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 13a1038 commit 3ad33d2
3 files changed
Lines changed: 22 additions & 6 deletions
File tree
- server/src
- main/java/org/opensearch/cluster/routing/allocation/allocator
- test/java/org/opensearch/cluster/routing/allocation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
server/src/main/java/org/opensearch/cluster/routing/allocation/allocator/RemoteShardsBalancer.java
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
361 | 367 | | |
362 | 368 | | |
363 | | - | |
| 369 | + | |
364 | 370 | | |
365 | 371 | | |
366 | | - | |
| 372 | + | |
367 | 373 | | |
368 | 374 | | |
369 | 375 | | |
| |||
424 | 430 | | |
425 | 431 | | |
426 | 432 | | |
427 | | - | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
| 436 | + | |
430 | 437 | | |
431 | | - | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
467 | 473 | | |
468 | 474 | | |
469 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
470 | 480 | | |
471 | 481 | | |
472 | 482 | | |
| |||
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
481 | | - | |
| 491 | + | |
482 | 492 | | |
483 | 493 | | |
484 | 494 | | |
485 | 495 | | |
486 | 496 | | |
487 | 497 | | |
488 | | - | |
| 498 | + | |
489 | 499 | | |
490 | 500 | | |
491 | 501 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
232 | 237 | | |
233 | 238 | | |
234 | 239 | | |
| |||
0 commit comments