ChenSammi commented on code in PR #3982:
URL: https://github.com/apache/ozone/pull/3982#discussion_r1046631584


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java:
##########
@@ -110,28 +120,35 @@ public abstract class DefaultCertificateClient implements 
CertificateClient {
   private long localCrlId;
   private String component;
   private List<String> pemEncodedCACerts = null;
-  private final Lock lock;
   private KeyStoresFactory serverKeyStoresFactory;
   private KeyStoresFactory clientKeyStoresFactory;
+  private AtomicBoolean isRenewing = new AtomicBoolean(false);
+  private AtomicBoolean isRenewed = new AtomicBoolean(false);
 
-  DefaultCertificateClient(SecurityConfig securityConfig, Logger log,
+  DefaultCertificateClient(OzoneConfiguration conf, Logger log,

Review Comment:
   getCSRBuilder and create scm secure client requires OzoneConfiguration as 
paremeter.  These two functions are refactored from component service to 
CertificateClient. So previously CertificateClient only requires 
SecurityConfig, now OzoneConfiguration will be better.



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