-
Notifications
You must be signed in to change notification settings - Fork 509
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
HDDS-9303. Display leader in table and highlight current node in OM web UI #5311
Conversation
@smitajoshi12 thanks for working on this patch, PR description says need to show leader information in ozone manager webUI, however I think we already show LEADER and FOLLOWER info in OM Web UI, but in JSON format, so pls correct the PR description and PR title. |
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
thanks for working on this @smitajoshi12!
I agree with Devesh, the OM roles are already present in the OM UI, it was added by @ArafatKhan2198 in HDDS-6863. For me it looks good already as it is, all the necessary information is present there. |
@dombizita |
@smitajoshi12 what is " |
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.
Thanks for the changes @smitajoshi12 for the OM-HA the table looks fine but what about when we have a standalone cluster will we want to display a table there as well, could you please attach a screenshot for that too.
@ArafatKhan2198 |
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.
@smitajoshi12 Thanks for working over this, have few comments.
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
Outdated
Show resolved
Hide resolved
Giving as JSON format, and showing in tablular format is good. I think its just render the page with data and may not have much impact for table. |
c5107af
to
ef42695
Compare
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.
Thanks for working on this @smitajoshi12, please take a look at my comments!
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
Outdated
Show resolved
Hide resolved
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.
Thanks for updating you patch @smitajoshi12, I added a few comments. Also there are 2 lines that are longer than 30 characters, you can check it here: https://github.com/smitajoshi12/ozone/actions/runs/6657443633/job/18092176653
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.
@smitajoshi12 Given few minor comments, please check
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMMXBean.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
Show resolved
Hide resolved
… and highlight current node
… and highlight current node CSS removal
… and highlight current node. Review Comments
… and highlight current node Review Changes
… and highlight current node
… and highlight current node.Review Changes
8c6da69
to
c47bae6
Compare
/pending If there is exception, how the output looks? do still accessing roles[1],... can have issue over UI in exception case? |
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.
Marking this issue as un-mergeable as requested.
Please use /ready
comment when it's resolved.
Please note that the PR will be closed after 21 days of inactivity from now. (But can be re-opened anytime later...)
If there is exception, how the output looks? do still accessing roles[1],... can have issue over UI in exception case?
/ready I have attached screenshot for Exception Handling. |
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.
Thanks for updating your PR and its description @smitajoshi12, I have one more comment, please take a look at it. Otherwise it's looking good to me!
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
Outdated
Show resolved
Hide resolved
… and highlight current node Review Change
…eb UI CheckStle Issue Solved
…eb UI CheckStle Issue
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.
Thanks for your continuous effort with this @smitajoshi12, could you take a look at my comments? Also please update the screenshots in the PR description with the changes.
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/resources/webapps/ozoneManager/om-overview.html
Outdated
Show resolved
Hide resolved
…eb UI code formatting
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.
@smitajoshi12 LGTM
/ready |
Blocking review request is removed.
Thanks for working on this @smitajoshi12! Thank you for the review @devmadhuu, @ArafatKhan2198 and @sumitagrawl! |
What changes were proposed in this pull request?
SCM web UI displays the leader information on the webUI and it makes debugging easier. Need to do similar in Ozone Manager.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9303
How was this patch tested?
Manually
Old Ozone UI
New Changes
When it is Standalone with no data hiding OM Roles (HA) Table with ozone-ha
Running ozone
Exception Handling