andyhuangdev opened a new pull request, #11621:
URL: https://github.com/apache/ozone/pull/11621

   ## What changes were proposed in this pull request?
   
   MiniOzoneHAClusterImpl#bootstrapSCM skips readiness waits after a successful 
bootstrap because they are inside the retry loop, after the success-path break. 
On a port conflict, the waits instead execute with a potentially null SCM, 
preventing the retry.
   
   This patch moves both waits after the retry loop and fixes bidirectional 
peer membership checks to use the peer's SCM ID. This ensures bootstrap waits 
for the new SCM to reach the captured leader snapshot index and, when 
configuration updates are enabled, for peer membership to propagate.
   
   Regression tests cover configuration updates enabled and disabled, with and 
without a port conflict.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-17130](https://issues.apache.org/jira/browse/HDDS-17130)
   
   ## How was this patch tested?
   
   - Confirmed regression tests fail before the fix and pass afterward.
   - All 4 cases in TestMiniOzoneHACluster passed.
   - TestDatanodeSCMNodesReconfiguration#testAddAndRemoveOneSCM and 
#testSCMMigration passed.
   - Checkstyle and RAT checks passed.


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