shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[type:feature] Custome classloader hot load plugins to gateway.

Open lahmXu opened this issue 2 years ago • 1 comments

The function points are as follows:

  1. Package the sofa and motan plugins independently, placed in the plugins directory through a separate classloader to load the jar package.
  2. Enable motan, sofa plugins e2e test.
  3. Solve the problem of hession conflict when sofa and motan plugins are enabled together.

lahmXu avatar Jan 17 '24 04:01 lahmXu

Codecov Report

Attention: Patch coverage is 21.22905% with 141 lines in your changes are missing coverage. Please review.

Project coverage is 61.33%. Comparing base (b0bbbb8) to head (a475652). Report is 6 commits behind head on master.

Files Patch % Lines
...rg/apache/shenyu/web/handler/ShenyuWebHandler.java 23.07% 28 Missing and 2 partials :warning:
...he/shenyu/common/isolation/ReverseClassLoader.java 0.00% 20 Missing :warning:
.../apache/shenyu/web/loader/ShenyuLoaderService.java 9.52% 19 Missing :warning:
...yu/plugin/base/cache/CommonMetaDataSubscriber.java 0.00% 16 Missing :warning:
...che/shenyu/web/loader/ShenyuPluginClassLoader.java 0.00% 12 Missing :warning:
...starter/plugin/motan/MotanPluginConfiguration.java 0.00% 9 Missing :warning:
.../org/apache/shenyu/web/loader/PluginJarParser.java 0.00% 8 Missing :warning:
...nyu/plugin/global/DefaultShenyuContextBuilder.java 0.00% 6 Missing :warning:
...g/apache/shenyu/web/loader/ShenyuLoaderResult.java 0.00% 5 Missing :warning:
...pache/shenyu/plugin/base/AbstractShenyuPlugin.java 60.00% 4 Missing :warning:
... and 6 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5403      +/-   ##
============================================
- Coverage     61.48%   61.33%   -0.16%     
- Complexity     8805     8809       +4     
============================================
  Files          1261     1262       +1     
  Lines         39225    39395     +170     
  Branches       3719     3737      +18     
============================================
+ Hits          24118    24161      +43     
- Misses        12927    13060     +133     
+ Partials       2180     2174       -6     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Jan 18 '24 02:01 codecov-commenter