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

   ## What changes were proposed in this pull request?
   
   Operators sometimes need to freeze SCM on‑demand (maintenance, 
troubleshooting) without restarting the service.  
   This patch provides an explicit, audited switch to enter/exit Safe Mode at 
any time.
   
   * **CLI** – new command `ozone admin safemode enter`  
   * **Protocol** – added `EnterSafeMode*` request/response to 
*ScmAdminProtocol* and client `enterSafeMode()`  
   * **SCM logic** – `SCMSafeModeManager` tracks a new `inManualSafeMode` flag; 
composite safe‑mode is `auto || manual`  
   * **Security / audit** – command uses existing admin ACL checks and is 
logged like other admin ops  
   * **Tests** – new JUnit tests in `TestScmSafeMode` cover manual entry and 
force exit
   
   
   ## What is the link to the Apache JIRA
   
   [HDDS-12706](https://issues.apache.org/jira/browse/HDDS-12706)
   
   ## How was this patch tested?
   
   * New integration tests added to `TestScmSafeMode`  
   * Validated via CI actions.
   * Manual verification on a 3‑node cluster (writes blocked after **enter**, 
resume after **exit**)
   


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