[Enhancement] Make plugin install/uninstall idempotent#75563
Conversation
🌎 Translation Required?Thanks for your doc contribution! The following languages are missing or outdated for your changes. 🤖 Automated TranslationsIf you are fluent in any of the missing languages you can add them. If not, a maintainer can generate the translations below. Maintainer: Check the ones you wish to generate:
|
|
@HangyuanLiu FE Incremental coverage report seems stale, It should be more than 80%, Is there a way to check for staleness in the FE coverage pipeline ? I don't have access to CI logs to check |
Module-risk briefing for Codex reviewThis is review focus, not a finding list. Validate against the diff. High-confidence risks
|
| LOG.info("uninstall plugin[{}] which does not exist", pluginName); | ||
| return; | ||
| } | ||
| throw new DdlException("Plugin " + pluginName + " does not exist"); |
|
@s4ch1n @dirtysalt - trying to understand, how does this plugin zip in installed? adding to the plugin folder? and is there any other check SR does before adding to the plugins.... @dirtysalt thanks |
|
@osscm I'll try to answer some of the questions.
A plugin zip can be installed from either a local path or a remote http/https URL. Once fetched, StarRocks extracts it and moves it into $STARROCKS_HOME/plugins//. More info Before installing, SR runs a PLUGIN system privilege check, validates required fields in plugin.properties (name, type, version, classname), and confirms the plugin class can actually be loaded - among other checks.
From a security standpoint though, By default, only |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 8 / 8 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
|



Why I'm doing:
Add IF NOT EXISTS / IF EXISTS support for idempotent plugin install/uninstall
#74913
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: