Database corruption on Optimize All

Thursday, 3 March 2016 · 5 messages · last reply 9 Mar 2016
FB
France Baril3 Mar 2016 22:44 #
Hi, I'm on 8.2.2, but I just tried it with BaseX 8.4 and got the same result. Here is a simple way to reproduce the error: 1. From BaseX GUI, I create a new database from a folder that contains mostly .xml, .xsd and .dtd files (attached). I use the default options from the GUI except: GENERAL - Input format XML: *.xml, *.xsd - Check 'Add other files as raw' - Uncheck 'Parse files in archives' PARSING - Check 'Use internal XML parser' - Uncheck 'Chop whitespaces' 2. Once the content is loaded, go to the 'Database properties' window for the DB and you'll see that all files are there and that you are able to browse the collections. 3. Click 'Optimize All' and try to browse the collections again. It doesn't work and a 'Stream Closed' error is generated in the terminal windows (details attached)! France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
CG
Christian Grün4 Mar 2016 10:59 #
Hi France, I created the database via the GUI as you described, I opened the database properties dialog, I optimized the database, but everything works fine on my system.. Hm. Does it happen every time you are optimizing the database this way? Do you have similar problems on command-line? Could you please run the following command script and report back what happens? create.bxs _____________________
SET CREATEFILTER *.xml,*.xsd
SET ADDARCHIVES false
SET ADDRAW true
SET CHOP false
SET INTPARSE true
CREATE DB test-db dita-schemas
OPTIMIZE ALL
INSPECT
____________________________
You may need to update the path to the 'dita-schemas' directory. Thanks in advance, Christian
Quoted text · France Baril · 27 lines
> 1. From BaseX GUI, I create a new database from a folder that contains > mostly .xml, .xsd and .dtd files (attached). I use the default options from > the GUI except: > > GENERAL > > Input format XML: *.xml, *.xsd > Check 'Add other files as raw' > Uncheck 'Parse files in archives' > > PARSING > > Check 'Use internal XML parser' > Uncheck 'Chop whitespaces' > > 2. Once the content is loaded, go to the 'Database properties' window for > the DB and you'll see that all files are there and that you are able to > browse the collections. > > 3. Click 'Optimize All' and try to browse the collections again. It doesn't > work and a 'Stream Closed' error is generated in the terminal windows > (details attached)! > > > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
FB
France Baril8 Mar 2016 20:35 #
Ok, I played with this a lot and was able to get more precise about the issue. 1. I create the DB with the script. 2. I Open the Manage Database window and I can navigate. 3. I Optimize All from the GUI 4. Only the items that were opened in 2 can be opened. The others are shown as empty. 5. I close the Manage Database window and reopen it, I can navigate. It seems like an issue with the view. The database isn't really corrupted, it can still be queried. FYI: I'm on OS X 10.10.5. Regards, France
Quoted text · Christian Grün · 59 lines
On Fri, Mar 4, 2016 at 4:59 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi France, > > I created the database via the GUI as you described, I opened the > database properties dialog, I optimized the database, but everything > works fine on my system.. Hm. Does it happen every time you are > optimizing the database this way? Do you have similar problems on > command-line? Could you please run the following command script and > report back what happens? > > create.bxs _____________________ > > SET CREATEFILTER *.xml,*.xsd > SET ADDARCHIVES false > SET ADDRAW true > SET CHOP false > SET INTPARSE true > CREATE DB test-db dita-schemas > OPTIMIZE ALL > INSPECT > ____________________________ > > You may need to update the path to the 'dita-schemas' directory. > > Thanks in advance, > Christian > > > > 1. From BaseX GUI, I create a new database from a folder that contains > > mostly .xml, .xsd and .dtd files (attached). I use the default options > from > > the GUI except: > > > > GENERAL > > > > Input format XML: *.xml, *.xsd > > Check 'Add other files as raw' > > Uncheck 'Parse files in archives' > > > > PARSING > > > > Check 'Use internal XML parser' > > Uncheck 'Chop whitespaces' > > > > 2. Once the content is loaded, go to the 'Database properties' window for > > the DB and you'll see that all files are there and that you are able to > > browse the collections. > > > > 3. Click 'Optimize All' and try to browse the collections again. It > doesn't > > work and a 'Stream Closed' error is generated in the terminal windows > > (details attached)! > > > > > > France Baril > > Architecte documentaire / Documentation architect > > france.baril at architextus.com >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
CG
Christian Grün9 Mar 2016 15:13 #
Quoted text · France Baril · 1 line
> It seems like an issue with the view.
Ditto! And thanks for reporting it back, it is now fixed [1]. Christian [1] http://files.basex.org/releases/latest/
FB
France Baril9 Mar 2016 17:18 #
Thanks!
Quoted text · Christian Grün · 9 lines
On Wed, Mar 9, 2016 at 9:13 AM, Christian Grün <christian.gruen at gmail.com> wrote: > > It seems like an issue with the view. > > Ditto! And thanks for reporting it back, it is now fixed [1]. > Christian > > [1] http://files.basex.org/releases/latest/ >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com

⚡Generated with XQuery