tanvipenumudy commented on code in PR #4760:
URL: https://github.com/apache/ozone/pull/4760#discussion_r1204950755


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocol/OzoneManagerProtocol.java:
##########
@@ -995,4 +996,6 @@ EchoRPCResponse echoRPCReq(byte[] payloadReq,
    */
   boolean recoverLease(String volumeName, String bucketName,
                               String keyName) throws IOException;
+
+  ManagedSecretKey getCurrentSecretKey() throws IOException;

Review Comment:
   Yes, the `getCurrentSecretKey()` method under `OzoneManagerProtocol` has two 
implementations -> `OzoneManager` and 
`OzoneManagerProtocolClientSideTranslatorPB`. In `OzoneManager`, I am getting 
the current secret key using `SecretKeySignerClient secretKeyClient`, which has 
been initialized to:
   
   ```
   SecretKeyProtocol secretKeyProtocol = 
HddsServerUtil.getSecretKeyClientForOm(conf);
   secretKeyClient = new DefaultSecretKeySignerClient(secretKeyProtocol);
   ```



-- 
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]

Reply via email to