Bug #974
TBX: 0.7.6, corpus load abort causes corrupted corpus
Statut: | New | Début: | 08/08/2014 | ||
---|---|---|---|---|---|
Priorité: | Normal | Echéance: | |||
Assigné à: | - | % réalisé: | 20% |
||
Catégorie: | Commands | Temps passé: | - | ||
Version cible: | TXM 0.X.X |
Description
If a corpus load is aborted, the corpus already existing or not, the corpus keeps present in the corpus view but "is not ready" in the messages bar and is not useable.
When the loaded corpus is broken the corpus is still shown in the corpora view.
Solution¶
- if corpus pre-exists then move binary corpus directory (backup)
- if load process is aborted then
- if corpus pre-exists
- then move binary corpus directory back (restore)
- else remove the corpus from the corpus view
- if corpus pre-exists
- if load process is aborted then
After first tests, we may need to modify cqplib to force reload the corpus. More tests to do...
Validation test¶
Currently the CQPlib library does not manage to unload a broken corpus: even if "dropCorpus" is called the corpus is still present. If during the same work session, the user tries to load (or import) a fixed version of the corpus, CQPlib is still using the broken corpus indexes.
It seems that CQPlib does not drop the broken corpus indexes an reuse them.
Solution (temporary)¶
The user must leave TXM and restart it.
Solution¶
Fix the CQPlib dropCorpus function when a corpus is broken.
Demandes liées
Historique
#1 Mis à jour par Serge Heiden il y a environ 11 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.7.6 à TXM 0.7.7
#2 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Version cible changé de TXM 0.7.7 à TXM 0.7.6
- % réalisé changé de 0 à 20
#3 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
#4 Mis à jour par Sebastien Jacquot il y a presque 11 ans
- Version cible changé de TXM 0.7.6 à TXM 0.7.7
#5 Mis à jour par Matthieu Decorde il y a plus de 10 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.7.7 à TXM 0.7.8
#6 Mis à jour par Matthieu Decorde il y a environ 10 ans
- Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)
#7 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#8 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.X.X