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

Improve plugin descriptor warnings #2836

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Improve plugin descriptor warnings #2836

merged 1 commit into from
Aug 13, 2024

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Aug 13, 2024

This improves status logger warnings about:

  • missing Log4j2Plugin.dat plugin descriptors,
  • usage of package scanning.

The warnings are reworded in a way that they are more useful to end-users. If package scanning is enabled, linkage errors (almost exclusively due to optional dependencies) are logged at a DEBUG level instead of WARN.

This addresses @vlsi suggestions from apache/jmeter#5937 (comment) and fixes #2835.

@ppkarwasz ppkarwasz marked this pull request as ready for review August 13, 2024 11:57
@ppkarwasz
Copy link
Contributor Author

@vy,

I added some test cases to check for the presence of an appropriate warning message.

@ppkarwasz ppkarwasz requested a review from vy August 13, 2024 13:03
This improves status logger warnings about:

* missing `Log4j2Plugin.dat` plugin descriptors,
* usage of package scanning.

The warnings are reworded in a way that they are more useful to end-users.
If package scanning is enabled, linkage errors (almost exclusively due to optional dependencies) are logged at a `DEBUG` level instead of `WARN`.

The `PluginManager` tests are revamped to:

- Look for a status logger warning if a deprecated plugin scanning feature is used.
- Look for a status logger warning if no plugin descriptor is available.

This addresses @vlsi suggestions from
apache/jmeter#5937 (comment) and fixes #2835.

Co-authored-by: Volkan Yazıcı <[email protected]>
@ppkarwasz ppkarwasz force-pushed the fix/2.x/package-scanning branch from d2bdd02 to 715c97a Compare August 13, 2024 14:22
@ppkarwasz ppkarwasz merged commit 715c97a into 2.x Aug 13, 2024
6 checks passed
@ppkarwasz ppkarwasz deleted the fix/2.x/package-scanning branch August 13, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Several ClassNotFoundException warnings after upgrading to 2.23.x
2 participants