Bug #974

TBX: 0.7.6, corpus load abort causes corrupted corpus

Added by Serge Heiden about 5 years ago. Updated 6 months ago.

Status:New Start date:08/08/2014
Priority:Normal Due date:
Assignee:- % Done:

20%

Category:Commands Spent time: -
Target version:TXM 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

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.


Related issues

related to Bug #2351: RCP: 0.7.9, CQP corpus re-load "not ready" user message New 03/06/2018
related to Feature #2465: RCP: 0.7.9, Management of corrupted binary corpora New 10/30/2018

History

#1 Updated by Serge Heiden about 5 years ago

  • Description updated (diff)
  • Target version changed from TXM 0.7.6 to TXM 0.7.7

#2 Updated by Matthieu Decorde almost 5 years ago

  • Target version changed from TXM 0.7.7 to TXM 0.7.6
  • % Done changed from 0 to 20

#3 Updated by Matthieu Decorde almost 5 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot almost 5 years ago

  • Target version changed from TXM 0.7.6 to TXM 0.7.7

#5 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • Target version changed from TXM 0.7.7 to TXM 0.7.8

#6 Updated by Matthieu Decorde about 4 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

#7 Updated by Sebastien Jacquot about 1 year ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#8 Updated by Matthieu Decorde 6 months ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF