Skip to content

[AMORO-1523][AMS] Auto-install discovered plugins when no plugin configs exist - #4347

Open
zhang-arvin wants to merge 1 commit into
apache:masterfrom
zhang-arvin:fix/local-optimizer-intellij-1523
Open

[AMORO-1523][AMS] Auto-install discovered plugins when no plugin configs exist#4347
zhang-arvin wants to merge 1 commit into
apache:masterfrom
zhang-arvin:fix/local-optimizer-intellij-1523

Conversation

@zhang-arvin

Copy link
Copy Markdown

What changes were proposed in this pull request?

Fixes #1523: When starting AMS in IntelliJ IDEA, the Local Optimizer cannot be started because the execute-engines.yaml plugin configuration file is missing from the default IDE setup.

Root Cause

AbstractPluginManager.initialize() discovers plugins via ServiceLoader but then only installs those with matching YAML configurations. When started from an IDE without the plugins/ config directory, no configurations are loaded, so discovered plugins like LocalExecutionEngine are never installed.

Fix

When loadPluginConfigurations() returns an empty list but foundAvailablePlugins() has discovered plugins, auto-create default configurations for all discovered plugins. This ensures the Local Optimizer works out-of-the-box in IDE development environments.

How was this patch tested?

  • Verified the fix compiles
  • The emptyConfig() method already exists in PluginConfiguration for this purpose

@github-actions github-actions Bot added the module:ams-server Ams server module label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: When I start AMS on IntelliJ IDEA, I cannot start the Local Optimizer.

1 participant