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

Fix log duplication we experienced in Jenkins when testing RHBQ 3.8 #1298

Conversation

michalvavrik
Copy link
Member

@michalvavrik michalvavrik commented Sep 10, 2024

Summary

For context, this is current state:

What issue do we have:

  • In the special case (when RHBQ is run on RHEL by our FW) the Jboss console handler is applied in addition to the
    private static final Logger LOG = Logger.getLogger(Log.class.getName());
    and we get everything twice because both io.quarkus.bootstrap.logging.QuarkusDelayedHandler and org.jboss.logmanager.handlers.ConsoleHandler are logging console output.
    • the io.quarkus.bootstrap.logging.QuarkusDelayedHandler doesn't seem to be present in other cases

What has changed:

  • my bet is on Switch to jboss-logmanager quarkusio/quarkus#33318 because 3.2 is not affected (I run tests, couldn't reproduce it so far)
  • I won't investigate more unless I am aware of a scenario when Quarkus is affected, not just our FW, and I am not aware about just scenario ATM

Proposed solution:

This PR is backwards compatible and it will fix log duplications even if we don't use Jboss Log Manager.

Please check the relevant options

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Dependency update
  • Refactoring
  • Release (follows conventions described in the RELEASE.md)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • This change requires execution against OCP (use run tests phrase in comment)

Checklist:

  • Example scenarios has been updated / added
  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

@michalvavrik michalvavrik added triage/backport-1.3? Backport to 1.3 branch may be required triage/backport-1.4? Quarkus 3.8 stream triage/backport-1.5? Quarkus 3.15 stream labels Sep 10, 2024
@michalvavrik michalvavrik force-pushed the feature/fix-duplicated-logging-on-rhel-rhbq branch 2 times, most recently from 3c920af to d22be8f Compare September 10, 2024 20:06
@michalvavrik michalvavrik changed the title Fix log duplication we experienced in Jenkins when testing RHBQ 3.8 and 3.2 Fix log duplication we experienced in Jenkins when testing RHBQ 3.8 Sep 10, 2024
@michalvavrik michalvavrik removed the triage/backport-1.3? Backport to 1.3 branch may be required label Sep 10, 2024
@michalvavrik
Copy link
Member Author

Failures are unrelated; #1299 should take care of them

@michalvavrik
Copy link
Member Author

hey @mjurc, @rsvoboda is processing 3.8, maybe you could review instead?

@mjurc mjurc requested review from mjurc and removed request for rsvoboda September 11, 2024 07:50
@michalvavrik
Copy link
Member Author

I'll rebase on current main to get CI green.

@michalvavrik michalvavrik force-pushed the feature/fix-duplicated-logging-on-rhel-rhbq branch from d22be8f to 88bcb8b Compare September 11, 2024 11:46
Copy link
Member

@mjurc mjurc left a comment

Choose a reason for hiding this comment

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

LGTM, let's see if this helps :)

@mjurc mjurc merged commit 715755a into quarkus-qe:main Sep 11, 2024
8 checks passed
@michalvavrik michalvavrik deleted the feature/fix-duplicated-logging-on-rhel-rhbq branch September 11, 2024 21:03
@michalvavrik michalvavrik removed the triage/backport-1.5? Quarkus 3.15 stream label Sep 13, 2024
@michalvavrik michalvavrik removed the triage/backport-1.4? Quarkus 3.8 stream label Sep 13, 2024
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.

2 participants