This is an automated email from the ASF dual-hosted git repository.

pifta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c8c6bee90 HDDS-8998. Shared mutable state causes rootca poller to 
miss updates. (#5050)
8c8c6bee90 is described below

commit 8c8c6bee906e56711f2cbf48b6ea4436c8de9ebc
Author: Istvan Fajth <[email protected]>
AuthorDate: Thu Jul 13 03:47:49 2023 +0200

    HDDS-8998. Shared mutable state causes rootca poller to miss updates. 
(#5050)
---
 .../hdds/security/x509/certificate/client/DefaultCertificateClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java
 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java
index a26bd12188..c63f57c1e2 100644
--- 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java
+++ 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/client/DefaultCertificateClient.java
@@ -191,7 +191,7 @@ public abstract class DefaultCertificateClient implements 
CertificateClient {
   private void startRootCaRotationPoller() {
     if (rootCaRotationPoller == null) {
       rootCaRotationPoller = new RootCaRotationPoller(securityConfig,
-          rootCaCertificates, scmSecurityClient);
+          new HashSet<>(rootCaCertificates), scmSecurityClient);
       rootCaRotationPoller.addRootCARotationProcessor(
           this::getRootCaRotationListener);
       rootCaRotationPoller.run();


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

Reply via email to