-
Improvement
-
Resolution: Fixed
-
None
-
High
-
-
Emptyshow more show less
Problem
Currently reorganise call is not as good as it can be.
Solution
To try to prevent that we can do export import of problematic memory instead
To do so we will:
Count segments in TM- Export tm as TMX without stripping protected content
- Clone tm with "reorganise.{datetime}.before-flush" suffix
- flush tm
- clone it again with "reorganise.{datetime}.after-flush" suffix
- Count segments in TMX export
- If segment count is lower, abort and log an error
- Place tmx into folder with languageresource id and date as name to have a backup and a way to delete it when no longer needed
- import tmx into new next memory as is (no protection needed as it is there already)
Count segments in new TMIf segment count is lower log an error
- Place new TM in specific data of language resource instead of broken one
- delete old tm from t5memory
Create new cron job to delete backup memories older then 10 days
- relates to
-
TRANSLATE-5020 TM maintenance results unstable
- Done