[ 
https://issues.apache.org/jira/browse/HDDS-2240?focusedWorklogId=324562&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-324562
 ]

ASF GitHub Bot logged work on HDDS-2240:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Oct/19 19:05
            Start Date: 07/Oct/19 19:05
    Worklog Time Spent: 10m 
      Work Description: anuengineer commented on pull request #1586: HDDS-2240. 
Command line tool for OM HA.
URL: https://github.com/apache/hadoop/pull/1586#discussion_r332186630
 
 

 ##########
 File path: hadoop-ozone/common/src/main/proto/OzoneManagerProtocol.proto
 ##########
 @@ -1097,11 +1097,34 @@ message UpdateGetS3SecretRequest {
     required string awsSecret = 2;
 }
 
+message OMServiceId {
+    required string serviceID = 1;
+}
+
+/**
+  This proto is used to define the OM node Id and its ratis server state.
+*/
+message RoleInfo {
+    required string omNodeID = 1;
+    required string ratisServerRole = 2;
+}
+
+/**
+  This is used to get the Server States of OMs.
+*/
+message ServiceState {
+    repeated RoleInfo roleInfos = 1;
+}
+
 /**
  The OM service that takes care of Ozone namespace.
 */
 service OzoneManagerService {
     // A client-to-OM RPC to send client requests to OM Ratis server
     rpc submitRequest(OMRequest)
           returns(OMResponse);
+
+    // A client-to-OM RPC to get ratis server states of OMs
+    rpc getServiceState(OMServiceId)
+          returns(ServiceState);
 }
 
 Review comment:
   What is the use case for this RPC? it is used only from the OM HA tool? or 
is some thing that clients need to know when communicating with the OM? if 
clients need to know this info, then clients already make a call called 
getServiceList and this info is more appropriate to be part of that call? Then 
both clients and tools like OM HA can get to that information pretty easily.
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 324562)
    Time Spent: 1h 10m  (was: 1h)

> Command line tool for OM HA
> ---------------------------
>
>                 Key: HDDS-2240
>                 URL: https://issues.apache.org/jira/browse/HDDS-2240
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> A command line tool (*ozone omha*) to get information related to OM HA. 
> This Jira proposes to add the _getServiceState_ option for OM HA which lists 
> all the OMs in the service and their corresponding Ratis server roles 
> (LEADER/ FOLLOWER). 
> We can later add more options to this tool.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to