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

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

                Author: ASF GitHub Bot
            Created on: 11/Mar/19 21:56
            Start Date: 11/Mar/19 21:56
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao commented on pull request #581: HDDS-596. Add 
robot test for OM Block Token.
URL: https://github.com/apache/hadoop/pull/581#discussion_r264447571
 
 

 ##########
 File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/authority/DefaultCAServer.java
 ##########
 @@ -224,12 +224,16 @@ private KeyPair getCAKeys() throws IOException {
         break;
       case KERBEROS_TRUSTED:
       case TESTING_AUTOMATIC:
-        X509CertificateHolder xcert = approver.sign(config,
-            getCAKeys().getPrivate(),
-            getCACertificate(), java.sql.Date.valueOf(beginDate),
-            java.sql.Date.valueOf(endDate), csr, scmID, clusterID);
-        store.storeValidCertificate(xcert.getSerialNumber(),
-            CertificateCodec.getX509Certificate(xcert));
+        X509CertificateHolder xcert;
+        try {
+          xcert = signAndStoreCertificate(beginDate, endDate, csr);
+        } catch (SCMSecurityException e) {
+          // Certificate with conflicting serial id, retry again may resolve
 
 Review comment:
   Make senses to me. Let's open a follow up JIRA to have better serial ID 
generator. 
 
----------------------------------------------------------------
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: 211331)
    Time Spent: 1h 10m  (was: 1h)

> Add robot test for OM Block Token 
> ----------------------------------
>
>                 Key: HDDS-596
>                 URL: https://issues.apache.org/jira/browse/HDDS-596
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Xiaoyu Yao
>            Assignee: Ajay Kumar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to