bharatviswa504 opened a new pull request #2100:
URL: https://github.com/apache/ozone/pull/2100


   ## What changes were proposed in this pull request?
   
   This Jira is to handle leader change between getScmInfo and getScmSignedCert.
   
   Problem:
   Leader is SCM1 - Returned SCMID is SCM1ID
   ScmInfo returns the leader SCMID
   
   Leader is SCM2 - SCM ID is SCM2ID
   getSCMSignedCert, during generate certificate it has a check compare the 
scmId passed in CSR, is same as current SCM scmID
   
   In this case when the leader change between these 2 calls OM will fail to 
get a Certificate.
   
   Proposed Solution:
   getScmInfo returns primary SCM ID, and OM can pass this Primary SCM ID in 
CSR.
   In this way, even if the leader changes OM can still get a certificate.
   
   Note: primary SCM Id is the same across the SCM HA quorum nodes.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-5052
   
   ## How was this patch tested?
   
   Existing docker tests.
   


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