Uh oh!
There was an error while loading. Please reload this page.
branch-4.0: [fix](fe) add --drop_backends param to start_fe.sh (#63306) - #63795
Conversation
hello-stephen
commented
May 28, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
mymeiyi
commented
May 28, 2026
run buildall |
There was a problem hiding this comment.
Pull request overview
This PR backports a new FE startup flag --drop_backends to branch-4.0, wiring it from bin/start_fe.sh into FE argument parsing and executing backend removal when the FE transitions to MASTER (including a docker-compose cloud recovery path).
Changes:
- Add
--drop_backendsparsing inbin/start_fe.shand propagate it into the FE Java process args. - Add FE CLI option/system property plumbing (
FeConstants+DorisFE.parseArgs) fordrop_backends. - On master transfer (
Env.transferToMaster()), drop all backends (normal mode) or delete cloud backends (cloud mode); docker cloud recovery script now enables this flag during metadata failure recovery.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| fe/fe-core/src/main/java/org/apache/doris/DorisFE.java | Adds a new CLI option and sets a system property when --drop_backends is present. |
| fe/fe-core/src/main/java/org/apache/doris/common/FeConstants.java | Defines the drop_backends system property key. |
| fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | Executes backend deletion when the FE becomes MASTER and the flag is set. |
| docker/runtime/doris-compose/resource/init_fe.sh | Enables --drop_backends during cloud snapshot restore recovery startup. |
| bin/start_fe.sh | Adds --drop_backends getopt parsing and passes it to the FE JVM command line. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if (Config.isNotCloudMode()) { | ||
| for (Backend be : bes) { | ||
| systemInfoService.dropBackend(be.getHost(), be.getHeartbeatPort()); | ||
| } | ||
| } else { |
| } catch (Exception e) { | ||
| LOG.warn("failed to drop backends", e); | ||
| } | ||
| System.clearProperty(FeConstants.DROP_BACKENDS_KEY); | ||
| LOG.info("finished dropping all backends"); |
hello-stephen
commented
May 28, 2026
FE UT Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
pick #63306