Skip to content

[refactor][broker] Refactor reflection method in delayed and service module - #17347

Merged
Jason918 merged 6 commits into
apache:masterfrom
HQebupt:refactRelection3
Sep 8, 2022
Merged

Jason918 merged 6 commits into
apache:masterfrom
HQebupt:refactRelection3

Conversation

@HQebupt

@HQebupt HQebupt commented Aug 30, 2022

Copy link
Copy Markdown
Contributor

Motivation

There are multiple ways of loading classes with reflection in Pulsar delayed,intercept,protocol,service module. And we should have some common code.

Modifications

  • Unify the reflection method in pulsar delayed,intercept,protocol,service module.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup without any test coverage.

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?

  • doc-not-needed

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Aug 30, 2022
@HQebupt

HQebupt commented Aug 31, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Aug 31, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@HQebupt

HQebupt commented Aug 31, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Aug 31, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Sep 1, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@HQebupt

HQebupt commented Sep 1, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Sep 1, 2022

Copy link
Copy Markdown
Contributor Author

@Jason918 PTAL

@AnonHxy
AnonHxy self-requested a review September 2, 2022 02:30
@AnonHxy
AnonHxy self-requested a review September 2, 2022 02:41
@HQebupt HQebupt changed the title [refactor][broker]refactor reflection method in delayed,intercept,protocol,service module [refactor][broker]refactor reflection method in delayed and service module Sep 2, 2022
@HQebupt

HQebupt commented Sep 2, 2022

Copy link
Copy Markdown
Contributor Author

Mocking classloader with Java 11 crashes JVM. see mockito/mockito#1696. I am going to work on it later. So I remove all NarClassLoader related code. PTAL. @AnonHxy

@HQebupt

HQebupt commented Sep 2, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@AnonHxy AnonHxy assigned AnonHxy and HQebupt and unassigned AnonHxy Sep 3, 2022

@Jason918 Jason918 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Jason918 Jason918 added the type/refactor Code or documentation refactors. e.g. refactor code structure or methods to improve code readability label Sep 4, 2022
@Jason918 Jason918 added this to the 2.12.0 milestone Sep 4, 2022
@Jason918

Jason918 commented Sep 4, 2022

Copy link
Copy Markdown
Contributor

Please check CI @HQebupt

@HQebupt

HQebupt commented Sep 6, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@HQebupt

HQebupt commented Sep 6, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Sep 7, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@HQebupt

HQebupt commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@Jason918 Jason918 changed the title [refactor][broker]refactor reflection method in delayed and service module [refactor][broker] Refactor reflection method in delayed and service module Sep 8, 2022
@Jason918
Jason918 merged commit 2848fa0 into apache:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc-not-needed Your PR changes do not impact docs type/refactor Code or documentation refactors. e.g. refactor code structure or methods to improve code readability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants