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

WELD-1948 Bean store leak - add DEBUG log message with the list of affected bean identifiers #1073

Closed
wants to merge 2 commits into from

Conversation

mkouba
Copy link
Member

@mkouba mkouba commented Jul 14, 2015

  • implemented only for HttpRequestContextImpl
  • also updated bean identifier index log message

affected bean identifiers

- implemented only for HttpRequestContextImpl
- also updated bean identifier index log message
@mkouba mkouba added the 2.3 label Jul 14, 2015
@weld-tester
Copy link

Triggering build using a merge of 8362296 on branch 2.3:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link

Build 924 is now running using a merge of 8362296 on branch 2.3:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/924

@weld-tester
Copy link

ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request);
ContextLogger.LOG.beanStoreLeakAffectedBeanIdentifiers(this.getClass().getName(), Iterables.toMultiRowString(beanStore));
Copy link
Member

Choose a reason for hiding this comment

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

We should only be building the multi-row string if leak happens AND debug logging is enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, except for using BasicLogger.isDebugEnabled() together with logging interface does not seem to be a good practice. On the other hand, we already have a similar piece of code in Weld. Let's fix it.

@weld-tester
Copy link

@weld-tester
Copy link

Triggering build using a merge of 611cb72 on branch 2.3:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/

@weld-tester
Copy link

Build 939 is now running using a merge of 611cb72 on branch 2.3:
Private: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Weld-2.x-pull-player-executor-osprey/939

@weld-tester
Copy link

2 similar comments
@weld-tester
Copy link

@weld-tester
Copy link

@jharting
Copy link
Member

Merged, thanks!

@jharting jharting closed this Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants