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

Change ContextClassLoader to NarClassLoader in AdditionalServlet #13501

Merged
merged 3 commits into from
Jan 4, 2022
Merged

Change ContextClassLoader to NarClassLoader in AdditionalServlet #13501

merged 3 commits into from
Jan 4, 2022

Conversation

mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Dec 25, 2021

Motivation

It's AddtionalServelt side change, like #11270

Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every protocol handler callback, and change it back to original class loader afterwards.

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): ( no)
  • The public API: ( no)
  • The schema: ( no)
  • The default values of configurations: ( no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 25, 2021
@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

@BewareMyPower
Copy link
Contributor

Could you add a test to verify this change?

@mattisonchao
Copy link
Member Author

@BewareMyPower I will do that.

@mattisonchao
Copy link
Member Author

@BewareMyPower

I have added test.

@BewareMyPower BewareMyPower merged commit 40ac793 into apache:master Jan 4, 2022
wuzhanpeng pushed a commit to wuzhanpeng/pulsar that referenced this pull request Jan 5, 2022
…che#13501)

### Motivation

It's ``AddtionalServlet`` side change, like apache#11270 

### Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every protocol handler callback, and change it back to original class loader afterwards.
codelipenghui pushed a commit that referenced this pull request Jan 6, 2022
)

### Motivation

It's ``AddtionalServlet`` side change, like #11270

### Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every protocol handler callback, and change it back to original class loader afterwards.

(cherry picked from commit 40ac793)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jan 6, 2022
codelipenghui pushed a commit that referenced this pull request Jan 10, 2022
)

### Motivation

It's ``AddtionalServlet`` side change, like #11270

### Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every protocol handler callback, and change it back to original class loader afterwards.

(cherry picked from commit 40ac793)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jan 10, 2022
codelipenghui pushed a commit that referenced this pull request Jan 11, 2022
…tor (#13589)

### Motivation

It's ``BrokerInterceptor`` side change, like #13501 

### Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every interceptor handler callback, and change it back to original class loader afterwards.
liudezhi2098 pushed a commit to liudezhi2098/pulsar that referenced this pull request Jan 11, 2022
…tor (apache#13589)

### Motivation

It's ``BrokerInterceptor`` side change, like apache#13501 

### Modifications

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every interceptor handler callback, and change it back to original class loader afterwards.
codelipenghui pushed a commit that referenced this pull request Jan 18, 2022
…tor (#13589)

It's ``BrokerInterceptor`` side change, like #13501

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every interceptor handler callback, and change it back to original class loader afterwards.

(cherry picked from commit afc241f)
codelipenghui pushed a commit that referenced this pull request Jan 18, 2022
…tor (#13589)

It's ``BrokerInterceptor`` side change, like #13501

Change context class loader through Thread.currentThread().setContextClassLoader(classLoader) before every interceptor handler callback, and change it back to original class loader afterwards.

(cherry picked from commit afc241f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.3 release/2.9.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants