You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2019/11/21 13:42:11 UTC

[GitHub] [hadoop-ozone] elek opened a new pull request #250: HDDS-2608. Provide command to wait until SCM is out from the safe-mode

elek opened a new pull request #250: HDDS-2608. Provide command to wait until SCM is out from the safe-mode
URL: https://github.com/apache/hadoop-ozone/pull/250
 
 
   ## What changes were proposed in this pull request?
   
   The safe mode can be checked with "ozone scmcli safemode status". But for acceptance tests there is no easy way to check if the cluster is ready to execute the tests (See HDDS-2606 for example).
   
   One easy solution is to create a polling version from "safemode status".
   
   "safemode wait --timeout ..." can be blocked until the scm is out from the safe mode.
   
   Wit proper safe mode rules (min datanodes + min pipline numbers) it can help us to check if the acceptance tests are ready to test.
   
   Same command can be used in k8s as well to test if the cluster is ready to start the freon commands...
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2608
   
   ## How was this patch tested?
   
   Test it with the simple `compose/ozone` cluster but add
   
   ```
   OZONE-SITE.XML_hdds.scm.safemode.min.datanode=3
   ```
   
   to the docker-config.
   
   1. Start the cluster with `docker-compose up -d`
   
   2. Test the command 
   ```
   docker-compose exec scm bash
   ozone scmcli safemode wait -t 5
   echo $?
   ozone scmcli safemode wait -t 100
   ```
   
   3. Start the missing datanodes from an other terminal
   
   ```
   docker-compose scale datanode=3
   ```
   
   Check if the safemode command returned.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org