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

[BugFix] wrapped http createContext in try/catch #565

Closed
wants to merge 0 commits into from

Conversation

atharvasharma61
Copy link
Contributor

@atharvasharma61 atharvasharma61 commented Jul 16, 2024

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
resolved #545

Describe the solution you are proposing
httpServer.createContext throws illegalArgumentException when called more than once for same parameters. This commit ensures to avoid such scenarios in the PerformanceAnalyzerApp main class by fixing the legacy parameter. This commit also ensures that the RcaController thread gracefully handles the similar situation when RcaController thread is killed and respawned.

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.

Check List

  • Backport Labels added.
  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

ansjcy
ansjcy previously approved these changes Jul 17, 2024
@@ -17,7 +17,7 @@ public class Util {
private static final Logger LOG = LogManager.getLogger(Util.class);

public static final String PA_BASE_URL = "/_plugins/_performanceanalyzer";
public static final String LEGACY_OPENDISTRO_PA_BASE_URL = PA_BASE_URL;
public static final String LEGACY_OPENDISTRO_PA_BASE_URL = "/_opendistro/_performanceanalyzer";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the _opendistro URL relevant for any versions of opensearch-project / performance-analyzer-rca ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are not using it anywhere but we are maintaining it because we don't want to break any use-case if there exists any (

@ccxxcisco
Copy link

@ansjcy @khushbr Hi, our project requires PA and is waiting this bug fixed. Could I know if this PR will be merged and released in 2.17.0?

@ccxxcisco
Copy link

@atharvasharma61 Hi, why did you close this PR?

@ansjcy @khushbr Why didn't you tend to solve this bug? Why you leave an obvious bug not fix for a so long time? Unbelieveable!

@atharvasharma61
Copy link
Contributor Author

This was closed accidently after doing a force push in the main branch. Will raise a fresh PR again. Apologies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Performance Analyzer webserver on port 9600 not responding to any API calls (caused by JDK upgrade?)
4 participants