ivandika3 commented on code in PR #6960:
URL: https://github.com/apache/ozone/pull/6960#discussion_r1760859932
##########
hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html:
##########
@@ -153,6 +155,35 @@ <h2>Meta-Data Volume Information</h2>
</tbody>
</table>
+<h2>SCM Roles (HA)</h2>
+<h4 ng-show="$ctrl.overview.jmx.RatisRoles.length == 1 &&
$ctrl.overview.jmx.RatisRoles[0].length ==
1">{{$ctrl.overview.jmx.RatisRoles[0][0]}}</h4>
Review Comment:
> I carefully readed both the SCM and OM code, and found that integrating
OzoneManager#getRatisRoles with StorageContainerManager#getRatisRoles is not
very straightforward.
Thanks for addressing the review. I think the latest change is fine, there
is no need to completely eliminate duplication, standardizing the
implementation should be fine.
Now that `getRatisRoles` returns an exception in case of some exception, I
think this line does not need to be removed.
`<h4 ng-show="$ctrl.overview.jmx.RatisRoles.length == 1 &&
$ctrl.overview.jmx.RatisRoles[0].length ==
1">{{$ctrl.overview.jmx.RatisRoles[0][0]}}</h4>`
This line will print the exception in case the SCM service is a STANDALONE
cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]