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

Get installed plugins from local node and add a timeout #353

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 3, 2024

Description

Refactors the installed plugin validation check to more closely match _cat/plugins:

  • Only queries the local node state to get the localNodeId
  • Adds a timeout to prevent blocking synchronously

Issues Resolved

Fixes #352

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.

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (dd32d55) 71.47% compared to head (0a58e63) 71.41%.

Files Patch % Lines
.../flowframework/workflow/WorkflowProcessSorter.java 75.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #353      +/-   ##
============================================
- Coverage     71.47%   71.41%   -0.06%     
  Complexity      562      562              
============================================
  Files            73       73              
  Lines          3001     3016      +15     
  Branches        230      229       -1     
============================================
+ Hits           2145     2154       +9     
- Misses          746      752       +6     
  Partials        110      110              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

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

LGTM but had a question

Copy link
Member

@amitgalitz amitgalitz left a comment

Choose a reason for hiding this comment

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

LGTM, should we add an issue to add multi node integ tests? Also test this manually on multiple node cluster

@dbwiddis
Copy link
Member Author

dbwiddis commented Jan 3, 2024

LGTM, should we add an issue to add multi node integ tests? Also test this manually on multiple node cluster

It's being tested multinode in end-to-end testing which is how we found this issue to start with.

But we could change numNodes in our existing integ test CI.

@dbwiddis dbwiddis merged commit efdbcb0 into opensearch-project:main Jan 3, 2024
22 checks passed
@dbwiddis dbwiddis deleted the installed-plugins branch January 3, 2024 22:51
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 3, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit efdbcb0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Jan 3, 2024
#357)

Get installed plugins from local node and add a timeout (#353)


(cherry picked from commit efdbcb0)

Signed-off-by: Daniel Widdis <[email protected]>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Validation of installed plugins blocks forever
4 participants