-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][fn] Fix JavaInstanceStarter inferring type class name error #19896
Conversation
@jiangpengcheng Could you add more details for the actual modifications you made in this PR? |
Sure, Updated |
/pulsarbot rerun-failure-checks |
Codecov Report
@@ Coverage Diff @@
## master #19896 +/- ##
=============================================
+ Coverage 24.42% 61.94% +37.52%
- Complexity 291 3507 +3216
=============================================
Files 1603 1859 +256
Lines 124343 136750 +12407
Branches 13571 15034 +1463
=============================================
+ Hits 30369 84709 +54340
+ Misses 89490 44264 -45226
- Partials 4484 7777 +3293
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The pr had no activity for 30 days, mark with Stale label. |
…ache#19896) (cherry picked from commit 05e57dd)
Fixes #19885
Master Issue: #xyz
PIP: #xyz
Motivation
JavaInstanceStarter still cannot infer type class name
Modifications
FunctionCacheManager
inJavaInstanceStarter
to create the function class loader and pass thisfnCache
toThreadRuntimeFactory
's constructor method.ThreadRuntimeFactory
, which add afnCache
parameter so that it can reuse thefnCache
created inJavaInstanceStarter
ThreadRuntime#loadJars
public so it can be called in theJavaInstanceStarter
userConfigs
is null before callinguserConfigs.containsKey
functionDetailsBuilder.getSink().getClassName()
to load sink class instead offunctionDetailsBuilder.getClassName()
since this one is alwaysorg.apache.pulsar.functions.api.utils.IdentityFunction
functionDetailsBuilder.getSource().getClassName(), classLoader
to load source class instead offunctionDetailsBuilder.getClassName()
since this one is alwaysorg.apache.pulsar.functions.api.utils.IdentityFunction
Verifying this change
(Please pick either of the following options)
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: jiangpengcheng#7