Commit eae3fc5
committed
fix: fall back to regular backend discovery when manager API fails
The /rest/v2/manager/node/backends endpoint may not be supported on older
Doris versions. When getManagerBackendsByComputeGroup throws, fall back to
the regular /api/backends discovery instead of propagating the error.
Also broadened the catch in getManagerBackendsByComputeGroup from
ConnectedFailedException to Exception, so that parse errors (e.g. from
unexpected response formats on older versions) are also handled gracefully
by trying the next FE node.1 parent f4e767b commit eae3fc5
1 file changed
Lines changed: 14 additions & 4 deletions
File tree
- flink-doris-connector/flink-doris-connector-base/src/main/java/org/apache/doris/flink/rest
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
| |||
391 | 401 | | |
392 | 402 | | |
393 | 403 | | |
394 | | - | |
395 | | - | |
| 404 | + | |
| 405 | + | |
396 | 406 | | |
397 | 407 | | |
398 | 408 | | |
| |||
0 commit comments