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

Changed the sequence of Guice injection #454

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

owaiskazi19
Copy link
Member

Description

Fix for the NPE caused by Guice injection which is done before invoking Rest Handlers on the extension's side.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #454 (64bf689) into main (514f796) will not change coverage.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##               main     #454   +/-   ##
=========================================
  Coverage     62.32%   62.32%           
  Complexity      159      159           
=========================================
  Files            30       30           
  Lines           730      730           
  Branches         20       20           
=========================================
  Hits            455      455           
  Misses          266      266           
  Partials          9        9           
Impacted Files Coverage Δ
...main/java/org/opensearch/sdk/ExtensionsRunner.java 68.38% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

LGTM for a quick fix. In the long term I think if we inject the handlers it would also work, but that can wait for another PR

@saratvemulapalli saratvemulapalli merged commit 276a965 into opensearch-project:main Feb 15, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 15, 2023
(cherry picked from commit 276a965)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Feb 15, 2023
(cherry picked from commit 276a965)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kokibas pushed a commit to kokibas/opensearch-sdk-java that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants