-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-8415. Recon UI:OM DB Insights Changes #4940
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
Conversation
...zone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/navBar/navBar.tsx
Outdated
Show resolved
Hide resolved
...zone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/navBar/navBar.tsx
Outdated
Show resolved
Hide resolved
...op-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.tsx
Outdated
Show resolved
Hide resolved
...op-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.tsx
Outdated
Show resolved
Hide resolved
devabhishekpal
left a comment
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.
Just had a few nits.
|
@smitajoshi12 Thanks for working on this patch, Few comments:
|
|
@ArafatKhan2198 - can you check the backend API response for points #3, #4, #5 ? |
|
Regarding point number 3, the data shown in the earlier screenshots on the UI was just dummy data and not from an actual cluster. However, I have now verified the API calls with real cluster data, and they are functioning correctly. The For point number 4, dummy data has once again been used. Regarding point number 5, I have suggested some changes in the table structure, including additions and modifications. The table now should display the following columns mapped to their respective JSON attributes:
Furthermore, I have suggested an expansion button where the details of the keys present in each Expanded Table for Each Row ➖
|
ArafatKhan2198
left a comment
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.
ArafatKhan2198
left a comment
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.
ArafatKhan2198
left a comment
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.
Across all the tables where we display the amount of data, it is currently shown in bytes. However, I would suggest displaying it in kilobytes (KB) instead, as it would be more suitable.
|
@smitajoshi12 - pls update the screenshots in PR description with correct data mapping of UI fields with backend API response. |
ArafatKhan2198
left a comment
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.
Thank you for incorporating the final changes into the PR, @smitajoshi12. I have a few more minor comments remaining. Please address them, and then we should be all set to proceed :-
- FSO and NON-FSO filter still not working - bit flaky
- Need to remove Total deleted blocks from overview page as we will not be persuing it for now
- Need to change the limit for the summary of deleted keys to 1 for the overview page
- See if can reduce the font size of numbers in the overview page summary cards
@ArafatKhan2198 |
...p-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.less
Outdated
Show resolved
Hide resolved
...op-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/insights/om/om.tsx
Outdated
Show resolved
Hide resolved
@ArafatKhan2198 Please check and let us know |
@ArafatKhan2198 yes Completed Change and attached latest screenshots. |
@devmadhuu |
Thank you for incorporating the changes, @smitajoshi12. I have tested them on my local machine, and they appear to be functioning correctly. You might want to consider clearing your browser cache; doing so should resolve the issue. |
devmadhuu
left a comment
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 on this patch. LGTM +1
|
@smitajoshi12 Thanks for working on this. LGTM +1 |
@ArafatKhan2198 |
sumitagrawl
left a comment
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 query, please check
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
Show resolved
Hide resolved
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/api/routes.json
Show resolved
Hide resolved
...ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/overview/overview.tsx
Show resolved
Hide resolved
|
@smitajoshi12 Few more cases in UI to handle,
|
|
In Local Cluster Testing time we used this command ozone fs -rm -r -skipTrash ofs://om/volume/ got response in { ], |









What changes were proposed in this pull request?
https://docs.google.com/document/d/1H4VjvNNHwKRac3XDSUCrBnfMOWhqNzxOIlbqwbcw6dI/edit?pli=1#
New left nav under "Insights" should come as "OM DB Insights" where a two tabs will be added on page:
Container Level Info - Refer backend API PR #4509
Key Level Info - Refer backend API PR - #4516
Final Output Document
https://docs.google.com/document/d/1leWPiv6dEuL3jcKfCjd90YH34_oCL67zWJ0WNJ7FDoc/edit
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8415
How was this patch tested?
Manually
Summary Information on Overview Page
/api/v1/keys/open?limit=0
/api/v1/keys/deletePending?limit=1
Response
{
"keysSummary": {
"totalUnreplicatedDataSize": 4610000000,
"totalReplicatedDataSize": 13830000000,
"totalDeletedKeys": 461
},
"lastKey": "/volume/bucket1/e1w46pj5xo/0/-9223372036854772223",
"replicatedDataSize": 30000000,
"unreplicatedDataSize": 10000000,
"deletedKeyInfo": [
],
"status": "OK"
}
RestEndPoint:- /api/v1/containers/mismatch?limit=10&prevKey=0&missingIn=OM

RestEndPoint:- /api/v1/containers/mismatch?limit=10&prevKey=0&missingIn=SCM
End Point :- /api/v1/containers/2/keys
Actual Cluster Response
End Point /api/v1/keys/open?includeFso=true&includeNonFso=false&limit=10&prevKey
Actual Cluster Response
Path :- is mapped to path in fso array
key :- is mapped to key.
Response:
{
"keysSummary": {
"lastKey": "/-4611686018427388160/-9223372036854775552/-9223372036854770943/dir4-key1-fso/110627551865339924",
"replicatedDataSize": 51867,
"unreplicatedDataSize": 17289,
"fso": [
{
"key": "/-4611686018427388160/-9223372036854775552/-9223372036854770943/dir4-key1-fso/110627551865339924",
"path": "dir4-key1-fso",
"inStateSince": 1688041920657,
"size": 17289,
"replicatedSize": 51867,
"replicationInfo": {
"replicationFactor": "THREE",
"requiredNodes": 3,
"replicationType": "RATIS"
}
}
}}}
End Point :- /api/v1/keys/deletePending?limit=10&prevKey
Actual Cluster Response
End Point - /api/v1/containers/mismatch/deleted?limit=10&prevKey=0
Dummy Data Response