[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16070195#comment-16070195 ] Michael Braun commented on SOLR-10415: -- Breaking this up into sub-tickets with patches to make this easier - see [SOLR-10985] > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16025457#comment-16025457 ] ASF GitHub Bot commented on SOLR-10415: --- Github user tflobbe commented on the issue: https://github.com/apache/lucene-solr/pull/182 This PR can be closed, right? > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15978915#comment-15978915 ] Mike Drob commented on SOLR-10415: -- Great catch, Michael! > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15974835#comment-15974835 ] ASF subversion and git services commented on SOLR-10415: Commit 7d929f48e9f017f1b3db93d3f3398a157ca06193 in lucene-solr's branch refs/heads/branch_6x from [~cpoerschke] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7d929f4 ] (part 1 of several) SOLR-10415: use parameterized debug logging in SearchHandler and RealTimeGetComponent (Michael Braun via Christine Poerschke) > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15974555#comment-15974555 ] ASF subversion and git services commented on SOLR-10415: Commit 6eac7fa0211565606ac4acbdc848ad1ef57e6aa1 in lucene-solr's branch refs/heads/master from [~cpoerschke] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6eac7fa ] (part 1 of several) SOLR-10415: use parameterized debug logging in SearchHandler and RealTimeGetComponent (Michael Braun via Christine Poerschke) > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15961853#comment-15961853 ] Michael Braun commented on SOLR-10415: -- [~cpoerschke] made a first pass in the PR, please let me know what you think. Thanks! > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15961852#comment-15961852 ] ASF GitHub Bot commented on SOLR-10415: --- GitHub user michaelbraun opened a pull request: https://github.com/apache/lucene-solr/pull/182 SOLR-10415 - improve debug logging to use parameterized logging You can merge this pull request into a Git repository by running: $ git pull https://github.com/michaelbraun/lucene-solr solr-10415-debuglogging Alternatively you can review and apply these changes as the patch at: https://github.com/apache/lucene-solr/pull/182.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #182 commit faaa3d4d426488c6bffbc4995bad2b45ea5d60f3 Author: Michael BraunDate: 2017-04-08T14:45:46Z SOLR-10415 - improve debug logging to use parameterized logging where appropriate > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10415) Within solr-core, debug/trace level logging should use parameterized log messages
[ https://issues.apache.org/jira/browse/SOLR-10415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15955498#comment-15955498 ] Christine Poerschke commented on SOLR-10415: +1 to the idea. Also, from memory the parameterized log message have (or perhaps had) a limit on how many args can follow the first arg but this can be overcome e.g. like this: {code} log.debug("calling waitForLeaderToSeeDownState for coreZkNodeName={} collection={} shard={}", new Object[]{coreZkNodeName, collection, slice}); {code} Also wondering, once the code is cleaned up, could something similar to the forbidden-apis check be used to prevent the re-introduction of unparameterized debug/trace log messages? In the meantime, there are many debug and trace level logging statements, if any particularly stood out in your samplings, perhaps we could start here by changing those? > Within solr-core, debug/trace level logging should use parameterized log > messages > - > > Key: SOLR-10415 > URL: https://issues.apache.org/jira/browse/SOLR-10415 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Michael Braun >Priority: Trivial > > Noticed in several samplings of an active Solr that several debug statements > were taking decently measurable time because of the time of the .toString > even when the log.debug() statement would not output because it was > effectively INFO or higher. Using parameterized logging statements, ie > 'log.debug("Blah {}", o)' will avoid incurring that cost. -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org