-
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
[BugFix] wrapped http createContext in try/catch #565
Conversation
@@ -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"; |
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.
Is the _opendistro
URL relevant for any versions of opensearch-project / performance-analyzer-rca
?
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.
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 (
b56706b
to
e3a84cc
Compare
@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! |
This was closed accidently after doing a force push in the main branch. Will raise a fresh PR again. Apologies! |
b30b506
to
75579f7
Compare
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
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.