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

RemoteInvocationHandler.reportStats LogRecord’s could get mangled during serialization #392

Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Aug 20, 2020

See jenkinsci/jenkins#4621 for the original buglet. As of jenkinsci/jenkins#4912, seems better to just avoid the problematic idiom.

@@ -719,63 +718,63 @@ private void reportStats() {
if (m15Std > 1 && 100 < m15Avg - 2 * m15Std) {
if (tStd > 1 && 100 < tAvg - 2 * tStd) {
logger.log(Level.SEVERE,
Copy link
Member Author

Choose a reason for hiding this comment

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

These are some sort of exotic conditions with no test coverage that I know of, so just hoping it works.

Copy link
Member Author

Choose a reason for hiding this comment

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

see #81

@jeffret-b
Copy link
Contributor

Builds fine on my system. Let's see if we can get a build on CI.

@jeffret-b jeffret-b closed this Oct 14, 2020
@jeffret-b jeffret-b reopened this Oct 14, 2020
Copy link
Contributor

@jeffret-b jeffret-b left a comment

Choose a reason for hiding this comment

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

Looks good. Hopefully it will work well enough.

String.format() can be slow, but we shouldn't be doing it enough here to cause performance problems.

@jeffret-b jeffret-b added bug For changelog: Fixes a bug. ready-to-merge labels Oct 14, 2020
@jeffret-b jeffret-b merged commit a63b8fc into jenkinsci:master Oct 15, 2020
@jglick jglick deleted the RemoteInvocationHandler.reportStats-logging branch October 16, 2020 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Fixes a bug. ready-to-merge
Projects
None yet
2 participants