Fix to 65446 - Move statistic_window property to user.properties file#671
Closed
rithvikp1998 wants to merge 1 commit intoapache:masterfrom
Closed
Fix to 65446 - Move statistic_window property to user.properties file#671rithvikp1998 wants to merge 1 commit intoapache:masterfrom
rithvikp1998 wants to merge 1 commit intoapache:masterfrom
Conversation
Contributor
|
I think, this is a valid fix, as the documentation does not state, where the property would have to be placed and reportgenerator.properties is not used for general properties and there are a few other reportgenerator related properties already defined in users.properties. |
Contributor
Author
|
@FSchumacher Can we get this merged then? Or is there anything else I need to do? |
Contributor
|
Thanks for the PR it has been merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
PercentileAggregator class reads the value for statistic_window using the following line:
getPropDefault() calls appProperties.getProperty(). But in the appProperties we are only loading jmeter.properties, user.properties, system.properties etc and not reportgenerator.properties where the value for statistic_window is supposed to be set. So the default value of 20,000 is being picked irrespective of what is set in the properties file.
There are multiple ways to fix this issue but I chose this approach because it is the least intrusive.
Motivation and Context
https://bz.apache.org/bugzilla/show_bug.cgi?id=65446
How Has This Been Tested?
I built the code with the new changes and generated dashboards with some debug log statements in the code. The dashboards were getting generated correctly and the log statements are printing whatever property value I am setting. (Without this patch, they always print 20,000 as the size of the statistic window even when I am setting a different value in reportgenerator.properties file)
Screenshots (if appropriate):
Types of changes
Checklist: