0chain icon indicating copy to clipboard operation
0chain copied to clipboard

CT - Blobber Recovery using Backup Snapshot

Open devyetii opened this issue 2 years ago • 0 comments

Test Description Check that the blobber can regain ability to gain rewards and act normally after crashing and reviving empty (with all data cleaned) by restoring its data from a historical Backup Snapshot of the data directory.

Test Scenario

Similar to node-recovery-2 test (Blobber/Validator Node Recovery). Changes are:

  • Need to take historical backup of the data & files directory of the blobber before it's dropped (for example: tar -czvf blobber-data-1.tar.gz ./docker.local/blobber1/data & tar -czvf blobber-files-1.tar.gz ./docker.local/blobber1/files), then wait for some time before dropping the blobber.
  • Need to clean all the data/files of the blobber after it's dropped (for example: rm -rf ./docker.local/blobber1/data & rm -rf ./docker.local/blobber1/files).
  • Need to restore the backup before reviving the blobber (for example: tar -xzvf blobber-data-1.tar.gz -C ./docker.local/blobber1/data & tar -xzvf blobber-files-1.tar.gz -C ./docker.local/blobber1/files.

Comment/DM if anything is unclear.

devyetii avatar Mar 06 '24 20:03 devyetii