You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2021/04/22 09:18:46 UTC

[GitHub] [incubator-pegasus] zhangyifan27 opened a new pull request #724: feat(shell): add one-time backup tools

zhangyifan27 opened a new pull request #724:
URL: https://github.com/apache/incubator-pegasus/pull/724


   ### What problem does this PR solve?
   Add `backup_app` and `query_backup` to command shell tools.
   
   ### Checklist <!--REMOVE the items that are not applicable-->
   
   ##### Tests <!-- At least one of them must be included. -->
   
   - Fuction test : test backup and restore using `local_service`
   - Manual test : test backup and restore using `hdfs_service`
   ```
   >>> backup_app -a 1 -b hdfs_zjy -p /user/s_pegasus/zyf
   backup id : 1619080621044
   Backup succeed: metadata of app 1 has been successfully backed up and backup request has been sent to replica servers.
   >>> query_backup -a 1
   query backup succeed: There are 1 available backups for app 1.
   [1]
       backup_id             : 1619080621044      
       app_name              : test               
       backup_provider_type  : hdfs_zjy           
       backup_path           : /user/s_pegasus/zyf
       start_time            : 2021-04-22 16:37:01
       end_time              : -                  
       backup_status         : in progress        
   
   >>> query_backup -a 1
   query backup succeed: There are 1 available backups for app 1.
   [1]
       backup_id             : 1619080621044      
       app_name              : test               
       backup_provider_type  : hdfs_zjy           
       backup_path           : /user/s_pegasus/zyf
       start_time            : 2021-04-22 16:37:01
       end_time              : 2021-04-22 16:37:27
       backup_status         : completed          
   
   >>> restore_app -c c4tst-hdfs -a test -i 1 -t 1619080621044 -b hdfs_zjy -n restore_app -r /user/s_pegasus/zyf
   restore app from the specified path : /user/s_pegasus/zyf
   sleep 1 second to wait complete...
   	new app_id = 69
   ```
   
   ##### Code changes
   
   - Has exported new methods and tests
   
   ##### Related changes
   
   - Need to cherry-pick to the release branch
   - Need to update the documentation
   - Need to be included in the release note
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org


[GitHub] [incubator-pegasus] zhangyifan27 closed pull request #724: feat(shell): add one-time backup tools

Posted by GitBox <gi...@apache.org>.
zhangyifan27 closed pull request #724:
URL: https://github.com/apache/incubator-pegasus/pull/724


   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org