-
Notifications
You must be signed in to change notification settings - Fork 59
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 rpm build by adding config to env variable #172
Conversation
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
public static final String DEFAULT_CONFIG_FOLDER_PATH = | ||
OPENSEARCH_HOME | ||
+ File.separator | ||
+ "config" | ||
+ File.separator | ||
+ "opensearch-performance-analyzer" | ||
+ File.separator | ||
+ "performance-analyzer.properties"; | ||
+ File.separator; | ||
private static final String DEFAULT_CONFIG_FILE_PATH = | ||
DEFAULT_CONFIG_FOLDER_PATH + "performance-analyzer.properties"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we still using OPENSEARCH_HOME
here for the default config folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using OPENSEARCH_HOME
here for the default config folder. Removing the default maybe a better idea. Any thoughts?
performance-analyzer-agent
which starts the PA process will never succeed if the setting is not present, which means this DEFAULT value will never be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ok to remove the var if never used.
* Update configFilePath location (#172) Signed-off-by: sruti1312 <srutiparthiban@gmail.com> * Disable plugin if configFilePath is not present Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
* Update folder names (#166) Signed-off-by: sruti1312 <srutiparthiban@gmail.com> * Update PA directories from plugins to root (#168) Signed-off-by: sruti1312 <srutiparthiban@gmail.com> * Update configFilePath location (#172) Signed-off-by: sruti1312 <srutiparthiban@gmail.com> * Disable plugin if configFilePath is not present (#173) Signed-off-by: sruti1312 <srutiparthiban@gmail.com>
Signed-off-by: sruti1312 srutiparthiban@gmail.com
Is your feature request related to a problem? Please provide an existing Issue # , or describe.
opensearch-project/performance-analyzer#197
Describe the solution you are proposing
Checks for
opensearch.path.conf
before setting the default config value.Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.