Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix performance-analyzer-agent configFilePath #268

Merged

Conversation

sidheart
Copy link
Contributor

Issue #, if available: N/A

Description of changes:
We have a class Util.java which we use to look up the location of the
performance-analyzer.properties file. The Util class prepends a prefix
to the Java property we pass in as -DconfigFilePath. This prefix
resulted in a FileNotFoundException error when attempting to locate the
config file inside our Docker environment.

This commit fixes the issue by updating the -DconfigFilePath variable in
the performance-analyzer-agent script file. This is a stopgap measure.
We should strive to refactor the Util class so that it's configurable
and working across all supported platforms.

Tests: Tested manually using enableRca

Code coverage percentage for this patch: N/A

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We have a class Util.java which we use to look up the location of the
performance-analyzer.properties file. The Util class prepends a prefix
to the Java property we pass in as -DconfigFilePath. This prefix
resulted in a FileNotFoundException error when attempting to locate the
config file inside our Docker environment.

This commit fixes the issue by updating the -DconfigFilePath variable in
the performance-analyzer-agent script file. This is a stopgap measure.
We should strive to refactor the Util class so that it's configurable
and working across all supported platforms.
@codecov
Copy link

codecov bot commented Jul 13, 2020

Codecov Report

Merging #268 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #268      +/-   ##
============================================
- Coverage     66.33%   66.25%   -0.08%     
+ Complexity     1795     1792       -3     
============================================
  Files           270      270              
  Lines         11990    11990              
  Branches        952      952              
============================================
- Hits           7953     7944       -9     
- Misses         3722     3729       +7     
- Partials        315      317       +2     
Impacted Files Coverage Δ Complexity Δ
...asticsearch/performanceanalyzer/net/NetClient.java 67.24% <0.00%> (-8.63%) 10.00% <0.00%> (-1.00%)
...nalyzer/rca/net/handler/PublishRequestHandler.java 67.50% <0.00%> (-5.00%) 5.00% <0.00%> (ø%)
...csearch/performanceanalyzer/rca/RcaController.java 79.37% <0.00%> (-2.50%) 34.00% <0.00%> (-2.00%)
...o/elasticsearch/performanceanalyzer/core/Util.java 70.83% <0.00%> (+8.33%) 5.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46f8c15...ac0aa98. Read the comment docs.

@sidheart sidheart merged commit 690b69c into opendistro-for-elasticsearch:master Jul 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants