Task Progress Recovery
status.log indicates detailed migration progress of corresponding file lists. If the client crashes, use the log to locate the corresponding breakpoint and resume migration at the task list granularity level.
Example:
client.properties file configuration:
1taskList=/home/work/list/task_list
Contents of the task_list file:
1/home/work/list/object_list1
2/home/work/list/object_list2
3# /home/work/list/object_list3
Contents of the object_list1 file:
1bucket1 obj1
2bucket1 obj2
3bucket1 obj3
4#bucket1 obj4
5bucket1 obj5
Contents of the object_list2 file:
1bucket1 obj21
2#bucket1 obj22
3bucket1 obj23
4bucket1 obj24
5bucket1 obj25
6bucket1 obj26
Contents of the status.log file:
12015-12-31 17:13:42.013 /home/work/list/object_list1 2/-1
22015-12-31 17:13:45.014 /home/work/list/object_list2 3/-1
32015-12-31 17:13:48.014 /home/work/list/object_list2 4/6
42015-12-31 17:13:51.014 /home/work/list/object_list1 5/5 finished
52015-12-31 17:13:53.014 /home/work/list/object_list2 4/6
object_list1 2/-1indicates completion of Line 2 in theobject_list1, while-1indicates that this file has not been read completely, and the number of lines is unknown. If a crash occurs in this case, it is unclear which files in the list have been migrated due to concurrent operations.- To restart a task from a specific progress point, create a list file and restart the client with new configurations. First, identify the data not migrated from the
object_listfiles based on thestatus.logfile. For example, ifobject_list2is not migrated completed, add it to the newtask_list_continuefile and modify the configuration file. Examples are follows:
Modify the client.properties file:
1taskList=/home/work/list/task_list_continue
Modify the task_list_continue file:
1/home/work/list/object_list2
Redo
After processing all lists to be migrated, redo the migration of files not migrated successfully or having encountered problems during migration. Compile a list of files to be transferred again based on the migration logs: The files in the redo and unsent log files can be migrated using the KEEP_DESTITNATION migration strategy. However, for the list of files with failed migration, the FORCE_OVERWRITE strategy for migration should be considered, as data errors may have occurred during the migration.
