Skip to content

Improve extension loading by prioritizing dependencies, collect extension plugin errors on apply#6017

Merged
dlvenable merged 2 commits into
opensearch-project:mainfrom
graytaylor0:ImproveExtensionLoad
Aug 27, 2025
Merged

Improve extension loading by prioritizing dependencies, collect extension plugin errors on apply#6017
dlvenable merged 2 commits into
opensearch-project:mainfrom
graytaylor0:ImproveExtensionLoad

Conversation

@graytaylor0

@graytaylor0 graytaylor0 commented Aug 26, 2025

Copy link
Copy Markdown
Member

Description

Improve extension loading by prioritizing dependencies rather than prioritizing configured plugins. collect extension plugin errors on apply

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…s on apply of extensions

Signed-off-by: Taylor Gray <tylgry@amazon.com>
@graytaylor0 graytaylor0 force-pushed the ImproveExtensionLoad branch from 5c032fc to d640461 Compare August 26, 2025 22:20
when(context2.getDependentClasses()).thenReturn(classes);
assertThat(extensionsLoaderComparator.compare(context1, context2), equalTo(-1));

when(context1.getDependentClasses()).thenReturn(new Class<?>[]{});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably have a very specific unit test for this scenario to make sure it doesn't happen again.

Signed-off-by: Taylor Gray <tylgry@amazon.com>
@graytaylor0 graytaylor0 requested a review from dlvenable August 26, 2025 22:29
@dlvenable dlvenable merged commit 1f8c5df into opensearch-project:main Aug 27, 2025
47 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants