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 BrokerInterceptor #13589

Merged
merged 3 commits into from
Jan 11, 2022
Merged

Change ContextClassLoader to NarClassLoader in BrokerInterceptor #13589

merged 3 commits into from
Jan 11, 2022

Conversation

mattisonchao
Copy link
Member

@mattisonchao mattisonchao commented Dec 31, 2021

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.

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 31, 2021
@mattisonchao
Copy link
Member Author

@codelipenghui @BewareMyPower @eolivelli

PTAL :)

@mattisonchao
Copy link
Member Author

/pulsarbot rerun-failure-checks

@mattisonchao
Copy link
Member Author

@BewareMyPower PTAL :)

@mattisonchao
Copy link
Member Author

@codelipenghui @BewareMyPower
PTAL :)

Copy link
Contributor

@gaoran10 gaoran10 left a comment

Choose a reason for hiding this comment

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

LGTM

@codelipenghui codelipenghui merged commit afc241f into apache:master Jan 11, 2022
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 codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jan 18, 2022
@codelipenghui codelipenghui added this to the 2.10.0 milestone Jan 18, 2022
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 codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jan 18, 2022
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.

6 participants