Bug #966
TBX: 0.7.6, import module abort causes corrupted original corpus
Statut: | Closed | Début: | 06/08/2014 | |
---|---|---|---|---|
Priorité: | High | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Import | Temps passé: | - | |
Version cible: | TXM 0.7.7 |
Description
When an import module starts, it asks confirmation to replace original corpus.
Currently, the code delete the original corpus binary.
If the import process is aborted, the original corpus is still present in the corpus view but "is not ready" in the messages bar and is not useable.
An import module abort should put a previously existing corpus back to its original state.
Solution:- rename the original corpus binary in a temporary directory with the "_temp" suffix, instead of deleting it
- if import process is finished without error then delete the temporary directory
- otherwise
- rename the broken corpus directory with the "_error" suffix
- restore the original corpus binary back into the corpora directory.
- At each import process start, delete the "_error" and "_temp" directories
Validation test¶
- starts an import TXT+CSV on a directory with some txt files
- starts an import TXT+CSV on an empty directory with the same name. The corpora directory should contains the "_error" directory. and the original one must still be ready
- re starts an import TXT+CSV with the directory with some txt files. The corpora directory should contains the "_temp" directory during the import process. And it should have been deleted at the end of the import process
Demandes liées
Historique
#1 Mis à jour par Sebastien Jacquot il y a presque 11 ans
- Priorité changé de Normal à High
#2 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
#3 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#4 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
#5 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Statut changé de New à Feedback
#6 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Statut changé de Feedback à Closed
- % réalisé changé de 80 à 100
This error should no more occurs in TXM since we load/remove CQP corpus without restarting CQP (we now update CQP registry paths list)