Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Add EngineConfig extensions to EnginePlugin (#1387) #1401

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

nknize
Copy link
Collaborator

@nknize nknize commented Oct 21, 2021

This PR adds an extension point to EngineConfig through EnginePlugin using
a new EngineConfigFactory mechanism. EnginePlugin provides interface methods to
override configurations in EngineConfig. The EngineConfigFactory produces a new
instance of the EngineConfig using these overrides. Defaults are used absent
overridden configurations.

This serves as a mechanism to override Engine configurations (e.g., CodecService,
TranslogConfig) enabling Plugins to have higher fidelity for changing Engine
behavior without having to override the entire Engine (which is only permitted for
a single plugin).

This commit adds an extension point to EngineConfig through EnginePlugin using
a new EngineConfigFactory mechanism. EnginePlugin provides interface methods to
override configurations in EngineConfig. The EngineConfigFactory produces a new
instance of the EngineConfig using these overrides. Defaults are used absent
overridden configurations.

This serves as a mechanism to override Engine configurations (e.g., CodecService,
TranslogConfig) enabling Plugins to have higher fidelity for changing Engine
behavior without having to override the entire Engine (which is only permitted for
a single plugin).

Signed-off-by: Nicholas Walter Knize <[email protected]>
@nknize nknize added enhancement Enhancement or improvement to existing feature or request backport PRs or issues specific to backporting features or enhancments distributed framework v1.2.0 Issues related to version 1.2.0 labels Oct 21, 2021
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@nknize
Copy link
Collaborator Author

nknize commented Oct 21, 2021

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 34bce75

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 34bce75

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 34bce75

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 34bce75
Log 758

Reports 758

@nknize nknize merged commit b24b69d into opensearch-project:1.x Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs or issues specific to backporting features or enhancments distributed framework enhancement Enhancement or improvement to existing feature or request v1.2.0 Issues related to version 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants