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

Web console: better management proxy detection #15453

Merged
merged 6 commits into from
Nov 30, 2023

Conversation

vogievetsky
Copy link
Contributor

This PR tries to address a UX confusion where the console goes into "no management proxy mode" when in-fact the coordinator leader can simply not be determined in a transitive state. This is because right now the console relies on havign /proxy/coordinator/status return 200 to know that the management proxy is enabled. But that call might fail even when the management proxy is on.

In this PR I add a /proxy/enabled endpoint that simply returns {"enabled":true} and retool the console to use that route instead. Also I allow for a code 400 to indicate that the management proxy is running.

@vogievetsky vogievetsky merged commit 31fa63e into apache:master Nov 30, 2023
83 checks passed
@vogievetsky vogievetsky deleted the managment_proxy_enabled branch November 30, 2023 05:43
yashdeep97 pushed a commit to yashdeep97/druid that referenced this pull request Dec 1, 2023
* better management proxy detection

* fix checkstyle issue

* add test

* test should read the body also

* use ObjectMapper

* assert read ammount
yashdeep97 pushed a commit to yashdeep97/druid that referenced this pull request Dec 1, 2023
* better management proxy detection

* fix checkstyle issue

* add test

* test should read the body also

* use ObjectMapper

* assert read ammount
@LakshSingla LakshSingla added this to the 29.0.0 milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants