vivekratnavel commented on a change in pull request #2191:
URL: https://github.com/apache/ozone/pull/2191#discussion_r631315525



##########
File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMSecurityProtocolServer.java
##########
@@ -333,6 +341,30 @@ public long getLatestCrlId() {
     return scmCertificateServer.getLatestCrlId();
   }
 
+  @Override
+  public long revokeCertificates(List<Long> certIds, int reason,
+      long revocationTime) throws IOException {
+    String remoteUser = getRpcRemoteUsername();
+    storageContainerManager.checkAdminAccess(remoteUser);
+
+    Future<Optional<Long>> revoked = scmCertificateServer.revokeCertificates(
+        certIds.stream().map(id -> BigInteger.valueOf(id))
+            .collect(Collectors.toList()),

Review comment:
       Is there a reason why we need to keep this API signature `List<Long> 
certIds`? If we change it to `List<BigInteger> certIds`, we will not need this 
Long -> BigInt conversion




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



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

Reply via email to