Skip to content

[ISSUE #4403] Fix the SPI extension admin-api loading of storage-plugins #4404

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

Merged
merged 7 commits into from
Aug 28, 2023

Conversation

Pil0tXia
Copy link
Member

@Pil0tXia Pil0tXia commented Aug 26, 2023

Fixes #4403.

Motivation

storage-plugins didn't realize org.apache.eventmesh.api.admin.Admin and cause boot failure.

  1. SPI loading fail:

image

image

  1. circular dependency:

image

image

  1. NPE:

image

Modifications

  1. Realize admin-api
  2. Fix knative circular dependency
  3. Fix pravega NPE

It is a quick fix, including:

  • mongodb
  • knative
  • pravega
  • pulsar

not including:

Verification

image

image

image

image

PravegaStorageResourceServiceImpl is special comparing with other storage-plugins, because it connects pravega server on EventMesh startup. I deployed a pravega and the connection established.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@codecov
Copy link

codecov bot commented Aug 27, 2023

Codecov Report

Merging #4404 (675aaf9) into master (3678c23) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

❗ Current head 675aaf9 differs from pull request most recent head 0bc7239. Consider uploading reports for the commit 0bc7239 to get more accurate results

@@             Coverage Diff              @@
##             master    #4404      +/-   ##
============================================
- Coverage     17.82%   17.75%   -0.08%     
  Complexity     1514     1514              
============================================
  Files           604      612       +8     
  Lines         25559    25664     +105     
  Branches       2400     2400              
============================================
  Hits           4556     4556              
- Misses        20564    20669     +105     
  Partials        439      439              
Files Changed Coverage Δ
.../eventmesh/storage/knative/admin/KnativeAdmin.java 0.00% <0.00%> (ø)
...esh/storage/knative/admin/KnativeAdminAdaptor.java 0.00% <0.00%> (ø)
.../eventmesh/storage/mongodb/admin/MongodbAdmin.java 0.00% <0.00%> (ø)
...esh/storage/mongodb/admin/MongodbAdminAdaptor.java 0.00% <0.00%> (ø)
...age/pravega/PravegaStorageResourceServiceImpl.java 0.00% <0.00%> (ø)
.../eventmesh/storage/pravega/admin/PravegaAdmin.java 0.00% <0.00%> (ø)
...esh/storage/pravega/admin/PravegaAdminAdaptor.java 0.00% <0.00%> (ø)
...he/eventmesh/storage/pulsar/admin/PulsarAdmin.java 0.00% <0.00%> (ø)
...tmesh/storage/pulsar/admin/PulsarAdminAdaptor.java 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xwm1992 xwm1992 merged commit b55e6db into apache:master Aug 28, 2023
@Pil0tXia Pil0tXia deleted the pil0txia_bug_4403 branch January 4, 2024 05:13
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
…e-plugins (apache#4404)

* fix: remove knative circulate dependency

* feat: realize knative admin-api

* feat: realize mongodb admin-api

* feat: realize pulsar admin-api

* feat: realize pravega admin-api

* fix: deliver a config to client instead of null

* chore: revert startup plugin config
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.

[Bug] Fix the SPI extension admin-api loading of storage-plugins
3 participants