[MGNLMIGRATION-190] Support persisting unfinished migration Created: 07/Dec/12  Updated: 01/Oct/13  Resolved: 13/Sep/13

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.6, 2.0

Type: Task Priority: Major
Reporter: Eric Hechinger Assignee: Robert Šiška
Resolution: Fixed Votes: 0
Labels: ToDo_for_1_2_1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLMIGRATION-173 Review informations log in the report... Closed
is related to MGNLMIGRATION-234 Optimize performance for large projects Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Currently the session is saved, after each migration task, in case of success.
Based on the following remark the way to handle session.save() should be first discussed and probably review.

"Well any kind of save within task is violation of contract for task since it can't be rolled back and reexecuted by install manager so it needs to be documented in the task. Plus sessions are saved by install manager after execution of all tasks for given module successfully. From what yo usay above i still don't see reason to force the save per task."

Just on additional remark.
The tasks support to be reexecuted even if the migration already took place.



 Comments   
Comment by Roman Kovařík [ 29/Mar/13 ]

Saving the session only after the task is not real for big project because of huge amount of nodes in the memory. See MGNLMIGRATION-234.

Comment by Robert Šiška [ 13/Sep/13 ]

The saving during of task is disabled by default, but can be allowed by setting
magnolia.migration.sessionSaving to true in magnolia.properties

Comment by Jan Haderka [ 13/Sep/13 ]

Can we change name of the property controlling saving to something more self explanatory? Maybe something like "savePartiallyMigratedContent"?

Comment by Robert Šiška [ 16/Sep/13 ]

Changed property name from magnolia.migration.sessionSaving to magnolia.migration.savePartiallyMigratedContent.

Generated at Mon Feb 12 10:18:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.